Skip to content

Commit d184901

Browse files
authored
feat(aws-android-sdk-chimesdkidentity): update models to latest (#3335)
1 parent ce33403 commit d184901

File tree

10 files changed

+1177
-6
lines changed

10 files changed

+1177
-6
lines changed

aws-android-sdk-chimesdkidentity/src/main/java/com/amazonaws/services/chimesdkidentity/model/InvokedBy.java

Lines changed: 746 additions & 0 deletions
Large diffs are not rendered by default.

aws-android-sdk-chimesdkidentity/src/main/java/com/amazonaws/services/chimesdkidentity/model/LexConfiguration.java

Lines changed: 120 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,11 @@
2424
*/
2525
public 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
Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
/*
2+
* Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License").
5+
* You may not use this file except in compliance with the License.
6+
* A copy of the License is located at
7+
*
8+
* http://aws.amazon.com/apache2.0
9+
*
10+
* or in the "license" file accompanying this file. This file is distributed
11+
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12+
* express or implied. See the License for the specific language governing
13+
* permissions and limitations under the License.
14+
*/
15+
16+
package com.amazonaws.services.chimesdkidentity.model;
17+
18+
import java.util.HashMap;
19+
import java.util.Map;
20+
21+
/**
22+
* Standard Messages
23+
*/
24+
public enum StandardMessages {
25+
26+
AUTO("AUTO"),
27+
ALL("ALL"),
28+
MENTIONS("MENTIONS"),
29+
NONE("NONE");
30+
31+
private String value;
32+
33+
private StandardMessages(String value) {
34+
this.value = value;
35+
}
36+
37+
@Override
38+
public String toString() {
39+
return value;
40+
}
41+
42+
private static final Map<String, StandardMessages> enumMap;
43+
static {
44+
enumMap = new HashMap<String, StandardMessages>();
45+
enumMap.put("AUTO", AUTO);
46+
enumMap.put("ALL", ALL);
47+
enumMap.put("MENTIONS", MENTIONS);
48+
enumMap.put("NONE", NONE);
49+
}
50+
51+
/**
52+
* Use this in place of valueOf.
53+
*
54+
* @param value real value
55+
* @return StandardMessages corresponding to the value
56+
*/
57+
public static StandardMessages fromValue(String value) {
58+
if (value == null || value.isEmpty()) {
59+
throw new IllegalArgumentException("Value cannot be null or empty!");
60+
} else if (enumMap.containsKey(value)) {
61+
return enumMap.get(value);
62+
} else {
63+
throw new IllegalArgumentException("Cannot create enum from " + value + " value!");
64+
}
65+
}
66+
}
Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
/*
2+
* Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License").
5+
* You may not use this file except in compliance with the License.
6+
* A copy of the License is located at
7+
*
8+
* http://aws.amazon.com/apache2.0
9+
*
10+
* or in the "license" file accompanying this file. This file is distributed
11+
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12+
* express or implied. See the License for the specific language governing
13+
* permissions and limitations under the License.
14+
*/
15+
16+
package com.amazonaws.services.chimesdkidentity.model;
17+
18+
import java.util.HashMap;
19+
import java.util.Map;
20+
21+
/**
22+
* Targeted Messages
23+
*/
24+
public enum TargetedMessages {
25+
26+
ALL("ALL"),
27+
NONE("NONE");
28+
29+
private String value;
30+
31+
private TargetedMessages(String value) {
32+
this.value = value;
33+
}
34+
35+
@Override
36+
public String toString() {
37+
return value;
38+
}
39+
40+
private static final Map<String, TargetedMessages> enumMap;
41+
static {
42+
enumMap = new HashMap<String, TargetedMessages>();
43+
enumMap.put("ALL", ALL);
44+
enumMap.put("NONE", NONE);
45+
}
46+
47+
/**
48+
* Use this in place of valueOf.
49+
*
50+
* @param value real value
51+
* @return TargetedMessages corresponding to the value
52+
*/
53+
public static TargetedMessages fromValue(String value) {
54+
if (value == null || value.isEmpty()) {
55+
throw new IllegalArgumentException("Value cannot be null or empty!");
56+
} else if (enumMap.containsKey(value)) {
57+
return enumMap.get(value);
58+
} else {
59+
throw new IllegalArgumentException("Cannot create enum from " + value + " value!");
60+
}
61+
}
62+
}

0 commit comments

Comments
 (0)