@Generated(value="software.amazon.awssdk:codegen") public final class GetBotChannelAssociationResponse extends LexModelBuildingResponse implements ToCopyableBuilder<GetBotChannelAssociationResponse.Builder,GetBotChannelAssociationResponse>
Modifier and Type | Class and Description |
---|---|
static interface |
GetBotChannelAssociationResponse.Builder |
Modifier and Type | Method and Description |
---|---|
String |
botAlias()
An alias pointing to the specific version of the Amazon Lex bot to which this association is being made.
|
Map<String,String> |
botConfiguration()
Provides information that the messaging platform needs to communicate with the Amazon Lex bot.
|
String |
botName()
The name of the Amazon Lex bot.
|
static GetBotChannelAssociationResponse.Builder |
builder() |
Instant |
createdDate()
The date that the association between the bot and the channel was created.
|
String |
description()
A description of the association between the bot and the channel.
|
boolean |
equals(Object obj) |
String |
failureReason()
If
status is FAILED , Amazon Lex provides the reason that it failed to create the
association. |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz)
Used to retrieve the value of a field from any class that extends
SdkResponse . |
int |
hashCode() |
String |
name()
The name of the association between the bot and the channel.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends GetBotChannelAssociationResponse.Builder> |
serializableBuilderClass() |
ChannelStatus |
status()
The status of the bot channel.
|
String |
statusAsString()
The status of the bot channel.
|
GetBotChannelAssociationResponse.Builder |
toBuilder()
Take this object and create a builder that contains all of the current property values of this object.
|
String |
toString() |
ChannelType |
type()
The type of the messaging platform.
|
String |
typeAsString()
The type of the messaging platform.
|
responseMetadata
sdkHttpResponse
copy
public String name()
The name of the association between the bot and the channel.
public String description()
A description of the association between the bot and the channel.
public String botAlias()
An alias pointing to the specific version of the Amazon Lex bot to which this association is being made.
public String botName()
The name of the Amazon Lex bot.
public Instant createdDate()
The date that the association between the bot and the channel was created.
public ChannelType type()
The type of the messaging platform.
If the service returns an enum value that is not available in the current SDK version, type
will return
ChannelType.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available from
typeAsString()
.
ChannelType
public String typeAsString()
The type of the messaging platform.
If the service returns an enum value that is not available in the current SDK version, type
will return
ChannelType.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available from
typeAsString()
.
ChannelType
public Map<String,String> botConfiguration()
Provides information that the messaging platform needs to communicate with the Amazon Lex bot.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
public ChannelStatus status()
The status of the bot channel.
CREATED
- The channel has been created and is ready for use.
IN_PROGRESS
- Channel creation is in progress.
FAILED
- There was an error creating the channel. For information about the reason for the failure,
see the failureReason
field.
If the service returns an enum value that is not available in the current SDK version, status
will
return ChannelStatus.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available from
statusAsString()
.
CREATED
- The channel has been created and is ready for use.
IN_PROGRESS
- Channel creation is in progress.
FAILED
- There was an error creating the channel. For information about the reason for the
failure, see the failureReason
field.
ChannelStatus
public String statusAsString()
The status of the bot channel.
CREATED
- The channel has been created and is ready for use.
IN_PROGRESS
- Channel creation is in progress.
FAILED
- There was an error creating the channel. For information about the reason for the failure,
see the failureReason
field.
If the service returns an enum value that is not available in the current SDK version, status
will
return ChannelStatus.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available from
statusAsString()
.
CREATED
- The channel has been created and is ready for use.
IN_PROGRESS
- Channel creation is in progress.
FAILED
- There was an error creating the channel. For information about the reason for the
failure, see the failureReason
field.
ChannelStatus
public String failureReason()
If status
is FAILED
, Amazon Lex provides the reason that it failed to create the
association.
status
is FAILED
, Amazon Lex provides the reason that it failed to create
the association.public GetBotChannelAssociationResponse.Builder toBuilder()
ToCopyableBuilder
toBuilder
in interface ToCopyableBuilder<GetBotChannelAssociationResponse.Builder,GetBotChannelAssociationResponse>
toBuilder
in class AwsResponse
public static GetBotChannelAssociationResponse.Builder builder()
public static Class<? extends GetBotChannelAssociationResponse.Builder> serializableBuilderClass()
public <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
SdkResponse
SdkResponse
. The field name
specified should match the member name from the corresponding service-2.json model specified in the
codegen-resources folder for a given service. The class specifies what class to cast the returned value to.
If the returned value is also a modeled class, the SdkResponse.getValueForField(String, Class)
method will
again be available.getValueForField
in class SdkResponse
fieldName
- The name of the member to be retrieved.clazz
- The class to cast the returned object to.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.