Skip to content

Commit c26dfc6

Browse files
authored
feat(aws-android-sdk-connect): update models to latest (#2722)
1 parent f5fd895 commit c26dfc6

File tree

137 files changed

+22163
-444
lines changed

Some content is hidden

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

137 files changed

+22163
-444
lines changed

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

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

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

Lines changed: 1337 additions & 83 deletions
Large diffs are not rendered by default.

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

Lines changed: 1801 additions & 234 deletions
Large diffs are not rendered by default.

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

Lines changed: 1062 additions & 2 deletions
Large diffs are not rendered by default.
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
/*
2+
* Copyright 2010-2021 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 com.amazonaws.AmazonServiceException;
19+
20+
/**
21+
* <p>
22+
* You do not have sufficient permissions to perform this action.
23+
* </p>
24+
*/
25+
public class AccessDeniedException extends AmazonServiceException {
26+
private static final long serialVersionUID = 1L;
27+
28+
/**
29+
* Constructs a new AccessDeniedException with the specified error message.
30+
*
31+
* @param message Describes the error encountered.
32+
*/
33+
public AccessDeniedException(String message) {
34+
super(message);
35+
}
36+
}
Lines changed: 197 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,197 @@
1+
/*
2+
* Copyright 2010-2021 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 the agent who accepted the contact.
23+
* </p>
24+
*/
25+
public class AgentInfo implements Serializable {
26+
/**
27+
* <p>
28+
* The identifier of the agent who accepted the contact.
29+
* </p>
30+
* <p>
31+
* <b>Constraints:</b><br/>
32+
* <b>Length: </b>1 - 256<br/>
33+
*/
34+
private String id;
35+
36+
/**
37+
* <p>
38+
* The timestamp when the contact was connected to the agent.
39+
* </p>
40+
*/
41+
private java.util.Date connectedToAgentTimestamp;
42+
43+
/**
44+
* <p>
45+
* The identifier of the agent who accepted the contact.
46+
* </p>
47+
* <p>
48+
* <b>Constraints:</b><br/>
49+
* <b>Length: </b>1 - 256<br/>
50+
*
51+
* @return <p>
52+
* The identifier of the agent who accepted the contact.
53+
* </p>
54+
*/
55+
public String getId() {
56+
return id;
57+
}
58+
59+
/**
60+
* <p>
61+
* The identifier of the agent who accepted the contact.
62+
* </p>
63+
* <p>
64+
* <b>Constraints:</b><br/>
65+
* <b>Length: </b>1 - 256<br/>
66+
*
67+
* @param id <p>
68+
* The identifier of the agent who accepted the contact.
69+
* </p>
70+
*/
71+
public void setId(String id) {
72+
this.id = id;
73+
}
74+
75+
/**
76+
* <p>
77+
* The identifier of the agent who accepted the contact.
78+
* </p>
79+
* <p>
80+
* Returns a reference to this object so that method calls can be chained
81+
* together.
82+
* <p>
83+
* <b>Constraints:</b><br/>
84+
* <b>Length: </b>1 - 256<br/>
85+
*
86+
* @param id <p>
87+
* The identifier of the agent who accepted the contact.
88+
* </p>
89+
* @return A reference to this updated object so that method calls can be
90+
* chained together.
91+
*/
92+
public AgentInfo withId(String id) {
93+
this.id = id;
94+
return this;
95+
}
96+
97+
/**
98+
* <p>
99+
* The timestamp when the contact was connected to the agent.
100+
* </p>
101+
*
102+
* @return <p>
103+
* The timestamp when the contact was connected to the agent.
104+
* </p>
105+
*/
106+
public java.util.Date getConnectedToAgentTimestamp() {
107+
return connectedToAgentTimestamp;
108+
}
109+
110+
/**
111+
* <p>
112+
* The timestamp when the contact was connected to the agent.
113+
* </p>
114+
*
115+
* @param connectedToAgentTimestamp <p>
116+
* The timestamp when the contact was connected to the agent.
117+
* </p>
118+
*/
119+
public void setConnectedToAgentTimestamp(java.util.Date connectedToAgentTimestamp) {
120+
this.connectedToAgentTimestamp = connectedToAgentTimestamp;
121+
}
122+
123+
/**
124+
* <p>
125+
* The timestamp when the contact was connected to the agent.
126+
* </p>
127+
* <p>
128+
* Returns a reference to this object so that method calls can be chained
129+
* together.
130+
*
131+
* @param connectedToAgentTimestamp <p>
132+
* The timestamp when the contact was connected to the agent.
133+
* </p>
134+
* @return A reference to this updated object so that method calls can be
135+
* chained together.
136+
*/
137+
public AgentInfo withConnectedToAgentTimestamp(java.util.Date connectedToAgentTimestamp) {
138+
this.connectedToAgentTimestamp = connectedToAgentTimestamp;
139+
return this;
140+
}
141+
142+
/**
143+
* Returns a string representation of this object; useful for testing and
144+
* debugging.
145+
*
146+
* @return A string representation of this object.
147+
* @see java.lang.Object#toString()
148+
*/
149+
@Override
150+
public String toString() {
151+
StringBuilder sb = new StringBuilder();
152+
sb.append("{");
153+
if (getId() != null)
154+
sb.append("Id: " + getId() + ",");
155+
if (getConnectedToAgentTimestamp() != null)
156+
sb.append("ConnectedToAgentTimestamp: " + getConnectedToAgentTimestamp());
157+
sb.append("}");
158+
return sb.toString();
159+
}
160+
161+
@Override
162+
public int hashCode() {
163+
final int prime = 31;
164+
int hashCode = 1;
165+
166+
hashCode = prime * hashCode + ((getId() == null) ? 0 : getId().hashCode());
167+
hashCode = prime
168+
* hashCode
169+
+ ((getConnectedToAgentTimestamp() == null) ? 0 : getConnectedToAgentTimestamp()
170+
.hashCode());
171+
return hashCode;
172+
}
173+
174+
@Override
175+
public boolean equals(Object obj) {
176+
if (this == obj)
177+
return true;
178+
if (obj == null)
179+
return false;
180+
181+
if (obj instanceof AgentInfo == false)
182+
return false;
183+
AgentInfo other = (AgentInfo) obj;
184+
185+
if (other.getId() == null ^ this.getId() == null)
186+
return false;
187+
if (other.getId() != null && other.getId().equals(this.getId()) == false)
188+
return false;
189+
if (other.getConnectedToAgentTimestamp() == null
190+
^ this.getConnectedToAgentTimestamp() == null)
191+
return false;
192+
if (other.getConnectedToAgentTimestamp() != null
193+
&& other.getConnectedToAgentTimestamp().equals(this.getConnectedToAgentTimestamp()) == false)
194+
return false;
195+
return true;
196+
}
197+
}

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

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ public class AgentStatus implements Serializable {
8989

9090
/**
9191
* <p>
92-
* One or more tags.
92+
* The tags used to organize, track, or control access for this resource.
9393
* </p>
9494
*/
9595
private java.util.Map<String, String> tags;
@@ -542,11 +542,12 @@ public AgentStatus withState(AgentStatusState state) {
542542

543543
/**
544544
* <p>
545-
* One or more tags.
545+
* The tags used to organize, track, or control access for this resource.
546546
* </p>
547547
*
548548
* @return <p>
549-
* One or more tags.
549+
* The tags used to organize, track, or control access for this
550+
* resource.
550551
* </p>
551552
*/
552553
public java.util.Map<String, String> getTags() {
@@ -555,11 +556,12 @@ public java.util.Map<String, String> getTags() {
555556

556557
/**
557558
* <p>
558-
* One or more tags.
559+
* The tags used to organize, track, or control access for this resource.
559560
* </p>
560561
*
561562
* @param tags <p>
562-
* One or more tags.
563+
* The tags used to organize, track, or control access for this
564+
* resource.
563565
* </p>
564566
*/
565567
public void setTags(java.util.Map<String, String> tags) {
@@ -568,14 +570,15 @@ public void setTags(java.util.Map<String, String> tags) {
568570

569571
/**
570572
* <p>
571-
* One or more tags.
573+
* The tags used to organize, track, or control access for this resource.
572574
* </p>
573575
* <p>
574576
* Returns a reference to this object so that method calls can be chained
575577
* together.
576578
*
577579
* @param tags <p>
578-
* One or more tags.
580+
* The tags used to organize, track, or control access for this
581+
* resource.
579582
* </p>
580583
* @return A reference to this updated object so that method calls can be
581584
* chained together.
@@ -587,7 +590,7 @@ public AgentStatus withTags(java.util.Map<String, String> tags) {
587590

588591
/**
589592
* <p>
590-
* One or more tags.
593+
* The tags used to organize, track, or control access for this resource.
591594
* </p>
592595
* <p>
593596
* The method adds a new key-value pair into Tags parameter, and returns a

0 commit comments

Comments
 (0)