Class InvokedBy
- java.lang.Object
-
- software.amazon.awssdk.services.chimesdkidentity.model.InvokedBy
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<InvokedBy.Builder,InvokedBy>
@Generated("software.amazon.awssdk:codegen") public final class InvokedBy extends Object implements SdkPojo, Serializable, ToCopyableBuilder<InvokedBy.Builder,InvokedBy>
Specifies the type of message that triggers a bot.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceInvokedBy.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static InvokedBy.Builderbuilder()booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()Map<String,SdkField<?>>sdkFieldNameToField()List<SdkField<?>>sdkFields()static Class<? extends InvokedBy.Builder>serializableBuilderClass()StandardMessagesstandardMessages()Sets standard messages as the bot trigger.StringstandardMessagesAsString()Sets standard messages as the bot trigger.TargetedMessagestargetedMessages()Sets targeted messages as the bot trigger.StringtargetedMessagesAsString()Sets targeted messages as the bot trigger.InvokedBy.BuildertoBuilder()StringtoString()Returns a string representation of this object.-
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
-
standardMessages
public final StandardMessages standardMessages()
Sets standard messages as the bot trigger. For standard messages:
-
ALL: The bot processes all standard messages. -
AUTO: The bot responds to ALL messages when the channel has one other non-hidden member, and responds to MENTIONS when the channel has more than one other non-hidden member. -
MENTIONS: The bot processes all standard messages that have a message attribute withCHIME.mentionsand a value of the bot ARN. -
NONE: The bot processes no standard messages.
If the service returns an enum value that is not available in the current SDK version,
standardMessageswill returnStandardMessages.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromstandardMessagesAsString().- Returns:
- Sets standard messages as the bot trigger. For standard messages:
-
ALL: The bot processes all standard messages. -
AUTO: The bot responds to ALL messages when the channel has one other non-hidden member, and responds to MENTIONS when the channel has more than one other non-hidden member. -
MENTIONS: The bot processes all standard messages that have a message attribute withCHIME.mentionsand a value of the bot ARN. -
NONE: The bot processes no standard messages.
-
- See Also:
StandardMessages
-
-
standardMessagesAsString
public final String standardMessagesAsString()
Sets standard messages as the bot trigger. For standard messages:
-
ALL: The bot processes all standard messages. -
AUTO: The bot responds to ALL messages when the channel has one other non-hidden member, and responds to MENTIONS when the channel has more than one other non-hidden member. -
MENTIONS: The bot processes all standard messages that have a message attribute withCHIME.mentionsand a value of the bot ARN. -
NONE: The bot processes no standard messages.
If the service returns an enum value that is not available in the current SDK version,
standardMessageswill returnStandardMessages.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromstandardMessagesAsString().- Returns:
- Sets standard messages as the bot trigger. For standard messages:
-
ALL: The bot processes all standard messages. -
AUTO: The bot responds to ALL messages when the channel has one other non-hidden member, and responds to MENTIONS when the channel has more than one other non-hidden member. -
MENTIONS: The bot processes all standard messages that have a message attribute withCHIME.mentionsand a value of the bot ARN. -
NONE: The bot processes no standard messages.
-
- See Also:
StandardMessages
-
-
targetedMessages
public final TargetedMessages targetedMessages()
Sets targeted messages as the bot trigger. For targeted messages:
-
ALL: The bot processes allTargetedMessagessent to it. The bot then responds with a targeted message back to the sender. -
NONE: The bot processes no targeted messages.
If the service returns an enum value that is not available in the current SDK version,
targetedMessageswill returnTargetedMessages.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromtargetedMessagesAsString().- Returns:
- Sets targeted messages as the bot trigger. For targeted messages:
-
ALL: The bot processes allTargetedMessagessent to it. The bot then responds with a targeted message back to the sender. -
NONE: The bot processes no targeted messages.
-
- See Also:
TargetedMessages
-
-
targetedMessagesAsString
public final String targetedMessagesAsString()
Sets targeted messages as the bot trigger. For targeted messages:
-
ALL: The bot processes allTargetedMessagessent to it. The bot then responds with a targeted message back to the sender. -
NONE: The bot processes no targeted messages.
If the service returns an enum value that is not available in the current SDK version,
targetedMessageswill returnTargetedMessages.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromtargetedMessagesAsString().- Returns:
- Sets targeted messages as the bot trigger. For targeted messages:
-
ALL: The bot processes allTargetedMessagessent to it. The bot then responds with a targeted message back to the sender. -
NONE: The bot processes no targeted messages.
-
- See Also:
TargetedMessages
-
-
toBuilder
public InvokedBy.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<InvokedBy.Builder,InvokedBy>
-
builder
public static InvokedBy.Builder builder()
-
serializableBuilderClass
public static Class<? extends InvokedBy.Builder> serializableBuilderClass()
-
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.
-
sdkFieldNameToField
public final Map<String,SdkField<?>> sdkFieldNameToField()
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo
-
-