InputVariable Class 
	- java.
lang. Object  - com.
microsoft. semantickernel. semanticfunctions. InputVariable  
- com.
 
public class InputVariable
Metadata for an input variable of a KernelFunction<T>.
Constructor Summary
| Constructor | Description | 
|---|---|
| InputVariable(String name) | 
								 Creates a new instance of InputVariable.  | 
					
| InputVariable(String name, String type, String description, String defaultValue, boolean isRequired, List<?> enumValues) | 
								 Creates a new instance of InputVariable.  | 
					
Method Summary
| Modifier and Type | Method and Description | 
|---|---|
| 
								static
									Input | 
						
							build(String name, Class<?> type, String description, String defaultValue, List<?> enumValues, boolean required)
								 Creates a new instance of InputVariable.  | 
					
| boolean | equals(Object obj) | 
| java.lang.String | 
							getDefaultValue()
								 Gets the default value of the input variable.  | 
					
| java.lang.String | 
							getDescription()
								 Gets the description of the input variable.  | 
					
| java.util.List<?> | 
							getEnumValues()
								 Gets the possible enum values of the input variable.  | 
					
| java.lang.String | 
							getName()
								 Gets the name of the input variable.  | 
					
| java.lang.String | 
							getType()
								 Gets the type of the input variable.  | 
					
| java.lang.Class<?> | 
							getTypeClass()
								 Gets the class of the type of the input variable.  | 
					
| int | hashCode() | 
| boolean | 
							isRequired()
								 Gets whether the input variable is required.  | 
					
Methods inherited from java.lang.Object
Constructor Details
InputVariable
public InputVariable(String name)
Creates a new instance of InputVariable.
Parameters:
InputVariable
public InputVariable(String name, String type, String description, String defaultValue, boolean isRequired, List enumValues)
Creates a new instance of InputVariable.
Parameters:
Method Details
build
public static InputVariable build(String name, Class type, String description, String defaultValue, List enumValues, boolean required)
Creates a new instance of InputVariable.
Parameters:
Returns:
equals
public boolean equals(Object obj)
Overrides:
InputVariable.equals(Object obj)Parameters:
getDefaultValue
public String getDefaultValue()
Gets the default value of the input variable.
Returns:
getDescription
public String getDescription()
Gets the description of the input variable.
Returns:
getEnumValues
public List getEnumValues()
Gets the possible enum values of the input variable.
Returns:
getName
public String getName()
Gets the name of the input variable.
Returns:
getType
public String getType()
Gets the type of the input variable.
Returns:
getTypeClass
public Class getTypeClass()
Gets the class of the type of the input variable.
Returns:
hashCode
public int hashCode()
Overrides:
InputVariable.hashCode()isRequired
public boolean isRequired()
Gets whether the input variable is required.
Returns: