Class UpdateSlotTypeRequest
- java.lang.Object
-
- software.amazon.awssdk.core.SdkRequest
-
- software.amazon.awssdk.awscore.AwsRequest
-
- software.amazon.awssdk.services.lexmodelsv2.model.LexModelsV2Request
-
- software.amazon.awssdk.services.lexmodelsv2.model.UpdateSlotTypeRequest
-
- All Implemented Interfaces:
SdkPojo,ToCopyableBuilder<UpdateSlotTypeRequest.Builder,UpdateSlotTypeRequest>
@Generated("software.amazon.awssdk:codegen") public final class UpdateSlotTypeRequest extends LexModelsV2Request implements ToCopyableBuilder<UpdateSlotTypeRequest.Builder,UpdateSlotTypeRequest>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceUpdateSlotTypeRequest.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringbotId()The identifier of the bot that contains the slot type.StringbotVersion()The version of the bot that contains the slot type.static UpdateSlotTypeRequest.Builderbuilder()CompositeSlotTypeSettingcompositeSlotTypeSetting()Specifications for a composite slot type.Stringdescription()The new description of the slot type.booleanequals(Object obj)booleanequalsBySdkFields(Object obj)ExternalSourceSettingexternalSourceSetting()Returns the value of the ExternalSourceSetting property for this object.<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()booleanhasSlotTypeValues()For responses, this returns true if the service returned a value for the SlotTypeValues property.StringlocaleId()The identifier of the language and locale that contains the slot type.StringparentSlotTypeSignature()The new built-in slot type that should be used as the parent of this slot type.List<SdkField<?>>sdkFields()static Class<? extends UpdateSlotTypeRequest.Builder>serializableBuilderClass()StringslotTypeId()The unique identifier of the slot type to update.StringslotTypeName()The new name of the slot type.List<SlotTypeValue>slotTypeValues()A new list of values and their optional synonyms that define the values that the slot type can take.UpdateSlotTypeRequest.BuildertoBuilder()StringtoString()Returns a string representation of this object.SlotValueSelectionSettingvalueSelectionSetting()The strategy that Amazon Lex should use when deciding on a value from the list of slot type values.-
Methods inherited from class software.amazon.awssdk.awscore.AwsRequest
overrideConfiguration
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
slotTypeId
public final String slotTypeId()
The unique identifier of the slot type to update.
- Returns:
- The unique identifier of the slot type to update.
-
slotTypeName
public final String slotTypeName()
The new name of the slot type.
- Returns:
- The new name of the slot type.
-
description
public final String description()
The new description of the slot type.
- Returns:
- The new description of the slot type.
-
hasSlotTypeValues
public final boolean hasSlotTypeValues()
For responses, this returns true if the service returned a value for the SlotTypeValues property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()method on the property). This is useful because the SDK will never return a null collection or map, but you may need to differentiate between the service returning nothing (or null) and the service returning an empty collection or map. For requests, this returns true if a value for the property was specified in the request builder, and false if a value was not specified.
-
slotTypeValues
public final List<SlotTypeValue> slotTypeValues()
A new list of values and their optional synonyms that define the values that the slot type can take.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that you can differentiate between null and empty), you can use the
hasSlotTypeValues()method.- Returns:
- A new list of values and their optional synonyms that define the values that the slot type can take.
-
valueSelectionSetting
public final SlotValueSelectionSetting valueSelectionSetting()
The strategy that Amazon Lex should use when deciding on a value from the list of slot type values.
- Returns:
- The strategy that Amazon Lex should use when deciding on a value from the list of slot type values.
-
parentSlotTypeSignature
public final String parentSlotTypeSignature()
The new built-in slot type that should be used as the parent of this slot type.
- Returns:
- The new built-in slot type that should be used as the parent of this slot type.
-
botId
public final String botId()
The identifier of the bot that contains the slot type.
- Returns:
- The identifier of the bot that contains the slot type.
-
botVersion
public final String botVersion()
The version of the bot that contains the slot type. Must be
DRAFT.- Returns:
- The version of the bot that contains the slot type. Must be
DRAFT.
-
localeId
public final String localeId()
The identifier of the language and locale that contains the slot type. The string must match one of the supported locales. For more information, see Supported languages.
- Returns:
- The identifier of the language and locale that contains the slot type. The string must match one of the supported locales. For more information, see Supported languages.
-
externalSourceSetting
public final ExternalSourceSetting externalSourceSetting()
Returns the value of the ExternalSourceSetting property for this object.- Returns:
- The value of the ExternalSourceSetting property for this object.
-
compositeSlotTypeSetting
public final CompositeSlotTypeSetting compositeSlotTypeSetting()
Specifications for a composite slot type.
- Returns:
- Specifications for a composite slot type.
-
toBuilder
public UpdateSlotTypeRequest.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<UpdateSlotTypeRequest.Builder,UpdateSlotTypeRequest>- Specified by:
toBuilderin classLexModelsV2Request
-
builder
public static UpdateSlotTypeRequest.Builder builder()
-
serializableBuilderClass
public static Class<? extends UpdateSlotTypeRequest.Builder> serializableBuilderClass()
-
hashCode
public final int hashCode()
- Overrides:
hashCodein classAwsRequest
-
equals
public final boolean equals(Object obj)
- Overrides:
equalsin classAwsRequest
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
public final String toString()
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
-
getValueForField
public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
- Overrides:
getValueForFieldin classSdkRequest
-
-