Skip to content

Commit 7d0850e

Browse files
feat(aws-android-sdk-connect): update models to latest (#3157)
Co-authored-by: AWS Mobile SDK Bot <[email protected]>
1 parent 31bbbb2 commit 7d0850e

File tree

1,108 files changed

+19069
-1453
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,108 files changed

+19069
-1453
lines changed

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

Lines changed: 248 additions & 17 deletions
Large diffs are not rendered by default.

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

Lines changed: 517 additions & 31 deletions
Large diffs are not rendered by default.

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

Lines changed: 660 additions & 62 deletions
Large diffs are not rendered by default.

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

Lines changed: 452 additions & 29 deletions
Large diffs are not rendered by default.

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2010-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved.
2+
* Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License").
55
* You may not use this file except in compliance with the License.
Lines changed: 183 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,183 @@
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.io.Serializable;
19+
20+
/**
21+
* <p>
22+
* Information about an action.
23+
* </p>
24+
*/
25+
public class ActionSummary implements Serializable {
26+
/**
27+
* <p>
28+
* The action type.
29+
* </p>
30+
* <p>
31+
* <b>Constraints:</b><br/>
32+
* <b>Allowed Values: </b>CREATE_TASK, ASSIGN_CONTACT_CATEGORY,
33+
* GENERATE_EVENTBRIDGE_EVENT, SEND_NOTIFICATION
34+
*/
35+
private String actionType;
36+
37+
/**
38+
* <p>
39+
* The action type.
40+
* </p>
41+
* <p>
42+
* <b>Constraints:</b><br/>
43+
* <b>Allowed Values: </b>CREATE_TASK, ASSIGN_CONTACT_CATEGORY,
44+
* GENERATE_EVENTBRIDGE_EVENT, SEND_NOTIFICATION
45+
*
46+
* @return <p>
47+
* The action type.
48+
* </p>
49+
* @see ActionType
50+
*/
51+
public String getActionType() {
52+
return actionType;
53+
}
54+
55+
/**
56+
* <p>
57+
* The action type.
58+
* </p>
59+
* <p>
60+
* <b>Constraints:</b><br/>
61+
* <b>Allowed Values: </b>CREATE_TASK, ASSIGN_CONTACT_CATEGORY,
62+
* GENERATE_EVENTBRIDGE_EVENT, SEND_NOTIFICATION
63+
*
64+
* @param actionType <p>
65+
* The action type.
66+
* </p>
67+
* @see ActionType
68+
*/
69+
public void setActionType(String actionType) {
70+
this.actionType = actionType;
71+
}
72+
73+
/**
74+
* <p>
75+
* The action type.
76+
* </p>
77+
* <p>
78+
* Returns a reference to this object so that method calls can be chained
79+
* together.
80+
* <p>
81+
* <b>Constraints:</b><br/>
82+
* <b>Allowed Values: </b>CREATE_TASK, ASSIGN_CONTACT_CATEGORY,
83+
* GENERATE_EVENTBRIDGE_EVENT, SEND_NOTIFICATION
84+
*
85+
* @param actionType <p>
86+
* The action type.
87+
* </p>
88+
* @return A reference to this updated object so that method calls can be
89+
* chained together.
90+
* @see ActionType
91+
*/
92+
public ActionSummary withActionType(String actionType) {
93+
this.actionType = actionType;
94+
return this;
95+
}
96+
97+
/**
98+
* <p>
99+
* The action type.
100+
* </p>
101+
* <p>
102+
* <b>Constraints:</b><br/>
103+
* <b>Allowed Values: </b>CREATE_TASK, ASSIGN_CONTACT_CATEGORY,
104+
* GENERATE_EVENTBRIDGE_EVENT, SEND_NOTIFICATION
105+
*
106+
* @param actionType <p>
107+
* The action type.
108+
* </p>
109+
* @see ActionType
110+
*/
111+
public void setActionType(ActionType actionType) {
112+
this.actionType = actionType.toString();
113+
}
114+
115+
/**
116+
* <p>
117+
* The action type.
118+
* </p>
119+
* <p>
120+
* Returns a reference to this object so that method calls can be chained
121+
* together.
122+
* <p>
123+
* <b>Constraints:</b><br/>
124+
* <b>Allowed Values: </b>CREATE_TASK, ASSIGN_CONTACT_CATEGORY,
125+
* GENERATE_EVENTBRIDGE_EVENT, SEND_NOTIFICATION
126+
*
127+
* @param actionType <p>
128+
* The action type.
129+
* </p>
130+
* @return A reference to this updated object so that method calls can be
131+
* chained together.
132+
* @see ActionType
133+
*/
134+
public ActionSummary withActionType(ActionType actionType) {
135+
this.actionType = actionType.toString();
136+
return this;
137+
}
138+
139+
/**
140+
* Returns a string representation of this object; useful for testing and
141+
* debugging.
142+
*
143+
* @return A string representation of this object.
144+
* @see java.lang.Object#toString()
145+
*/
146+
@Override
147+
public String toString() {
148+
StringBuilder sb = new StringBuilder();
149+
sb.append("{");
150+
if (getActionType() != null)
151+
sb.append("ActionType: " + getActionType());
152+
sb.append("}");
153+
return sb.toString();
154+
}
155+
156+
@Override
157+
public int hashCode() {
158+
final int prime = 31;
159+
int hashCode = 1;
160+
161+
hashCode = prime * hashCode + ((getActionType() == null) ? 0 : getActionType().hashCode());
162+
return hashCode;
163+
}
164+
165+
@Override
166+
public boolean equals(Object obj) {
167+
if (this == obj)
168+
return true;
169+
if (obj == null)
170+
return false;
171+
172+
if (obj instanceof ActionSummary == false)
173+
return false;
174+
ActionSummary other = (ActionSummary) obj;
175+
176+
if (other.getActionType() == null ^ this.getActionType() == null)
177+
return false;
178+
if (other.getActionType() != null
179+
&& other.getActionType().equals(this.getActionType()) == false)
180+
return false;
181+
return true;
182+
}
183+
}
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.connect.model;
17+
18+
import java.util.HashMap;
19+
import java.util.Map;
20+
21+
/**
22+
* Action Type
23+
*/
24+
public enum ActionType {
25+
26+
CREATE_TASK("CREATE_TASK"),
27+
ASSIGN_CONTACT_CATEGORY("ASSIGN_CONTACT_CATEGORY"),
28+
GENERATE_EVENTBRIDGE_EVENT("GENERATE_EVENTBRIDGE_EVENT"),
29+
SEND_NOTIFICATION("SEND_NOTIFICATION");
30+
31+
private String value;
32+
33+
private ActionType(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, ActionType> enumMap;
43+
static {
44+
enumMap = new HashMap<String, ActionType>();
45+
enumMap.put("CREATE_TASK", CREATE_TASK);
46+
enumMap.put("ASSIGN_CONTACT_CATEGORY", ASSIGN_CONTACT_CATEGORY);
47+
enumMap.put("GENERATE_EVENTBRIDGE_EVENT", GENERATE_EVENTBRIDGE_EVENT);
48+
enumMap.put("SEND_NOTIFICATION", SEND_NOTIFICATION);
49+
}
50+
51+
/**
52+
* Use this in place of valueOf.
53+
*
54+
* @param value real value
55+
* @return ActionType corresponding to the value
56+
*/
57+
public static ActionType 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+
}

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

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2010-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved.
2+
* Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License").
55
* You may not use this file except in compliance with the License.
@@ -52,7 +52,7 @@ public class AgentContactReference implements Serializable {
5252
* <p>
5353
* <b>Constraints:</b><br/>
5454
* <b>Allowed Values: </b>INBOUND, OUTBOUND, TRANSFER, QUEUE_TRANSFER,
55-
* CALLBACK, API
55+
* CALLBACK, API, DISCONNECT, MONITOR
5656
*/
5757
private String initiationMethod;
5858

@@ -251,7 +251,7 @@ public AgentContactReference withChannel(Channel channel) {
251251
* <p>
252252
* <b>Constraints:</b><br/>
253253
* <b>Allowed Values: </b>INBOUND, OUTBOUND, TRANSFER, QUEUE_TRANSFER,
254-
* CALLBACK, API
254+
* CALLBACK, API, DISCONNECT, MONITOR
255255
*
256256
* @return <p>
257257
* How the contact was initiated.
@@ -269,7 +269,7 @@ public String getInitiationMethod() {
269269
* <p>
270270
* <b>Constraints:</b><br/>
271271
* <b>Allowed Values: </b>INBOUND, OUTBOUND, TRANSFER, QUEUE_TRANSFER,
272-
* CALLBACK, API
272+
* CALLBACK, API, DISCONNECT, MONITOR
273273
*
274274
* @param initiationMethod <p>
275275
* How the contact was initiated.
@@ -290,7 +290,7 @@ public void setInitiationMethod(String initiationMethod) {
290290
* <p>
291291
* <b>Constraints:</b><br/>
292292
* <b>Allowed Values: </b>INBOUND, OUTBOUND, TRANSFER, QUEUE_TRANSFER,
293-
* CALLBACK, API
293+
* CALLBACK, API, DISCONNECT, MONITOR
294294
*
295295
* @param initiationMethod <p>
296296
* How the contact was initiated.
@@ -311,7 +311,7 @@ public AgentContactReference withInitiationMethod(String initiationMethod) {
311311
* <p>
312312
* <b>Constraints:</b><br/>
313313
* <b>Allowed Values: </b>INBOUND, OUTBOUND, TRANSFER, QUEUE_TRANSFER,
314-
* CALLBACK, API
314+
* CALLBACK, API, DISCONNECT, MONITOR
315315
*
316316
* @param initiationMethod <p>
317317
* How the contact was initiated.
@@ -332,7 +332,7 @@ public void setInitiationMethod(ContactInitiationMethod initiationMethod) {
332332
* <p>
333333
* <b>Constraints:</b><br/>
334334
* <b>Allowed Values: </b>INBOUND, OUTBOUND, TRANSFER, QUEUE_TRANSFER,
335-
* CALLBACK, API
335+
* CALLBACK, API, DISCONNECT, MONITOR
336336
*
337337
* @param initiationMethod <p>
338338
* How the contact was initiated.

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2010-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved.
2+
* Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License").
55
* You may not use this file except in compliance with the License.

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2010-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved.
2+
* Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License").
55
* You may not use this file except in compliance with the License.

0 commit comments

Comments
 (0)