Class PutSessionResponse
- java.lang.Object
-
- software.amazon.awssdk.core.SdkResponse
-
- software.amazon.awssdk.awscore.AwsResponse
-
- software.amazon.awssdk.services.lexruntimev2.model.LexRuntimeV2Response
-
- software.amazon.awssdk.services.lexruntimev2.model.PutSessionResponse
-
- All Implemented Interfaces:
SdkPojo,ToCopyableBuilder<PutSessionResponse.Builder,PutSessionResponse>
@Generated("software.amazon.awssdk:codegen") public final class PutSessionResponse extends LexRuntimeV2Response implements ToCopyableBuilder<PutSessionResponse.Builder,PutSessionResponse>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfacePutSessionResponse.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static PutSessionResponse.Builderbuilder()StringcontentType()The type of response.booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()Stringmessages()A list of messages that were last sent to the user.StringrequestAttributes()A base-64-encoded gzipped field that provides request-specific information passed between the client application and Amazon Lex V2.List<SdkField<?>>sdkFields()static Class<? extends PutSessionResponse.Builder>serializableBuilderClass()StringsessionId()The identifier of the session that received the data.StringsessionState()A base-64-encoded gzipped field that represents the current state of the dialog between the user and the bot.PutSessionResponse.BuildertoBuilder()StringtoString()Returns a string representation of this object.-
Methods inherited from class software.amazon.awssdk.services.lexruntimev2.model.LexRuntimeV2Response
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
-
contentType
public final String contentType()
The type of response. Same as the type specified in the
responseContentTypefield in the request.- Returns:
- The type of response. Same as the type specified in the
responseContentTypefield in the request.
-
messages
public final String messages()
A list of messages that were last sent to the user. The messages are ordered based on how you return the messages from you Lambda function or the order that the messages are defined in the bot.
- Returns:
- A list of messages that were last sent to the user. The messages are ordered based on how you return the messages from you Lambda function or the order that the messages are defined in the bot.
-
sessionState
public final String sessionState()
A base-64-encoded gzipped field that represents the current state of the dialog between the user and the bot. Use this to determine the progress of the conversation and what the next action may be.
- Returns:
- A base-64-encoded gzipped field that represents the current state of the dialog between the user and the bot. Use this to determine the progress of the conversation and what the next action may be.
-
requestAttributes
public final String requestAttributes()
A base-64-encoded gzipped field that provides request-specific information passed between the client application and Amazon Lex V2. These are the same as the
requestAttributeparameter in the call to thePutSessionoperation.- Returns:
- A base-64-encoded gzipped field that provides request-specific information passed between the client
application and Amazon Lex V2. These are the same as the
requestAttributeparameter in the call to thePutSessionoperation.
-
sessionId
public final String sessionId()
The identifier of the session that received the data.
- Returns:
- The identifier of the session that received the data.
-
toBuilder
public PutSessionResponse.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<PutSessionResponse.Builder,PutSessionResponse>- Specified by:
toBuilderin classAwsResponse
-
builder
public static PutSessionResponse.Builder builder()
-
serializableBuilderClass
public static Class<? extends PutSessionResponse.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
-
-