Class PutSlotTypeResponse
- java.lang.Object
-
- software.amazon.awssdk.core.SdkResponse
-
- software.amazon.awssdk.awscore.AwsResponse
-
- software.amazon.awssdk.services.lexmodelbuilding.model.LexModelBuildingResponse
-
- software.amazon.awssdk.services.lexmodelbuilding.model.PutSlotTypeResponse
-
- All Implemented Interfaces:
SdkPojo,ToCopyableBuilder<PutSlotTypeResponse.Builder,PutSlotTypeResponse>
@Generated("software.amazon.awssdk:codegen") public final class PutSlotTypeResponse extends LexModelBuildingResponse implements ToCopyableBuilder<PutSlotTypeResponse.Builder,PutSlotTypeResponse>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfacePutSlotTypeResponse.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static PutSlotTypeResponse.Builderbuilder()Stringchecksum()Checksum of the$LATESTversion of the slot type.InstantcreatedDate()The date that the slot type was created.BooleancreateVersion()Trueif a new version of the slot type was created.Stringdescription()A description of the slot type.List<EnumerationValue>enumerationValues()A list ofEnumerationValueobjects that defines the values that the slot type can take.booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)booleanhasEnumerationValues()For responses, this returns true if the service returned a value for the EnumerationValues property.inthashCode()booleanhasSlotTypeConfigurations()For responses, this returns true if the service returned a value for the SlotTypeConfigurations property.InstantlastUpdatedDate()The date that the slot type was updated.Stringname()The name of the slot type.StringparentSlotTypeSignature()The built-in slot type used as the parent of the slot type.List<SdkField<?>>sdkFields()static Class<? extends PutSlotTypeResponse.Builder>serializableBuilderClass()List<SlotTypeConfiguration>slotTypeConfigurations()Configuration information that extends the parent built-in slot type.PutSlotTypeResponse.BuildertoBuilder()StringtoString()Returns a string representation of this object.SlotValueSelectionStrategyvalueSelectionStrategy()The slot resolution strategy that Amazon Lex uses to determine the value of the slot.StringvalueSelectionStrategyAsString()The slot resolution strategy that Amazon Lex uses to determine the value of the slot.Stringversion()The version of the slot type.-
Methods inherited from class software.amazon.awssdk.services.lexmodelbuilding.model.LexModelBuildingResponse
responseMetadata
-
Methods inherited from class software.amazon.awssdk.core.SdkResponse
sdkHttpResponse
-
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
-
name
public final String name()
The name of the slot type.
- Returns:
- The name of the slot type.
-
description
public final String description()
A description of the slot type.
- Returns:
- A description of the slot type.
-
hasEnumerationValues
public final boolean hasEnumerationValues()
For responses, this returns true if the service returned a value for the EnumerationValues 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.
-
enumerationValues
public final List<EnumerationValue> enumerationValues()
A list of
EnumerationValueobjects that defines 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
hasEnumerationValues()method.- Returns:
- A list of
EnumerationValueobjects that defines the values that the slot type can take.
-
lastUpdatedDate
public final Instant lastUpdatedDate()
The date that the slot type was updated. When you create a slot type, the creation date and last update date are the same.
- Returns:
- The date that the slot type was updated. When you create a slot type, the creation date and last update date are the same.
-
createdDate
public final Instant createdDate()
The date that the slot type was created.
- Returns:
- The date that the slot type was created.
-
version
public final String version()
The version of the slot type. For a new slot type, the version is always
$LATEST.- Returns:
- The version of the slot type. For a new slot type, the version is always
$LATEST.
-
checksum
public final String checksum()
Checksum of the
$LATESTversion of the slot type.- Returns:
- Checksum of the
$LATESTversion of the slot type.
-
valueSelectionStrategy
public final SlotValueSelectionStrategy valueSelectionStrategy()
The slot resolution strategy that Amazon Lex uses to determine the value of the slot. For more information, see PutSlotType.
If the service returns an enum value that is not available in the current SDK version,
valueSelectionStrategywill returnSlotValueSelectionStrategy.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromvalueSelectionStrategyAsString().- Returns:
- The slot resolution strategy that Amazon Lex uses to determine the value of the slot. For more information, see PutSlotType.
- See Also:
SlotValueSelectionStrategy
-
valueSelectionStrategyAsString
public final String valueSelectionStrategyAsString()
The slot resolution strategy that Amazon Lex uses to determine the value of the slot. For more information, see PutSlotType.
If the service returns an enum value that is not available in the current SDK version,
valueSelectionStrategywill returnSlotValueSelectionStrategy.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromvalueSelectionStrategyAsString().- Returns:
- The slot resolution strategy that Amazon Lex uses to determine the value of the slot. For more information, see PutSlotType.
- See Also:
SlotValueSelectionStrategy
-
createVersion
public final Boolean createVersion()
Trueif a new version of the slot type was created. If thecreateVersionfield was not specified in the request, thecreateVersionfield is set to false in the response.- Returns:
Trueif a new version of the slot type was created. If thecreateVersionfield was not specified in the request, thecreateVersionfield is set to false in the response.
-
parentSlotTypeSignature
public final String parentSlotTypeSignature()
The built-in slot type used as the parent of the slot type.
- Returns:
- The built-in slot type used as the parent of the slot type.
-
hasSlotTypeConfigurations
public final boolean hasSlotTypeConfigurations()
For responses, this returns true if the service returned a value for the SlotTypeConfigurations 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.
-
slotTypeConfigurations
public final List<SlotTypeConfiguration> slotTypeConfigurations()
Configuration information that extends the parent built-in slot type.
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
hasSlotTypeConfigurations()method.- Returns:
- Configuration information that extends the parent built-in slot type.
-
toBuilder
public PutSlotTypeResponse.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<PutSlotTypeResponse.Builder,PutSlotTypeResponse>- Specified by:
toBuilderin classAwsResponse
-
builder
public static PutSlotTypeResponse.Builder builder()
-
serializableBuilderClass
public static Class<? extends PutSlotTypeResponse.Builder> serializableBuilderClass()
-
hashCode
public final int hashCode()
- Overrides:
hashCodein classAwsResponse
-
equals
public final boolean equals(Object obj)
- Overrides:
equalsin classAwsResponse
-
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 classSdkResponse
-
-