Skip to content

Commit b8ad202

Browse files
authored
feat(aws-android-sdk-connect): update models to latest (#3262)
1 parent eeb2401 commit b8ad202

File tree

154 files changed

+29687
-103
lines changed

Some content is hidden

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

154 files changed

+29687
-103
lines changed

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

Lines changed: 436 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: 1009 additions & 46 deletions
Large diffs are not rendered by default.

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

Lines changed: 1250 additions & 43 deletions
Large diffs are not rendered by default.

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

Lines changed: 840 additions & 7 deletions
Large diffs are not rendered by default.
Lines changed: 318 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,318 @@
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+
import com.amazonaws.AmazonWebServiceRequest;
21+
22+
/**
23+
* <p>
24+
* Activates an evaluation form in the specified Amazon Connect instance. After
25+
* the evaluation form is activated, it is available to start new evaluations
26+
* based on the form.
27+
* </p>
28+
*/
29+
public class ActivateEvaluationFormRequest extends AmazonWebServiceRequest implements Serializable {
30+
/**
31+
* <p>
32+
* The identifier of the Amazon Connect instance. You can <a href=
33+
* "https://docs.aws.amazon.com/connect/latest/adminguide/find-instance-arn.html"
34+
* >find the instance ID</a> in the Amazon Resource Name (ARN) of the
35+
* instance.
36+
* </p>
37+
* <p>
38+
* <b>Constraints:</b><br/>
39+
* <b>Length: </b>1 - 100<br/>
40+
*/
41+
private String instanceId;
42+
43+
/**
44+
* <p>
45+
* The unique identifier for the evaluation form.
46+
* </p>
47+
* <p>
48+
* <b>Constraints:</b><br/>
49+
* <b>Length: </b>1 - 50<br/>
50+
*/
51+
private String evaluationFormId;
52+
53+
/**
54+
* <p>
55+
* The version of the evaluation form to activate. If the version property
56+
* is not provided, the latest version of the evaluation form is activated.
57+
* </p>
58+
* <p>
59+
* <b>Constraints:</b><br/>
60+
* <b>Range: </b>1 - <br/>
61+
*/
62+
private Integer evaluationFormVersion;
63+
64+
/**
65+
* <p>
66+
* The identifier of the Amazon Connect instance. You can <a href=
67+
* "https://docs.aws.amazon.com/connect/latest/adminguide/find-instance-arn.html"
68+
* >find the instance ID</a> in the Amazon Resource Name (ARN) of the
69+
* instance.
70+
* </p>
71+
* <p>
72+
* <b>Constraints:</b><br/>
73+
* <b>Length: </b>1 - 100<br/>
74+
*
75+
* @return <p>
76+
* The identifier of the Amazon Connect instance. You can <a href=
77+
* "https://docs.aws.amazon.com/connect/latest/adminguide/find-instance-arn.html"
78+
* >find the instance ID</a> in the Amazon Resource Name (ARN) of
79+
* the instance.
80+
* </p>
81+
*/
82+
public String getInstanceId() {
83+
return instanceId;
84+
}
85+
86+
/**
87+
* <p>
88+
* The identifier of the Amazon Connect instance. You can <a href=
89+
* "https://docs.aws.amazon.com/connect/latest/adminguide/find-instance-arn.html"
90+
* >find the instance ID</a> in the Amazon Resource Name (ARN) of the
91+
* instance.
92+
* </p>
93+
* <p>
94+
* <b>Constraints:</b><br/>
95+
* <b>Length: </b>1 - 100<br/>
96+
*
97+
* @param instanceId <p>
98+
* The identifier of the Amazon Connect instance. You can <a
99+
* href=
100+
* "https://docs.aws.amazon.com/connect/latest/adminguide/find-instance-arn.html"
101+
* >find the instance ID</a> in the Amazon Resource Name (ARN) of
102+
* the instance.
103+
* </p>
104+
*/
105+
public void setInstanceId(String instanceId) {
106+
this.instanceId = instanceId;
107+
}
108+
109+
/**
110+
* <p>
111+
* The identifier of the Amazon Connect instance. You can <a href=
112+
* "https://docs.aws.amazon.com/connect/latest/adminguide/find-instance-arn.html"
113+
* >find the instance ID</a> in the Amazon Resource Name (ARN) of the
114+
* instance.
115+
* </p>
116+
* <p>
117+
* Returns a reference to this object so that method calls can be chained
118+
* together.
119+
* <p>
120+
* <b>Constraints:</b><br/>
121+
* <b>Length: </b>1 - 100<br/>
122+
*
123+
* @param instanceId <p>
124+
* The identifier of the Amazon Connect instance. You can <a
125+
* href=
126+
* "https://docs.aws.amazon.com/connect/latest/adminguide/find-instance-arn.html"
127+
* >find the instance ID</a> in the Amazon Resource Name (ARN) of
128+
* the instance.
129+
* </p>
130+
* @return A reference to this updated object so that method calls can be
131+
* chained together.
132+
*/
133+
public ActivateEvaluationFormRequest withInstanceId(String instanceId) {
134+
this.instanceId = instanceId;
135+
return this;
136+
}
137+
138+
/**
139+
* <p>
140+
* The unique identifier for the evaluation form.
141+
* </p>
142+
* <p>
143+
* <b>Constraints:</b><br/>
144+
* <b>Length: </b>1 - 50<br/>
145+
*
146+
* @return <p>
147+
* The unique identifier for the evaluation form.
148+
* </p>
149+
*/
150+
public String getEvaluationFormId() {
151+
return evaluationFormId;
152+
}
153+
154+
/**
155+
* <p>
156+
* The unique identifier for the evaluation form.
157+
* </p>
158+
* <p>
159+
* <b>Constraints:</b><br/>
160+
* <b>Length: </b>1 - 50<br/>
161+
*
162+
* @param evaluationFormId <p>
163+
* The unique identifier for the evaluation form.
164+
* </p>
165+
*/
166+
public void setEvaluationFormId(String evaluationFormId) {
167+
this.evaluationFormId = evaluationFormId;
168+
}
169+
170+
/**
171+
* <p>
172+
* The unique identifier for the evaluation form.
173+
* </p>
174+
* <p>
175+
* Returns a reference to this object so that method calls can be chained
176+
* together.
177+
* <p>
178+
* <b>Constraints:</b><br/>
179+
* <b>Length: </b>1 - 50<br/>
180+
*
181+
* @param evaluationFormId <p>
182+
* The unique identifier for the evaluation form.
183+
* </p>
184+
* @return A reference to this updated object so that method calls can be
185+
* chained together.
186+
*/
187+
public ActivateEvaluationFormRequest withEvaluationFormId(String evaluationFormId) {
188+
this.evaluationFormId = evaluationFormId;
189+
return this;
190+
}
191+
192+
/**
193+
* <p>
194+
* The version of the evaluation form to activate. If the version property
195+
* is not provided, the latest version of the evaluation form is activated.
196+
* </p>
197+
* <p>
198+
* <b>Constraints:</b><br/>
199+
* <b>Range: </b>1 - <br/>
200+
*
201+
* @return <p>
202+
* The version of the evaluation form to activate. If the version
203+
* property is not provided, the latest version of the evaluation
204+
* form is activated.
205+
* </p>
206+
*/
207+
public Integer getEvaluationFormVersion() {
208+
return evaluationFormVersion;
209+
}
210+
211+
/**
212+
* <p>
213+
* The version of the evaluation form to activate. If the version property
214+
* is not provided, the latest version of the evaluation form is activated.
215+
* </p>
216+
* <p>
217+
* <b>Constraints:</b><br/>
218+
* <b>Range: </b>1 - <br/>
219+
*
220+
* @param evaluationFormVersion <p>
221+
* The version of the evaluation form to activate. If the version
222+
* property is not provided, the latest version of the evaluation
223+
* form is activated.
224+
* </p>
225+
*/
226+
public void setEvaluationFormVersion(Integer evaluationFormVersion) {
227+
this.evaluationFormVersion = evaluationFormVersion;
228+
}
229+
230+
/**
231+
* <p>
232+
* The version of the evaluation form to activate. If the version property
233+
* is not provided, the latest version of the evaluation form is activated.
234+
* </p>
235+
* <p>
236+
* Returns a reference to this object so that method calls can be chained
237+
* together.
238+
* <p>
239+
* <b>Constraints:</b><br/>
240+
* <b>Range: </b>1 - <br/>
241+
*
242+
* @param evaluationFormVersion <p>
243+
* The version of the evaluation form to activate. If the version
244+
* property is not provided, the latest version of the evaluation
245+
* form is activated.
246+
* </p>
247+
* @return A reference to this updated object so that method calls can be
248+
* chained together.
249+
*/
250+
public ActivateEvaluationFormRequest withEvaluationFormVersion(Integer evaluationFormVersion) {
251+
this.evaluationFormVersion = evaluationFormVersion;
252+
return this;
253+
}
254+
255+
/**
256+
* Returns a string representation of this object; useful for testing and
257+
* debugging.
258+
*
259+
* @return A string representation of this object.
260+
* @see java.lang.Object#toString()
261+
*/
262+
@Override
263+
public String toString() {
264+
StringBuilder sb = new StringBuilder();
265+
sb.append("{");
266+
if (getInstanceId() != null)
267+
sb.append("InstanceId: " + getInstanceId() + ",");
268+
if (getEvaluationFormId() != null)
269+
sb.append("EvaluationFormId: " + getEvaluationFormId() + ",");
270+
if (getEvaluationFormVersion() != null)
271+
sb.append("EvaluationFormVersion: " + getEvaluationFormVersion());
272+
sb.append("}");
273+
return sb.toString();
274+
}
275+
276+
@Override
277+
public int hashCode() {
278+
final int prime = 31;
279+
int hashCode = 1;
280+
281+
hashCode = prime * hashCode + ((getInstanceId() == null) ? 0 : getInstanceId().hashCode());
282+
hashCode = prime * hashCode
283+
+ ((getEvaluationFormId() == null) ? 0 : getEvaluationFormId().hashCode());
284+
hashCode = prime
285+
* hashCode
286+
+ ((getEvaluationFormVersion() == null) ? 0 : getEvaluationFormVersion().hashCode());
287+
return hashCode;
288+
}
289+
290+
@Override
291+
public boolean equals(Object obj) {
292+
if (this == obj)
293+
return true;
294+
if (obj == null)
295+
return false;
296+
297+
if (obj instanceof ActivateEvaluationFormRequest == false)
298+
return false;
299+
ActivateEvaluationFormRequest other = (ActivateEvaluationFormRequest) obj;
300+
301+
if (other.getInstanceId() == null ^ this.getInstanceId() == null)
302+
return false;
303+
if (other.getInstanceId() != null
304+
&& other.getInstanceId().equals(this.getInstanceId()) == false)
305+
return false;
306+
if (other.getEvaluationFormId() == null ^ this.getEvaluationFormId() == null)
307+
return false;
308+
if (other.getEvaluationFormId() != null
309+
&& other.getEvaluationFormId().equals(this.getEvaluationFormId()) == false)
310+
return false;
311+
if (other.getEvaluationFormVersion() == null ^ this.getEvaluationFormVersion() == null)
312+
return false;
313+
if (other.getEvaluationFormVersion() != null
314+
&& other.getEvaluationFormVersion().equals(this.getEvaluationFormVersion()) == false)
315+
return false;
316+
return true;
317+
}
318+
}

0 commit comments

Comments
 (0)