2424 */
2525public class LexConfiguration implements Serializable {
2626 /**
27+ * <important>
28+ * <p>
29+ * <b>Deprecated</b>. Use <code>InvokedBy</code> instead.
30+ * </p>
31+ * </important>
2732 * <p>
2833 * Determines whether the Amazon Lex V2 bot responds to all standard
2934 * messages. Control messages are not supported.
@@ -34,6 +39,13 @@ public class LexConfiguration implements Serializable {
3439 */
3540 private String respondsTo ;
3641
42+ /**
43+ * <p>
44+ * Specifies the type of message that triggers a bot.
45+ * </p>
46+ */
47+ private InvokedBy invokedBy ;
48+
3749 /**
3850 * <p>
3951 * The ARN of the Amazon Lex V2 bot's alias. The ARN uses this format:
@@ -72,6 +84,11 @@ public class LexConfiguration implements Serializable {
7284 private String welcomeIntent ;
7385
7486 /**
87+ * <important>
88+ * <p>
89+ * <b>Deprecated</b>. Use <code>InvokedBy</code> instead.
90+ * </p>
91+ * </important>
7592 * <p>
7693 * Determines whether the Amazon Lex V2 bot responds to all standard
7794 * messages. Control messages are not supported.
@@ -80,7 +97,12 @@ public class LexConfiguration implements Serializable {
8097 * <b>Constraints:</b><br/>
8198 * <b>Allowed Values: </b>STANDARD_MESSAGES
8299 *
83- * @return <p>
100+ * @return <important>
101+ * <p>
102+ * <b>Deprecated</b>. Use <code>InvokedBy</code> instead.
103+ * </p>
104+ * </important>
105+ * <p>
84106 * Determines whether the Amazon Lex V2 bot responds to all standard
85107 * messages. Control messages are not supported.
86108 * </p>
@@ -91,6 +113,11 @@ public String getRespondsTo() {
91113 }
92114
93115 /**
116+ * <important>
117+ * <p>
118+ * <b>Deprecated</b>. Use <code>InvokedBy</code> instead.
119+ * </p>
120+ * </important>
94121 * <p>
95122 * Determines whether the Amazon Lex V2 bot responds to all standard
96123 * messages. Control messages are not supported.
@@ -99,7 +126,12 @@ public String getRespondsTo() {
99126 * <b>Constraints:</b><br/>
100127 * <b>Allowed Values: </b>STANDARD_MESSAGES
101128 *
102- * @param respondsTo <p>
129+ * @param respondsTo <important>
130+ * <p>
131+ * <b>Deprecated</b>. Use <code>InvokedBy</code> instead.
132+ * </p>
133+ * </important>
134+ * <p>
103135 * Determines whether the Amazon Lex V2 bot responds to all
104136 * standard messages. Control messages are not supported.
105137 * </p>
@@ -110,6 +142,11 @@ public void setRespondsTo(String respondsTo) {
110142 }
111143
112144 /**
145+ * <important>
146+ * <p>
147+ * <b>Deprecated</b>. Use <code>InvokedBy</code> instead.
148+ * </p>
149+ * </important>
113150 * <p>
114151 * Determines whether the Amazon Lex V2 bot responds to all standard
115152 * messages. Control messages are not supported.
@@ -121,7 +158,12 @@ public void setRespondsTo(String respondsTo) {
121158 * <b>Constraints:</b><br/>
122159 * <b>Allowed Values: </b>STANDARD_MESSAGES
123160 *
124- * @param respondsTo <p>
161+ * @param respondsTo <important>
162+ * <p>
163+ * <b>Deprecated</b>. Use <code>InvokedBy</code> instead.
164+ * </p>
165+ * </important>
166+ * <p>
125167 * Determines whether the Amazon Lex V2 bot responds to all
126168 * standard messages. Control messages are not supported.
127169 * </p>
@@ -135,6 +177,11 @@ public LexConfiguration withRespondsTo(String respondsTo) {
135177 }
136178
137179 /**
180+ * <important>
181+ * <p>
182+ * <b>Deprecated</b>. Use <code>InvokedBy</code> instead.
183+ * </p>
184+ * </important>
138185 * <p>
139186 * Determines whether the Amazon Lex V2 bot responds to all standard
140187 * messages. Control messages are not supported.
@@ -143,7 +190,12 @@ public LexConfiguration withRespondsTo(String respondsTo) {
143190 * <b>Constraints:</b><br/>
144191 * <b>Allowed Values: </b>STANDARD_MESSAGES
145192 *
146- * @param respondsTo <p>
193+ * @param respondsTo <important>
194+ * <p>
195+ * <b>Deprecated</b>. Use <code>InvokedBy</code> instead.
196+ * </p>
197+ * </important>
198+ * <p>
147199 * Determines whether the Amazon Lex V2 bot responds to all
148200 * standard messages. Control messages are not supported.
149201 * </p>
@@ -154,6 +206,11 @@ public void setRespondsTo(RespondsTo respondsTo) {
154206 }
155207
156208 /**
209+ * <important>
210+ * <p>
211+ * <b>Deprecated</b>. Use <code>InvokedBy</code> instead.
212+ * </p>
213+ * </important>
157214 * <p>
158215 * Determines whether the Amazon Lex V2 bot responds to all standard
159216 * messages. Control messages are not supported.
@@ -165,7 +222,12 @@ public void setRespondsTo(RespondsTo respondsTo) {
165222 * <b>Constraints:</b><br/>
166223 * <b>Allowed Values: </b>STANDARD_MESSAGES
167224 *
168- * @param respondsTo <p>
225+ * @param respondsTo <important>
226+ * <p>
227+ * <b>Deprecated</b>. Use <code>InvokedBy</code> instead.
228+ * </p>
229+ * </important>
230+ * <p>
169231 * Determines whether the Amazon Lex V2 bot responds to all
170232 * standard messages. Control messages are not supported.
171233 * </p>
@@ -178,6 +240,51 @@ public LexConfiguration withRespondsTo(RespondsTo respondsTo) {
178240 return this ;
179241 }
180242
243+ /**
244+ * <p>
245+ * Specifies the type of message that triggers a bot.
246+ * </p>
247+ *
248+ * @return <p>
249+ * Specifies the type of message that triggers a bot.
250+ * </p>
251+ */
252+ public InvokedBy getInvokedBy () {
253+ return invokedBy ;
254+ }
255+
256+ /**
257+ * <p>
258+ * Specifies the type of message that triggers a bot.
259+ * </p>
260+ *
261+ * @param invokedBy <p>
262+ * Specifies the type of message that triggers a bot.
263+ * </p>
264+ */
265+ public void setInvokedBy (InvokedBy invokedBy ) {
266+ this .invokedBy = invokedBy ;
267+ }
268+
269+ /**
270+ * <p>
271+ * Specifies the type of message that triggers a bot.
272+ * </p>
273+ * <p>
274+ * Returns a reference to this object so that method calls can be chained
275+ * together.
276+ *
277+ * @param invokedBy <p>
278+ * Specifies the type of message that triggers a bot.
279+ * </p>
280+ * @return A reference to this updated object so that method calls can be
281+ * chained together.
282+ */
283+ public LexConfiguration withInvokedBy (InvokedBy invokedBy ) {
284+ this .invokedBy = invokedBy ;
285+ return this ;
286+ }
287+
181288 /**
182289 * <p>
183290 * The ARN of the Amazon Lex V2 bot's alias. The ARN uses this format:
@@ -401,6 +508,8 @@ public String toString() {
401508 sb .append ("{" );
402509 if (getRespondsTo () != null )
403510 sb .append ("RespondsTo: " + getRespondsTo () + "," );
511+ if (getInvokedBy () != null )
512+ sb .append ("InvokedBy: " + getInvokedBy () + "," );
404513 if (getLexBotAliasArn () != null )
405514 sb .append ("LexBotAliasArn: " + getLexBotAliasArn () + "," );
406515 if (getLocaleId () != null )
@@ -417,6 +526,7 @@ public int hashCode() {
417526 int hashCode = 1 ;
418527
419528 hashCode = prime * hashCode + ((getRespondsTo () == null ) ? 0 : getRespondsTo ().hashCode ());
529+ hashCode = prime * hashCode + ((getInvokedBy () == null ) ? 0 : getInvokedBy ().hashCode ());
420530 hashCode = prime * hashCode
421531 + ((getLexBotAliasArn () == null ) ? 0 : getLexBotAliasArn ().hashCode ());
422532 hashCode = prime * hashCode + ((getLocaleId () == null ) ? 0 : getLocaleId ().hashCode ());
@@ -441,6 +551,11 @@ public boolean equals(Object obj) {
441551 if (other .getRespondsTo () != null
442552 && other .getRespondsTo ().equals (this .getRespondsTo ()) == false )
443553 return false ;
554+ if (other .getInvokedBy () == null ^ this .getInvokedBy () == null )
555+ return false ;
556+ if (other .getInvokedBy () != null
557+ && other .getInvokedBy ().equals (this .getInvokedBy ()) == false )
558+ return false ;
444559 if (other .getLexBotAliasArn () == null ^ this .getLexBotAliasArn () == null )
445560 return false ;
446561 if (other .getLexBotAliasArn () != null
0 commit comments