@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class CreateSlotRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
NOOP
Constructor and Description |
---|
CreateSlotRequest() |
Modifier and Type | Method and Description |
---|---|
CreateSlotRequest |
clone()
Creates a shallow clone of this object for all fields except the handler context.
|
boolean |
equals(Object obj) |
String |
getBotId()
The identifier of the bot associated with the slot.
|
String |
getBotVersion()
The version of the bot associated with the slot.
|
String |
getDescription()
A description of the slot.
|
String |
getIntentId()
The identifier of the intent that contains the slot.
|
String |
getLocaleId()
The identifier of the language and locale that the slot will be used in.
|
MultipleValuesSetting |
getMultipleValuesSetting()
Indicates whether the slot returns multiple values in one response.
|
ObfuscationSetting |
getObfuscationSetting()
Determines how slot values are used in Amazon CloudWatch logs.
|
String |
getSlotName()
The name of the slot.
|
String |
getSlotTypeId()
The unique identifier for the slot type associated with this slot.
|
SubSlotSetting |
getSubSlotSetting()
Specifications for the constituent sub slots and the expression for the composite slot.
|
SlotValueElicitationSetting |
getValueElicitationSetting()
Specifies prompts that Amazon Lex sends to the user to elicit a response that provides the value for the slot.
|
int |
hashCode() |
void |
setBotId(String botId)
The identifier of the bot associated with the slot.
|
void |
setBotVersion(String botVersion)
The version of the bot associated with the slot.
|
void |
setDescription(String description)
A description of the slot.
|
void |
setIntentId(String intentId)
The identifier of the intent that contains the slot.
|
void |
setLocaleId(String localeId)
The identifier of the language and locale that the slot will be used in.
|
void |
setMultipleValuesSetting(MultipleValuesSetting multipleValuesSetting)
Indicates whether the slot returns multiple values in one response.
|
void |
setObfuscationSetting(ObfuscationSetting obfuscationSetting)
Determines how slot values are used in Amazon CloudWatch logs.
|
void |
setSlotName(String slotName)
The name of the slot.
|
void |
setSlotTypeId(String slotTypeId)
The unique identifier for the slot type associated with this slot.
|
void |
setSubSlotSetting(SubSlotSetting subSlotSetting)
Specifications for the constituent sub slots and the expression for the composite slot.
|
void |
setValueElicitationSetting(SlotValueElicitationSetting valueElicitationSetting)
Specifies prompts that Amazon Lex sends to the user to elicit a response that provides the value for the slot.
|
String |
toString()
Returns a string representation of this object.
|
CreateSlotRequest |
withBotId(String botId)
The identifier of the bot associated with the slot.
|
CreateSlotRequest |
withBotVersion(String botVersion)
The version of the bot associated with the slot.
|
CreateSlotRequest |
withDescription(String description)
A description of the slot.
|
CreateSlotRequest |
withIntentId(String intentId)
The identifier of the intent that contains the slot.
|
CreateSlotRequest |
withLocaleId(String localeId)
The identifier of the language and locale that the slot will be used in.
|
CreateSlotRequest |
withMultipleValuesSetting(MultipleValuesSetting multipleValuesSetting)
Indicates whether the slot returns multiple values in one response.
|
CreateSlotRequest |
withObfuscationSetting(ObfuscationSetting obfuscationSetting)
Determines how slot values are used in Amazon CloudWatch logs.
|
CreateSlotRequest |
withSlotName(String slotName)
The name of the slot.
|
CreateSlotRequest |
withSlotTypeId(String slotTypeId)
The unique identifier for the slot type associated with this slot.
|
CreateSlotRequest |
withSubSlotSetting(SubSlotSetting subSlotSetting)
Specifications for the constituent sub slots and the expression for the composite slot.
|
CreateSlotRequest |
withValueElicitationSetting(SlotValueElicitationSetting valueElicitationSetting)
Specifies prompts that Amazon Lex sends to the user to elicit a response that provides the value for the slot.
|
addHandlerContext, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getHandlerContext, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestCredentialsProvider, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
public void setSlotName(String slotName)
The name of the slot. Slot names must be unique within the bot that contains the slot.
slotName
- The name of the slot. Slot names must be unique within the bot that contains the slot.public String getSlotName()
The name of the slot. Slot names must be unique within the bot that contains the slot.
public CreateSlotRequest withSlotName(String slotName)
The name of the slot. Slot names must be unique within the bot that contains the slot.
slotName
- The name of the slot. Slot names must be unique within the bot that contains the slot.public void setDescription(String description)
A description of the slot. Use this to help identify the slot in lists.
description
- A description of the slot. Use this to help identify the slot in lists.public String getDescription()
A description of the slot. Use this to help identify the slot in lists.
public CreateSlotRequest withDescription(String description)
A description of the slot. Use this to help identify the slot in lists.
description
- A description of the slot. Use this to help identify the slot in lists.public void setSlotTypeId(String slotTypeId)
The unique identifier for the slot type associated with this slot. The slot type determines the values that can be entered into the slot.
slotTypeId
- The unique identifier for the slot type associated with this slot. The slot type determines the values
that can be entered into the slot.public String getSlotTypeId()
The unique identifier for the slot type associated with this slot. The slot type determines the values that can be entered into the slot.
public CreateSlotRequest withSlotTypeId(String slotTypeId)
The unique identifier for the slot type associated with this slot. The slot type determines the values that can be entered into the slot.
slotTypeId
- The unique identifier for the slot type associated with this slot. The slot type determines the values
that can be entered into the slot.public void setValueElicitationSetting(SlotValueElicitationSetting valueElicitationSetting)
Specifies prompts that Amazon Lex sends to the user to elicit a response that provides the value for the slot.
valueElicitationSetting
- Specifies prompts that Amazon Lex sends to the user to elicit a response that provides the value for the
slot.public SlotValueElicitationSetting getValueElicitationSetting()
Specifies prompts that Amazon Lex sends to the user to elicit a response that provides the value for the slot.
public CreateSlotRequest withValueElicitationSetting(SlotValueElicitationSetting valueElicitationSetting)
Specifies prompts that Amazon Lex sends to the user to elicit a response that provides the value for the slot.
valueElicitationSetting
- Specifies prompts that Amazon Lex sends to the user to elicit a response that provides the value for the
slot.public void setObfuscationSetting(ObfuscationSetting obfuscationSetting)
Determines how slot values are used in Amazon CloudWatch logs. If the value of the
obfuscationSetting
parameter is DefaultObfuscation
, slot values are obfuscated in the
log output. If the value is None
, the actual value is present in the log output.
The default is to obfuscate values in the CloudWatch logs.
obfuscationSetting
- Determines how slot values are used in Amazon CloudWatch logs. If the value of the
obfuscationSetting
parameter is DefaultObfuscation
, slot values are obfuscated
in the log output. If the value is None
, the actual value is present in the log output.
The default is to obfuscate values in the CloudWatch logs.
public ObfuscationSetting getObfuscationSetting()
Determines how slot values are used in Amazon CloudWatch logs. If the value of the
obfuscationSetting
parameter is DefaultObfuscation
, slot values are obfuscated in the
log output. If the value is None
, the actual value is present in the log output.
The default is to obfuscate values in the CloudWatch logs.
obfuscationSetting
parameter is DefaultObfuscation
, slot values are obfuscated
in the log output. If the value is None
, the actual value is present in the log output.
The default is to obfuscate values in the CloudWatch logs.
public CreateSlotRequest withObfuscationSetting(ObfuscationSetting obfuscationSetting)
Determines how slot values are used in Amazon CloudWatch logs. If the value of the
obfuscationSetting
parameter is DefaultObfuscation
, slot values are obfuscated in the
log output. If the value is None
, the actual value is present in the log output.
The default is to obfuscate values in the CloudWatch logs.
obfuscationSetting
- Determines how slot values are used in Amazon CloudWatch logs. If the value of the
obfuscationSetting
parameter is DefaultObfuscation
, slot values are obfuscated
in the log output. If the value is None
, the actual value is present in the log output.
The default is to obfuscate values in the CloudWatch logs.
public void setBotId(String botId)
The identifier of the bot associated with the slot.
botId
- The identifier of the bot associated with the slot.public String getBotId()
The identifier of the bot associated with the slot.
public CreateSlotRequest withBotId(String botId)
The identifier of the bot associated with the slot.
botId
- The identifier of the bot associated with the slot.public void setBotVersion(String botVersion)
The version of the bot associated with the slot.
botVersion
- The version of the bot associated with the slot.public String getBotVersion()
The version of the bot associated with the slot.
public CreateSlotRequest withBotVersion(String botVersion)
The version of the bot associated with the slot.
botVersion
- The version of the bot associated with the slot.public void setLocaleId(String localeId)
The identifier of the language and locale that the slot will be used in. The string must match one of the supported locales. All of the bots, intents, slot types used by the slot must have the same locale. For more information, see Supported languages.
localeId
- The identifier of the language and locale that the slot will be used in. The string must match one of the
supported locales. All of the bots, intents, slot types used by the slot must have the same locale. For
more information, see Supported
languages.public String getLocaleId()
The identifier of the language and locale that the slot will be used in. The string must match one of the supported locales. All of the bots, intents, slot types used by the slot must have the same locale. For more information, see Supported languages.
public CreateSlotRequest withLocaleId(String localeId)
The identifier of the language and locale that the slot will be used in. The string must match one of the supported locales. All of the bots, intents, slot types used by the slot must have the same locale. For more information, see Supported languages.
localeId
- The identifier of the language and locale that the slot will be used in. The string must match one of the
supported locales. All of the bots, intents, slot types used by the slot must have the same locale. For
more information, see Supported
languages.public void setIntentId(String intentId)
The identifier of the intent that contains the slot.
intentId
- The identifier of the intent that contains the slot.public String getIntentId()
The identifier of the intent that contains the slot.
public CreateSlotRequest withIntentId(String intentId)
The identifier of the intent that contains the slot.
intentId
- The identifier of the intent that contains the slot.public void setMultipleValuesSetting(MultipleValuesSetting multipleValuesSetting)
Indicates whether the slot returns multiple values in one response. Multi-value slots are only available in the
en-US
locale. If you set this value to true
in any other locale, Amazon Lex throws a
ValidationException
.
If the multipleValuesSetting
is not set, the default value is false
.
multipleValuesSetting
- Indicates whether the slot returns multiple values in one response. Multi-value slots are only available
in the en-US
locale. If you set this value to true
in any other locale, Amazon
Lex throws a ValidationException
.
If the multipleValuesSetting
is not set, the default value is false
.
public MultipleValuesSetting getMultipleValuesSetting()
Indicates whether the slot returns multiple values in one response. Multi-value slots are only available in the
en-US
locale. If you set this value to true
in any other locale, Amazon Lex throws a
ValidationException
.
If the multipleValuesSetting
is not set, the default value is false
.
en-US
locale. If you set this value to true
in any other locale, Amazon
Lex throws a ValidationException
.
If the multipleValuesSetting
is not set, the default value is false
.
public CreateSlotRequest withMultipleValuesSetting(MultipleValuesSetting multipleValuesSetting)
Indicates whether the slot returns multiple values in one response. Multi-value slots are only available in the
en-US
locale. If you set this value to true
in any other locale, Amazon Lex throws a
ValidationException
.
If the multipleValuesSetting
is not set, the default value is false
.
multipleValuesSetting
- Indicates whether the slot returns multiple values in one response. Multi-value slots are only available
in the en-US
locale. If you set this value to true
in any other locale, Amazon
Lex throws a ValidationException
.
If the multipleValuesSetting
is not set, the default value is false
.
public void setSubSlotSetting(SubSlotSetting subSlotSetting)
Specifications for the constituent sub slots and the expression for the composite slot.
subSlotSetting
- Specifications for the constituent sub slots and the expression for the composite slot.public SubSlotSetting getSubSlotSetting()
Specifications for the constituent sub slots and the expression for the composite slot.
public CreateSlotRequest withSubSlotSetting(SubSlotSetting subSlotSetting)
Specifications for the constituent sub slots and the expression for the composite slot.
subSlotSetting
- Specifications for the constituent sub slots and the expression for the composite slot.public String toString()
toString
in class Object
Object.toString()
public CreateSlotRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()