diff --git a/aws-android-sdk-chimesdkidentity/src/main/java/com/amazonaws/services/chimesdkidentity/model/InvokedBy.java b/aws-android-sdk-chimesdkidentity/src/main/java/com/amazonaws/services/chimesdkidentity/model/InvokedBy.java new file mode 100644 index 0000000000..95e014e749 --- /dev/null +++ b/aws-android-sdk-chimesdkidentity/src/main/java/com/amazonaws/services/chimesdkidentity/model/InvokedBy.java @@ -0,0 +1,746 @@ +/* + * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +package com.amazonaws.services.chimesdkidentity.model; + +import java.io.Serializable; + +/** + *
+ * Specifies the type of message that triggers a bot. + *
+ */ +public class InvokedBy implements Serializable { + /** + *+ * 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 with CHIME.mentions
and a value of the
+ * bot ARN.
+ *
+ * NONE
: The bot processes no standard messages.
+ *
+ * Constraints:
+ * Allowed Values: AUTO, ALL, MENTIONS, NONE
+ */
+ private String standardMessages;
+
+ /**
+ *
+ * Sets targeted messages as the bot trigger. For targeted messages: + *
+ *
+ * ALL
: The bot processes all TargetedMessages
+ * sent to it. The bot then responds with a targeted message back to the
+ * sender.
+ *
+ * NONE
: The bot processes no targeted messages.
+ *
+ * Constraints:
+ * Allowed Values: ALL, NONE
+ */
+ private String targetedMessages;
+
+ /**
+ *
+ * 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 with CHIME.mentions
and a value of the
+ * bot ARN.
+ *
+ * NONE
: The bot processes no standard messages.
+ *
+ * Constraints:
+ * Allowed Values: AUTO, ALL, MENTIONS, NONE
+ *
+ * @return
+ * 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 with CHIME.mentions
+ * and a value of the bot ARN.
+ *
+ * NONE
: The bot processes no standard messages.
+ *
+ * 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 with CHIME.mentions
and a value of the
+ * bot ARN.
+ *
+ * NONE
: The bot processes no standard messages.
+ *
+ * Constraints:
+ * Allowed Values: AUTO, ALL, MENTIONS, NONE
+ *
+ * @param 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 with CHIME.mentions
+ * and a value of the bot ARN.
+ *
+ * NONE
: The bot processes no standard messages.
+ *
+ * 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 with CHIME.mentions
and a value of the
+ * bot ARN.
+ *
+ * NONE
: The bot processes no standard messages.
+ *
+ * Returns a reference to this object so that method calls can be chained + * together. + *
+ * Constraints:
+ * Allowed Values: AUTO, ALL, MENTIONS, NONE
+ *
+ * @param 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 with CHIME.mentions
+ * and a value of the bot ARN.
+ *
+ * NONE
: The bot processes no standard messages.
+ *
+ * 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 with CHIME.mentions
and a value of the
+ * bot ARN.
+ *
+ * NONE
: The bot processes no standard messages.
+ *
+ * Constraints:
+ * Allowed Values: AUTO, ALL, MENTIONS, NONE
+ *
+ * @param 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 with CHIME.mentions
+ * and a value of the bot ARN.
+ *
+ * NONE
: The bot processes no standard messages.
+ *
+ * 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 with CHIME.mentions
and a value of the
+ * bot ARN.
+ *
+ * NONE
: The bot processes no standard messages.
+ *
+ * Returns a reference to this object so that method calls can be chained + * together. + *
+ * Constraints:
+ * Allowed Values: AUTO, ALL, MENTIONS, NONE
+ *
+ * @param 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 with CHIME.mentions
+ * and a value of the bot ARN.
+ *
+ * NONE
: The bot processes no standard messages.
+ *
+ * Sets targeted messages as the bot trigger. For targeted messages: + *
+ *
+ * ALL
: The bot processes all TargetedMessages
+ * sent to it. The bot then responds with a targeted message back to the
+ * sender.
+ *
+ * NONE
: The bot processes no targeted messages.
+ *
+ * Constraints:
+ * Allowed Values: ALL, NONE
+ *
+ * @return
+ * Sets targeted messages as the bot trigger. For targeted messages: + *
+ *
+ * ALL
: The bot processes all
+ * TargetedMessages
sent to it. The bot then responds
+ * with a targeted message back to the sender.
+ *
+ * NONE
: The bot processes no targeted messages.
+ *
+ * Sets targeted messages as the bot trigger. For targeted messages: + *
+ *
+ * ALL
: The bot processes all TargetedMessages
+ * sent to it. The bot then responds with a targeted message back to the
+ * sender.
+ *
+ * NONE
: The bot processes no targeted messages.
+ *
+ * Constraints:
+ * Allowed Values: ALL, NONE
+ *
+ * @param targetedMessages
+ * Sets targeted messages as the bot trigger. For targeted + * messages: + *
+ *
+ * ALL
: The bot processes all
+ * TargetedMessages
sent to it. The bot then
+ * responds with a targeted message back to the sender.
+ *
+ * NONE
: The bot processes no targeted messages.
+ *
+ * Sets targeted messages as the bot trigger. For targeted messages: + *
+ *
+ * ALL
: The bot processes all TargetedMessages
+ * sent to it. The bot then responds with a targeted message back to the
+ * sender.
+ *
+ * NONE
: The bot processes no targeted messages.
+ *
+ * Returns a reference to this object so that method calls can be chained + * together. + *
+ * Constraints:
+ * Allowed Values: ALL, NONE
+ *
+ * @param targetedMessages
+ * Sets targeted messages as the bot trigger. For targeted + * messages: + *
+ *
+ * ALL
: The bot processes all
+ * TargetedMessages
sent to it. The bot then
+ * responds with a targeted message back to the sender.
+ *
+ * NONE
: The bot processes no targeted messages.
+ *
+ * Sets targeted messages as the bot trigger. For targeted messages: + *
+ *
+ * ALL
: The bot processes all TargetedMessages
+ * sent to it. The bot then responds with a targeted message back to the
+ * sender.
+ *
+ * NONE
: The bot processes no targeted messages.
+ *
+ * Constraints:
+ * Allowed Values: ALL, NONE
+ *
+ * @param targetedMessages
+ * Sets targeted messages as the bot trigger. For targeted + * messages: + *
+ *
+ * ALL
: The bot processes all
+ * TargetedMessages
sent to it. The bot then
+ * responds with a targeted message back to the sender.
+ *
+ * NONE
: The bot processes no targeted messages.
+ *
+ * Sets targeted messages as the bot trigger. For targeted messages: + *
+ *
+ * ALL
: The bot processes all TargetedMessages
+ * sent to it. The bot then responds with a targeted message back to the
+ * sender.
+ *
+ * NONE
: The bot processes no targeted messages.
+ *
+ * Returns a reference to this object so that method calls can be chained + * together. + *
+ * Constraints:
+ * Allowed Values: ALL, NONE
+ *
+ * @param targetedMessages
+ * Sets targeted messages as the bot trigger. For targeted + * messages: + *
+ *
+ * ALL
: The bot processes all
+ * TargetedMessages
sent to it. The bot then
+ * responds with a targeted message back to the sender.
+ *
+ * NONE
: The bot processes no targeted messages.
+ *
+ * Deprecated. Use InvokedBy
instead.
+ *
* Determines whether the Amazon Lex V2 bot responds to all standard * messages. Control messages are not supported. @@ -34,6 +39,13 @@ public class LexConfiguration implements Serializable { */ private String respondsTo; + /** + *
+ * Specifies the type of message that triggers a bot. + *
+ */ + private InvokedBy invokedBy; + /** *
* The ARN of the Amazon Lex V2 bot's alias. The ARN uses this format:
@@ -72,6 +84,11 @@ public class LexConfiguration implements Serializable {
private String welcomeIntent;
/**
+ *
+ * Deprecated. Use InvokedBy
instead.
+ *
* Determines whether the Amazon Lex V2 bot responds to all standard
* messages. Control messages are not supported.
@@ -80,7 +97,12 @@ public class LexConfiguration implements Serializable {
* Constraints:
* Allowed Values: STANDARD_MESSAGES
*
- * @return
+ * @return
+ * Deprecated. Use InvokedBy
instead.
+ *
* Determines whether the Amazon Lex V2 bot responds to all standard * messages. Control messages are not supported. *
@@ -91,6 +113,11 @@ public String getRespondsTo() { } /** + *
+ * Deprecated. Use InvokedBy
instead.
+ *
* Determines whether the Amazon Lex V2 bot responds to all standard
* messages. Control messages are not supported.
@@ -99,7 +126,12 @@ public String getRespondsTo() {
* Constraints:
* Allowed Values: STANDARD_MESSAGES
*
- * @param respondsTo
+ * @param respondsTo
+ * Deprecated. Use InvokedBy
instead.
+ *
* Determines whether the Amazon Lex V2 bot responds to all * standard messages. Control messages are not supported. *
@@ -110,6 +142,11 @@ public void setRespondsTo(String respondsTo) { } /** + *
+ * Deprecated. Use InvokedBy
instead.
+ *
* Determines whether the Amazon Lex V2 bot responds to all standard
* messages. Control messages are not supported.
@@ -121,7 +158,12 @@ public void setRespondsTo(String respondsTo) {
* Constraints:
* Allowed Values: STANDARD_MESSAGES
*
- * @param respondsTo
+ * @param respondsTo
+ * Deprecated. Use InvokedBy
instead.
+ *
* Determines whether the Amazon Lex V2 bot responds to all * standard messages. Control messages are not supported. *
@@ -135,6 +177,11 @@ public LexConfiguration withRespondsTo(String respondsTo) { } /** + *
+ * Deprecated. Use InvokedBy
instead.
+ *
* Determines whether the Amazon Lex V2 bot responds to all standard
* messages. Control messages are not supported.
@@ -143,7 +190,12 @@ public LexConfiguration withRespondsTo(String respondsTo) {
* Constraints:
* Allowed Values: STANDARD_MESSAGES
*
- * @param respondsTo
+ * @param respondsTo
+ * Deprecated. Use InvokedBy
instead.
+ *
* Determines whether the Amazon Lex V2 bot responds to all * standard messages. Control messages are not supported. *
@@ -154,6 +206,11 @@ public void setRespondsTo(RespondsTo respondsTo) { } /** + *
+ * Deprecated. Use InvokedBy
instead.
+ *
* Determines whether the Amazon Lex V2 bot responds to all standard
* messages. Control messages are not supported.
@@ -165,7 +222,12 @@ public void setRespondsTo(RespondsTo respondsTo) {
* Constraints:
* Allowed Values: STANDARD_MESSAGES
*
- * @param respondsTo
+ * @param respondsTo
+ * Deprecated. Use InvokedBy
instead.
+ *
* Determines whether the Amazon Lex V2 bot responds to all * standard messages. Control messages are not supported. *
@@ -178,6 +240,51 @@ public LexConfiguration withRespondsTo(RespondsTo respondsTo) { return this; } + /** + *+ * Specifies the type of message that triggers a bot. + *
+ * + * @return+ * Specifies the type of message that triggers a bot. + *
+ */ + public InvokedBy getInvokedBy() { + return invokedBy; + } + + /** + *+ * Specifies the type of message that triggers a bot. + *
+ * + * @param invokedBy+ * Specifies the type of message that triggers a bot. + *
+ */ + public void setInvokedBy(InvokedBy invokedBy) { + this.invokedBy = invokedBy; + } + + /** + *+ * Specifies the type of message that triggers a bot. + *
+ *+ * Returns a reference to this object so that method calls can be chained + * together. + * + * @param invokedBy
+ * Specifies the type of message that triggers a bot. + *
+ * @return A reference to this updated object so that method calls can be + * chained together. + */ + public LexConfiguration withInvokedBy(InvokedBy invokedBy) { + this.invokedBy = invokedBy; + return this; + } + /** *
* The ARN of the Amazon Lex V2 bot's alias. The ARN uses this format:
@@ -401,6 +508,8 @@ public String toString() {
sb.append("{");
if (getRespondsTo() != null)
sb.append("RespondsTo: " + getRespondsTo() + ",");
+ if (getInvokedBy() != null)
+ sb.append("InvokedBy: " + getInvokedBy() + ",");
if (getLexBotAliasArn() != null)
sb.append("LexBotAliasArn: " + getLexBotAliasArn() + ",");
if (getLocaleId() != null)
@@ -417,6 +526,7 @@ public int hashCode() {
int hashCode = 1;
hashCode = prime * hashCode + ((getRespondsTo() == null) ? 0 : getRespondsTo().hashCode());
+ hashCode = prime * hashCode + ((getInvokedBy() == null) ? 0 : getInvokedBy().hashCode());
hashCode = prime * hashCode
+ ((getLexBotAliasArn() == null) ? 0 : getLexBotAliasArn().hashCode());
hashCode = prime * hashCode + ((getLocaleId() == null) ? 0 : getLocaleId().hashCode());
@@ -441,6 +551,11 @@ public boolean equals(Object obj) {
if (other.getRespondsTo() != null
&& other.getRespondsTo().equals(this.getRespondsTo()) == false)
return false;
+ if (other.getInvokedBy() == null ^ this.getInvokedBy() == null)
+ return false;
+ if (other.getInvokedBy() != null
+ && other.getInvokedBy().equals(this.getInvokedBy()) == false)
+ return false;
if (other.getLexBotAliasArn() == null ^ this.getLexBotAliasArn() == null)
return false;
if (other.getLexBotAliasArn() != null
diff --git a/aws-android-sdk-chimesdkidentity/src/main/java/com/amazonaws/services/chimesdkidentity/model/StandardMessages.java b/aws-android-sdk-chimesdkidentity/src/main/java/com/amazonaws/services/chimesdkidentity/model/StandardMessages.java
new file mode 100644
index 0000000000..2729411f02
--- /dev/null
+++ b/aws-android-sdk-chimesdkidentity/src/main/java/com/amazonaws/services/chimesdkidentity/model/StandardMessages.java
@@ -0,0 +1,66 @@
+/*
+ * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License").
+ * You may not use this file except in compliance with the License.
+ * A copy of the License is located at
+ *
+ * http://aws.amazon.com/apache2.0
+ *
+ * or in the "license" file accompanying this file. This file is distributed
+ * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
+ * express or implied. See the License for the specific language governing
+ * permissions and limitations under the License.
+ */
+
+package com.amazonaws.services.chimesdkidentity.model;
+
+import java.util.HashMap;
+import java.util.Map;
+
+/**
+ * Standard Messages
+ */
+public enum StandardMessages {
+
+ AUTO("AUTO"),
+ ALL("ALL"),
+ MENTIONS("MENTIONS"),
+ NONE("NONE");
+
+ private String value;
+
+ private StandardMessages(String value) {
+ this.value = value;
+ }
+
+ @Override
+ public String toString() {
+ return value;
+ }
+
+ private static final Map
+ * The configuration for the bot update.
+ *
* The ARN of the
+ * The configuration for the bot update.
+ *
+ * The configuration for the bot update.
+ *
+ * The configuration for the bot update.
+ *
+ * The configuration for the bot update.
+ *
+ * The configuration for the bot update.
+ *
+ * Returns a reference to this object so that method calls can be chained
+ * together.
+ *
+ * @param configuration
+ * The configuration for the bot update.
+ * AppInstanceBot
.
@@ -241,6 +248,51 @@ public UpdateAppInstanceBotRequest withMetadata(String metadata) {
return this;
}
+ /**
+ *