Skip to content

Commit 2fcec40

Browse files
feat(aws-android-chimesdkidentity): update models to latest (#2569)
Co-authored-by: Raphael Kim <[email protected]>
1 parent 47d7ffd commit 2fcec40

File tree

109 files changed

+15195
-0
lines changed

Some content is hidden

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

109 files changed

+15195
-0
lines changed

aws-android-chimesdkidentity/src/main/java/com/amazonaws/services/chimesdkidentity/AmazonChimeSDKIdentity.java

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

aws-android-chimesdkidentity/src/main/java/com/amazonaws/services/chimesdkidentity/AmazonChimeSDKIdentityClient.java

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

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

Lines changed: 438 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 274 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,274 @@
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.chimesdkidentity.model;
17+
18+
import java.io.Serializable;
19+
20+
/**
21+
* <p>
22+
* The details of an <code>AppInstanceAdmin</code>.
23+
* </p>
24+
*/
25+
public class AppInstanceAdmin implements Serializable {
26+
/**
27+
* <p>
28+
* The <code>AppInstanceAdmin</code> data.
29+
* </p>
30+
*/
31+
private Identity admin;
32+
33+
/**
34+
* <p>
35+
* The ARN of the <code>AppInstance</code> for which the user is an
36+
* administrator.
37+
* </p>
38+
* <p>
39+
* <b>Constraints:</b><br/>
40+
* <b>Length: </b>5 - 1600<br/>
41+
* <b>Pattern:
42+
* </b>arn:[a-z0-9-\.]{1,63}:[a-z0-9-\.]{0,63}:[a-z0-9-\.]{0,63}:
43+
* [a-z0-9-\.]{0,63}:[^/].{0,1023}<br/>
44+
*/
45+
private String appInstanceArn;
46+
47+
/**
48+
* <p>
49+
* The time at which an administrator was created.
50+
* </p>
51+
*/
52+
private java.util.Date createdTimestamp;
53+
54+
/**
55+
* <p>
56+
* The <code>AppInstanceAdmin</code> data.
57+
* </p>
58+
*
59+
* @return <p>
60+
* The <code>AppInstanceAdmin</code> data.
61+
* </p>
62+
*/
63+
public Identity getAdmin() {
64+
return admin;
65+
}
66+
67+
/**
68+
* <p>
69+
* The <code>AppInstanceAdmin</code> data.
70+
* </p>
71+
*
72+
* @param admin <p>
73+
* The <code>AppInstanceAdmin</code> data.
74+
* </p>
75+
*/
76+
public void setAdmin(Identity admin) {
77+
this.admin = admin;
78+
}
79+
80+
/**
81+
* <p>
82+
* The <code>AppInstanceAdmin</code> data.
83+
* </p>
84+
* <p>
85+
* Returns a reference to this object so that method calls can be chained
86+
* together.
87+
*
88+
* @param admin <p>
89+
* The <code>AppInstanceAdmin</code> data.
90+
* </p>
91+
* @return A reference to this updated object so that method calls can be
92+
* chained together.
93+
*/
94+
public AppInstanceAdmin withAdmin(Identity admin) {
95+
this.admin = admin;
96+
return this;
97+
}
98+
99+
/**
100+
* <p>
101+
* The ARN of the <code>AppInstance</code> for which the user is an
102+
* administrator.
103+
* </p>
104+
* <p>
105+
* <b>Constraints:</b><br/>
106+
* <b>Length: </b>5 - 1600<br/>
107+
* <b>Pattern:
108+
* </b>arn:[a-z0-9-\.]{1,63}:[a-z0-9-\.]{0,63}:[a-z0-9-\.]{0,63}:
109+
* [a-z0-9-\.]{0,63}:[^/].{0,1023}<br/>
110+
*
111+
* @return <p>
112+
* The ARN of the <code>AppInstance</code> for which the user is an
113+
* administrator.
114+
* </p>
115+
*/
116+
public String getAppInstanceArn() {
117+
return appInstanceArn;
118+
}
119+
120+
/**
121+
* <p>
122+
* The ARN of the <code>AppInstance</code> for which the user is an
123+
* administrator.
124+
* </p>
125+
* <p>
126+
* <b>Constraints:</b><br/>
127+
* <b>Length: </b>5 - 1600<br/>
128+
* <b>Pattern:
129+
* </b>arn:[a-z0-9-\.]{1,63}:[a-z0-9-\.]{0,63}:[a-z0-9-\.]{0,63}:
130+
* [a-z0-9-\.]{0,63}:[^/].{0,1023}<br/>
131+
*
132+
* @param appInstanceArn <p>
133+
* The ARN of the <code>AppInstance</code> for which the user is
134+
* an administrator.
135+
* </p>
136+
*/
137+
public void setAppInstanceArn(String appInstanceArn) {
138+
this.appInstanceArn = appInstanceArn;
139+
}
140+
141+
/**
142+
* <p>
143+
* The ARN of the <code>AppInstance</code> for which the user is an
144+
* administrator.
145+
* </p>
146+
* <p>
147+
* Returns a reference to this object so that method calls can be chained
148+
* together.
149+
* <p>
150+
* <b>Constraints:</b><br/>
151+
* <b>Length: </b>5 - 1600<br/>
152+
* <b>Pattern:
153+
* </b>arn:[a-z0-9-\.]{1,63}:[a-z0-9-\.]{0,63}:[a-z0-9-\.]{0,63}:
154+
* [a-z0-9-\.]{0,63}:[^/].{0,1023}<br/>
155+
*
156+
* @param appInstanceArn <p>
157+
* The ARN of the <code>AppInstance</code> for which the user is
158+
* an administrator.
159+
* </p>
160+
* @return A reference to this updated object so that method calls can be
161+
* chained together.
162+
*/
163+
public AppInstanceAdmin withAppInstanceArn(String appInstanceArn) {
164+
this.appInstanceArn = appInstanceArn;
165+
return this;
166+
}
167+
168+
/**
169+
* <p>
170+
* The time at which an administrator was created.
171+
* </p>
172+
*
173+
* @return <p>
174+
* The time at which an administrator was created.
175+
* </p>
176+
*/
177+
public java.util.Date getCreatedTimestamp() {
178+
return createdTimestamp;
179+
}
180+
181+
/**
182+
* <p>
183+
* The time at which an administrator was created.
184+
* </p>
185+
*
186+
* @param createdTimestamp <p>
187+
* The time at which an administrator was created.
188+
* </p>
189+
*/
190+
public void setCreatedTimestamp(java.util.Date createdTimestamp) {
191+
this.createdTimestamp = createdTimestamp;
192+
}
193+
194+
/**
195+
* <p>
196+
* The time at which an administrator was created.
197+
* </p>
198+
* <p>
199+
* Returns a reference to this object so that method calls can be chained
200+
* together.
201+
*
202+
* @param createdTimestamp <p>
203+
* The time at which an administrator was created.
204+
* </p>
205+
* @return A reference to this updated object so that method calls can be
206+
* chained together.
207+
*/
208+
public AppInstanceAdmin withCreatedTimestamp(java.util.Date createdTimestamp) {
209+
this.createdTimestamp = createdTimestamp;
210+
return this;
211+
}
212+
213+
/**
214+
* Returns a string representation of this object; useful for testing and
215+
* debugging.
216+
*
217+
* @return A string representation of this object.
218+
* @see java.lang.Object#toString()
219+
*/
220+
@Override
221+
public String toString() {
222+
StringBuilder sb = new StringBuilder();
223+
sb.append("{");
224+
if (getAdmin() != null)
225+
sb.append("Admin: " + getAdmin() + ",");
226+
if (getAppInstanceArn() != null)
227+
sb.append("AppInstanceArn: " + getAppInstanceArn() + ",");
228+
if (getCreatedTimestamp() != null)
229+
sb.append("CreatedTimestamp: " + getCreatedTimestamp());
230+
sb.append("}");
231+
return sb.toString();
232+
}
233+
234+
@Override
235+
public int hashCode() {
236+
final int prime = 31;
237+
int hashCode = 1;
238+
239+
hashCode = prime * hashCode + ((getAdmin() == null) ? 0 : getAdmin().hashCode());
240+
hashCode = prime * hashCode
241+
+ ((getAppInstanceArn() == null) ? 0 : getAppInstanceArn().hashCode());
242+
hashCode = prime * hashCode
243+
+ ((getCreatedTimestamp() == null) ? 0 : getCreatedTimestamp().hashCode());
244+
return hashCode;
245+
}
246+
247+
@Override
248+
public boolean equals(Object obj) {
249+
if (this == obj)
250+
return true;
251+
if (obj == null)
252+
return false;
253+
254+
if (obj instanceof AppInstanceAdmin == false)
255+
return false;
256+
AppInstanceAdmin other = (AppInstanceAdmin) obj;
257+
258+
if (other.getAdmin() == null ^ this.getAdmin() == null)
259+
return false;
260+
if (other.getAdmin() != null && other.getAdmin().equals(this.getAdmin()) == false)
261+
return false;
262+
if (other.getAppInstanceArn() == null ^ this.getAppInstanceArn() == null)
263+
return false;
264+
if (other.getAppInstanceArn() != null
265+
&& other.getAppInstanceArn().equals(this.getAppInstanceArn()) == false)
266+
return false;
267+
if (other.getCreatedTimestamp() == null ^ this.getCreatedTimestamp() == null)
268+
return false;
269+
if (other.getCreatedTimestamp() != null
270+
&& other.getCreatedTimestamp().equals(this.getCreatedTimestamp()) == false)
271+
return false;
272+
return true;
273+
}
274+
}
Lines changed: 121 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,121 @@
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.chimesdkidentity.model;
17+
18+
import java.io.Serializable;
19+
20+
/**
21+
* <p>
22+
* Summary of the details of an <code>AppInstanceAdmin</code>.
23+
* </p>
24+
*/
25+
public class AppInstanceAdminSummary implements Serializable {
26+
/**
27+
* <p>
28+
* The details of the <code>AppInstanceAdmin</code>.
29+
* </p>
30+
*/
31+
private Identity admin;
32+
33+
/**
34+
* <p>
35+
* The details of the <code>AppInstanceAdmin</code>.
36+
* </p>
37+
*
38+
* @return <p>
39+
* The details of the <code>AppInstanceAdmin</code>.
40+
* </p>
41+
*/
42+
public Identity getAdmin() {
43+
return admin;
44+
}
45+
46+
/**
47+
* <p>
48+
* The details of the <code>AppInstanceAdmin</code>.
49+
* </p>
50+
*
51+
* @param admin <p>
52+
* The details of the <code>AppInstanceAdmin</code>.
53+
* </p>
54+
*/
55+
public void setAdmin(Identity admin) {
56+
this.admin = admin;
57+
}
58+
59+
/**
60+
* <p>
61+
* The details of the <code>AppInstanceAdmin</code>.
62+
* </p>
63+
* <p>
64+
* Returns a reference to this object so that method calls can be chained
65+
* together.
66+
*
67+
* @param admin <p>
68+
* The details of the <code>AppInstanceAdmin</code>.
69+
* </p>
70+
* @return A reference to this updated object so that method calls can be
71+
* chained together.
72+
*/
73+
public AppInstanceAdminSummary withAdmin(Identity admin) {
74+
this.admin = admin;
75+
return this;
76+
}
77+
78+
/**
79+
* Returns a string representation of this object; useful for testing and
80+
* debugging.
81+
*
82+
* @return A string representation of this object.
83+
* @see java.lang.Object#toString()
84+
*/
85+
@Override
86+
public String toString() {
87+
StringBuilder sb = new StringBuilder();
88+
sb.append("{");
89+
if (getAdmin() != null)
90+
sb.append("Admin: " + getAdmin());
91+
sb.append("}");
92+
return sb.toString();
93+
}
94+
95+
@Override
96+
public int hashCode() {
97+
final int prime = 31;
98+
int hashCode = 1;
99+
100+
hashCode = prime * hashCode + ((getAdmin() == null) ? 0 : getAdmin().hashCode());
101+
return hashCode;
102+
}
103+
104+
@Override
105+
public boolean equals(Object obj) {
106+
if (this == obj)
107+
return true;
108+
if (obj == null)
109+
return false;
110+
111+
if (obj instanceof AppInstanceAdminSummary == false)
112+
return false;
113+
AppInstanceAdminSummary other = (AppInstanceAdminSummary) obj;
114+
115+
if (other.getAdmin() == null ^ this.getAdmin() == null)
116+
return false;
117+
if (other.getAdmin() != null && other.getAdmin().equals(this.getAdmin()) == false)
118+
return false;
119+
return true;
120+
}
121+
}

0 commit comments

Comments
 (0)