Skip to content

Commit bc32b8d

Browse files
authored
feat(aws-android-sdk-connect): update models to latest (#3235)
1 parent 2c6e785 commit bc32b8d

File tree

9 files changed

+634
-18
lines changed

9 files changed

+634
-18
lines changed
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.connect.model;
17+
18+
import java.util.HashMap;
19+
import java.util.Map;
20+
21+
/**
22+
* Behavior Type
23+
*/
24+
public enum BehaviorType {
25+
26+
ROUTE_CURRENT_CHANNEL_ONLY("ROUTE_CURRENT_CHANNEL_ONLY"),
27+
ROUTE_ANY_CHANNEL("ROUTE_ANY_CHANNEL");
28+
29+
private String value;
30+
31+
private BehaviorType(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, BehaviorType> enumMap;
41+
static {
42+
enumMap = new HashMap<String, BehaviorType>();
43+
enumMap.put("ROUTE_CURRENT_CHANNEL_ONLY", ROUTE_CURRENT_CHANNEL_ONLY);
44+
enumMap.put("ROUTE_ANY_CHANNEL", ROUTE_ANY_CHANNEL);
45+
}
46+
47+
/**
48+
* Use this in place of valueOf.
49+
*
50+
* @param value real value
51+
* @return BehaviorType corresponding to the value
52+
*/
53+
public static BehaviorType 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+
}

aws-android-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ChatMessage.java

Lines changed: 73 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,9 @@ public class ChatMessage implements Serializable {
2626
/**
2727
* <p>
2828
* The type of the content. Supported types are <code>text/plain</code>,
29-
* <code>text/markdown</code>, and <code>application/json</code>.
29+
* <code>text/markdown</code>, <code>application/json</code>, and
30+
* <code>application/vnd.amazonaws.connect.message.interactive.response</code>
31+
* .
3032
* </p>
3133
* <p>
3234
* <b>Constraints:</b><br/>
@@ -51,6 +53,13 @@ public class ChatMessage implements Serializable {
5153
* 1, Maximum of 12000.
5254
* </p>
5355
* </li>
56+
* <li>
57+
* <p>
58+
* For
59+
* <code>application/vnd.amazonaws.connect.message.interactive.response</code>
60+
* , the Length Constraints are Minimum of 1, Maximum of 12288.
61+
* </p>
62+
* </li>
5463
* </ul>
5564
* <p>
5665
* <b>Constraints:</b><br/>
@@ -61,16 +70,20 @@ public class ChatMessage implements Serializable {
6170
/**
6271
* <p>
6372
* The type of the content. Supported types are <code>text/plain</code>,
64-
* <code>text/markdown</code>, and <code>application/json</code>.
73+
* <code>text/markdown</code>, <code>application/json</code>, and
74+
* <code>application/vnd.amazonaws.connect.message.interactive.response</code>
75+
* .
6576
* </p>
6677
* <p>
6778
* <b>Constraints:</b><br/>
6879
* <b>Length: </b>1 - 100<br/>
6980
*
7081
* @return <p>
7182
* The type of the content. Supported types are
72-
* <code>text/plain</code>, <code>text/markdown</code>, and
73-
* <code>application/json</code>.
83+
* <code>text/plain</code>, <code>text/markdown</code>,
84+
* <code>application/json</code>, and
85+
* <code>application/vnd.amazonaws.connect.message.interactive.response</code>
86+
* .
7487
* </p>
7588
*/
7689
public String getContentType() {
@@ -80,16 +93,20 @@ public String getContentType() {
8093
/**
8194
* <p>
8295
* The type of the content. Supported types are <code>text/plain</code>,
83-
* <code>text/markdown</code>, and <code>application/json</code>.
96+
* <code>text/markdown</code>, <code>application/json</code>, and
97+
* <code>application/vnd.amazonaws.connect.message.interactive.response</code>
98+
* .
8499
* </p>
85100
* <p>
86101
* <b>Constraints:</b><br/>
87102
* <b>Length: </b>1 - 100<br/>
88103
*
89104
* @param contentType <p>
90105
* The type of the content. Supported types are
91-
* <code>text/plain</code>, <code>text/markdown</code>, and
92-
* <code>application/json</code>.
106+
* <code>text/plain</code>, <code>text/markdown</code>,
107+
* <code>application/json</code>, and
108+
* <code>application/vnd.amazonaws.connect.message.interactive.response</code>
109+
* .
93110
* </p>
94111
*/
95112
public void setContentType(String contentType) {
@@ -99,7 +116,9 @@ public void setContentType(String contentType) {
99116
/**
100117
* <p>
101118
* The type of the content. Supported types are <code>text/plain</code>,
102-
* <code>text/markdown</code>, and <code>application/json</code>.
119+
* <code>text/markdown</code>, <code>application/json</code>, and
120+
* <code>application/vnd.amazonaws.connect.message.interactive.response</code>
121+
* .
103122
* </p>
104123
* <p>
105124
* Returns a reference to this object so that method calls can be chained
@@ -110,8 +129,10 @@ public void setContentType(String contentType) {
110129
*
111130
* @param contentType <p>
112131
* The type of the content. Supported types are
113-
* <code>text/plain</code>, <code>text/markdown</code>, and
114-
* <code>application/json</code>.
132+
* <code>text/plain</code>, <code>text/markdown</code>,
133+
* <code>application/json</code>, and
134+
* <code>application/vnd.amazonaws.connect.message.interactive.response</code>
135+
* .
115136
* </p>
116137
* @return A reference to this updated object so that method calls can be
117138
* chained together.
@@ -138,6 +159,13 @@ public ChatMessage withContentType(String contentType) {
138159
* 1, Maximum of 12000.
139160
* </p>
140161
* </li>
162+
* <li>
163+
* <p>
164+
* For
165+
* <code>application/vnd.amazonaws.connect.message.interactive.response</code>
166+
* , the Length Constraints are Minimum of 1, Maximum of 12288.
167+
* </p>
168+
* </li>
141169
* </ul>
142170
* <p>
143171
* <b>Constraints:</b><br/>
@@ -159,6 +187,13 @@ public ChatMessage withContentType(String contentType) {
159187
* Minimum of 1, Maximum of 12000.
160188
* </p>
161189
* </li>
190+
* <li>
191+
* <p>
192+
* For
193+
* <code>application/vnd.amazonaws.connect.message.interactive.response</code>
194+
* , the Length Constraints are Minimum of 1, Maximum of 12288.
195+
* </p>
196+
* </li>
162197
* </ul>
163198
*/
164199
public String getContent() {
@@ -182,6 +217,13 @@ public String getContent() {
182217
* 1, Maximum of 12000.
183218
* </p>
184219
* </li>
220+
* <li>
221+
* <p>
222+
* For
223+
* <code>application/vnd.amazonaws.connect.message.interactive.response</code>
224+
* , the Length Constraints are Minimum of 1, Maximum of 12288.
225+
* </p>
226+
* </li>
185227
* </ul>
186228
* <p>
187229
* <b>Constraints:</b><br/>
@@ -203,6 +245,13 @@ public String getContent() {
203245
* Minimum of 1, Maximum of 12000.
204246
* </p>
205247
* </li>
248+
* <li>
249+
* <p>
250+
* For
251+
* <code>application/vnd.amazonaws.connect.message.interactive.response</code>
252+
* , the Length Constraints are Minimum of 1, Maximum of 12288.
253+
* </p>
254+
* </li>
206255
* </ul>
207256
*/
208257
public void setContent(String content) {
@@ -226,6 +275,13 @@ public void setContent(String content) {
226275
* 1, Maximum of 12000.
227276
* </p>
228277
* </li>
278+
* <li>
279+
* <p>
280+
* For
281+
* <code>application/vnd.amazonaws.connect.message.interactive.response</code>
282+
* , the Length Constraints are Minimum of 1, Maximum of 12288.
283+
* </p>
284+
* </li>
229285
* </ul>
230286
* <p>
231287
* Returns a reference to this object so that method calls can be chained
@@ -250,6 +306,13 @@ public void setContent(String content) {
250306
* Minimum of 1, Maximum of 12000.
251307
* </p>
252308
* </li>
309+
* <li>
310+
* <p>
311+
* For
312+
* <code>application/vnd.amazonaws.connect.message.interactive.response</code>
313+
* , the Length Constraints are Minimum of 1, Maximum of 12288.
314+
* </p>
315+
* </li>
253316
* </ul>
254317
* @return A reference to this updated object so that method calls can be
255318
* chained together.

0 commit comments

Comments
 (0)