@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Function extends Object implements Serializable, Cloneable, StructuredPojo
Defines parameters that the agent needs to invoke from the user to complete the function. Corresponds to an action in an action group.
This data type is used in the following API operations:
Constructor and Description |
---|
Function() |
Modifier and Type | Method and Description |
---|---|
Function |
addParametersEntry(String key,
ParameterDetail value)
Add a single Parameters entry
|
Function |
clearParametersEntries()
Removes all the entries added into Parameters.
|
Function |
clone() |
boolean |
equals(Object obj) |
String |
getDescription()
A description of the function and its purpose.
|
String |
getName()
A name for the function.
|
Map<String,ParameterDetail> |
getParameters()
The parameters that the agent elicits from the user to fulfill the function.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setDescription(String description)
A description of the function and its purpose.
|
void |
setName(String name)
A name for the function.
|
void |
setParameters(Map<String,ParameterDetail> parameters)
The parameters that the agent elicits from the user to fulfill the function.
|
String |
toString()
Returns a string representation of this object.
|
Function |
withDescription(String description)
A description of the function and its purpose.
|
Function |
withName(String name)
A name for the function.
|
Function |
withParameters(Map<String,ParameterDetail> parameters)
The parameters that the agent elicits from the user to fulfill the function.
|
public void setDescription(String description)
A description of the function and its purpose.
description
- A description of the function and its purpose.public String getDescription()
A description of the function and its purpose.
public Function withDescription(String description)
A description of the function and its purpose.
description
- A description of the function and its purpose.public void setName(String name)
A name for the function.
name
- A name for the function.public String getName()
A name for the function.
public Function withName(String name)
A name for the function.
name
- A name for the function.public Map<String,ParameterDetail> getParameters()
The parameters that the agent elicits from the user to fulfill the function.
public void setParameters(Map<String,ParameterDetail> parameters)
The parameters that the agent elicits from the user to fulfill the function.
parameters
- The parameters that the agent elicits from the user to fulfill the function.public Function withParameters(Map<String,ParameterDetail> parameters)
The parameters that the agent elicits from the user to fulfill the function.
parameters
- The parameters that the agent elicits from the user to fulfill the function.public Function addParametersEntry(String key, ParameterDetail value)
public Function clearParametersEntries()
public String toString()
toString
in class Object
Object.toString()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.