@Generated(value="software.amazon.awssdk:codegen") public final class ChatChannel extends Object implements SdkPojo, Serializable, ToCopyableBuilder<ChatChannel.Builder,ChatChannel>
The Chatbot chat channel used for collaboration during an incident.
| Modifier and Type | Class and Description |
|---|---|
static interface |
ChatChannel.Builder |
static class |
ChatChannel.Type |
| Modifier and Type | Method and Description |
|---|---|
static ChatChannel.Builder |
builder() |
List<String> |
chatbotSns()
The Amazon SNS targets that Chatbot uses to notify the chat channel of updates to an incident.
|
EmptyChatChannel |
empty()
Used to remove the chat channel from an incident record or response plan.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
static ChatChannel |
fromChatbotSns(List<String> chatbotSns)
Create an instance of this class with
chatbotSns() initialized to the given value. |
static ChatChannel |
fromEmpty(Consumer<EmptyChatChannel.Builder> empty)
Create an instance of this class with
empty() initialized to the given value. |
static ChatChannel |
fromEmpty(EmptyChatChannel empty)
Create an instance of this class with
empty() initialized to the given value. |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
boolean |
hasChatbotSns()
For responses, this returns true if the service returned a value for the ChatbotSns property.
|
int |
hashCode() |
List<SdkField<?>> |
sdkFields() |
static Class<? extends ChatChannel.Builder> |
serializableBuilderClass() |
ChatChannel.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
ChatChannel.Type |
type()
Retrieve an enum value representing which member of this object is populated.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final boolean hasChatbotSns()
isEmpty() 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.public final List<String> chatbotSns()
The Amazon SNS targets that Chatbot uses to notify the chat channel of updates to an incident. You can also make updates to the incident through the chat channel by using the Amazon SNS topics.
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 hasChatbotSns() method.
public final EmptyChatChannel empty()
Used to remove the chat channel from an incident record or response plan.
public ChatChannel.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<ChatChannel.Builder,ChatChannel>public static ChatChannel.Builder builder()
public static Class<? extends ChatChannel.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
public static ChatChannel fromChatbotSns(List<String> chatbotSns)
chatbotSns() initialized to the given value.
The Amazon SNS targets that Chatbot uses to notify the chat channel of updates to an incident. You can also make updates to the incident through the chat channel by using the Amazon SNS topics.
chatbotSns - The Amazon SNS targets that Chatbot uses to notify the chat channel of updates to an incident. You can
also make updates to the incident through the chat channel by using the Amazon SNS topics.public static ChatChannel fromEmpty(EmptyChatChannel empty)
empty() initialized to the given value.
Used to remove the chat channel from an incident record or response plan.
empty - Used to remove the chat channel from an incident record or response plan.public static ChatChannel fromEmpty(Consumer<EmptyChatChannel.Builder> empty)
empty() initialized to the given value.
Used to remove the chat channel from an incident record or response plan.
empty - Used to remove the chat channel from an incident record or response plan.public ChatChannel.Type type()
ChatChannel.Type.UNKNOWN_TO_SDK_VERSION if the
service returned a member that is only known to a newer SDK version.
When this class is created directly in your code, this will be ChatChannel.Type.UNKNOWN_TO_SDK_VERSION if zero
members are set, and null if more than one member is set.Copyright © 2023. All rights reserved.