Skip to content

Commit 3704187

Browse files
authored
feat(aws-android-sdk-chimesdkmessaging): update models to latest (#2978)
1 parent 5e25687 commit 3704187

File tree

72 files changed

+4436
-31
lines changed

Some content is hidden

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

72 files changed

+4436
-31
lines changed

aws-android-sdk-chimesdkmessaging/src/main/java/com/amazonaws/services/chimesdkmessaging/AmazonChimeSDKMessaging.java

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,8 +140,10 @@ void associateChannelFlow(AssociateChannelFlowRequest associateChannelFlowReques
140140
* @throws ServiceUnavailableException
141141
* @throws UnauthorizedClientException
142142
* @throws BadRequestException
143+
* @throws NotFoundException
143144
* @throws ForbiddenException
144145
* @throws ThrottledClientException
146+
* @throws ResourceLimitExceededException
145147
* @throws AmazonClientException If any internal errors are encountered
146148
* inside the client while attempting to make the request or
147149
* handle the response. For example if a network connection is
@@ -404,6 +406,7 @@ CreateChannelFlowResult createChannelFlow(CreateChannelFlowRequest createChannel
404406
* CreateChannelMembership service method, as returned by Amazon
405407
* ChimeSDK Messaging.
406408
* @throws BadRequestException
409+
* @throws NotFoundException
407410
* @throws ForbiddenException
408411
* @throws UnauthorizedClientException
409412
* @throws ConflictException
@@ -1438,6 +1441,33 @@ ListChannelsModeratedByAppInstanceUserResult listChannelsModeratedByAppInstanceU
14381441
ListChannelsModeratedByAppInstanceUserRequest listChannelsModeratedByAppInstanceUserRequest)
14391442
throws AmazonClientException, AmazonServiceException;
14401443

1444+
/**
1445+
* <p>
1446+
* Lists all the SubChannels in an elastic channel when given a channel ID.
1447+
* Available only to the app instance admins and channel moderators of
1448+
* elastic channels.
1449+
* </p>
1450+
*
1451+
* @param listSubChannelsRequest
1452+
* @return listSubChannelsResult The response from the ListSubChannels
1453+
* service method, as returned by Amazon ChimeSDK Messaging.
1454+
* @throws BadRequestException
1455+
* @throws ForbiddenException
1456+
* @throws UnauthorizedClientException
1457+
* @throws ThrottledClientException
1458+
* @throws ServiceUnavailableException
1459+
* @throws ServiceFailureException
1460+
* @throws AmazonClientException If any internal errors are encountered
1461+
* inside the client while attempting to make the request or
1462+
* handle the response. For example if a network connection is
1463+
* not available.
1464+
* @throws AmazonServiceException If an error response is returned by Amazon
1465+
* ChimeSDK Messaging indicating either a problem with the data
1466+
* in the request, or a server side issue.
1467+
*/
1468+
ListSubChannelsResult listSubChannels(ListSubChannelsRequest listSubChannelsRequest)
1469+
throws AmazonClientException, AmazonServiceException;
1470+
14411471
/**
14421472
* <p>
14431473
* Lists the tags applied to an Amazon Chime SDK messaging resource.

aws-android-sdk-chimesdkmessaging/src/main/java/com/amazonaws/services/chimesdkmessaging/AmazonChimeSDKMessagingClient.java

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -437,8 +437,10 @@ public void associateChannelFlow(AssociateChannelFlowRequest associateChannelFlo
437437
* @throws ServiceUnavailableException
438438
* @throws UnauthorizedClientException
439439
* @throws BadRequestException
440+
* @throws NotFoundException
440441
* @throws ForbiddenException
441442
* @throws ThrottledClientException
443+
* @throws ResourceLimitExceededException
442444
* @throws AmazonClientException If any internal errors are encountered
443445
* inside the client while attempting to make the request or
444446
* handle the response. For example if a network connection is
@@ -835,6 +837,7 @@ public CreateChannelFlowResult createChannelFlow(
835837
* CreateChannelMembership service method, as returned by Amazon
836838
* ChimeSDK Messaging.
837839
* @throws BadRequestException
840+
* @throws NotFoundException
838841
* @throws ForbiddenException
839842
* @throws UnauthorizedClientException
840843
* @throws ConflictException
@@ -2615,6 +2618,59 @@ public ListChannelsModeratedByAppInstanceUserResult listChannelsModeratedByAppIn
26152618
}
26162619
}
26172620

2621+
/**
2622+
* <p>
2623+
* Lists all the SubChannels in an elastic channel when given a channel ID.
2624+
* Available only to the app instance admins and channel moderators of
2625+
* elastic channels.
2626+
* </p>
2627+
*
2628+
* @param listSubChannelsRequest
2629+
* @return listSubChannelsResult The response from the ListSubChannels
2630+
* service method, as returned by Amazon ChimeSDK Messaging.
2631+
* @throws BadRequestException
2632+
* @throws ForbiddenException
2633+
* @throws UnauthorizedClientException
2634+
* @throws ThrottledClientException
2635+
* @throws ServiceUnavailableException
2636+
* @throws ServiceFailureException
2637+
* @throws AmazonClientException If any internal errors are encountered
2638+
* inside the client while attempting to make the request or
2639+
* handle the response. For example if a network connection is
2640+
* not available.
2641+
* @throws AmazonServiceException If an error response is returned by Amazon
2642+
* ChimeSDK Messaging indicating either a problem with the data
2643+
* in the request, or a server side issue.
2644+
*/
2645+
public ListSubChannelsResult listSubChannels(ListSubChannelsRequest listSubChannelsRequest)
2646+
throws AmazonServiceException, AmazonClientException {
2647+
ExecutionContext executionContext = createExecutionContext(listSubChannelsRequest);
2648+
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
2649+
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
2650+
Request<ListSubChannelsRequest> request = null;
2651+
Response<ListSubChannelsResult> response = null;
2652+
try {
2653+
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
2654+
try {
2655+
request = new ListSubChannelsRequestMarshaller().marshall(listSubChannelsRequest);
2656+
// Binds the request metrics to the current request.
2657+
request.setAWSRequestMetrics(awsRequestMetrics);
2658+
} finally {
2659+
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
2660+
}
2661+
Unmarshaller<ListSubChannelsResult, JsonUnmarshallerContext> unmarshaller = new ListSubChannelsResultJsonUnmarshaller();
2662+
JsonResponseHandler<ListSubChannelsResult> responseHandler = new JsonResponseHandler<ListSubChannelsResult>(
2663+
unmarshaller);
2664+
2665+
response = invoke(request, responseHandler, executionContext);
2666+
2667+
return response.getAwsResponse();
2668+
} finally {
2669+
awsRequestMetrics.endEvent(Field.ClientExecuteTime);
2670+
endClientExecution(awsRequestMetrics, request, response, LOGGING_AWS_REQUEST_METRIC);
2671+
}
2672+
}
2673+
26182674
/**
26192675
* <p>
26202676
* Lists the tags applied to an Amazon Chime SDK messaging resource.

aws-android-sdk-chimesdkmessaging/src/main/java/com/amazonaws/services/chimesdkmessaging/model/AppInstanceUserMembershipSummary.java

Lines changed: 85 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,18 @@ public class AppInstanceUserMembershipSummary implements Serializable {
4141
*/
4242
private java.util.Date readMarkerTimestamp;
4343

44+
/**
45+
* <p>
46+
* The ID of the SubChannel that the <code>AppInstanceUser</code> is a
47+
* member of.
48+
* </p>
49+
* <p>
50+
* <b>Constraints:</b><br/>
51+
* <b>Length: </b>1 - 128<br/>
52+
* <b>Pattern: </b>[-_a-zA-Z0-9]*<br/>
53+
*/
54+
private String subChannelId;
55+
4456
/**
4557
* <p>
4658
* The type of <code>ChannelMembership</code>.
@@ -190,6 +202,69 @@ public AppInstanceUserMembershipSummary withReadMarkerTimestamp(
190202
return this;
191203
}
192204

205+
/**
206+
* <p>
207+
* The ID of the SubChannel that the <code>AppInstanceUser</code> is a
208+
* member of.
209+
* </p>
210+
* <p>
211+
* <b>Constraints:</b><br/>
212+
* <b>Length: </b>1 - 128<br/>
213+
* <b>Pattern: </b>[-_a-zA-Z0-9]*<br/>
214+
*
215+
* @return <p>
216+
* The ID of the SubChannel that the <code>AppInstanceUser</code> is
217+
* a member of.
218+
* </p>
219+
*/
220+
public String getSubChannelId() {
221+
return subChannelId;
222+
}
223+
224+
/**
225+
* <p>
226+
* The ID of the SubChannel that the <code>AppInstanceUser</code> is a
227+
* member of.
228+
* </p>
229+
* <p>
230+
* <b>Constraints:</b><br/>
231+
* <b>Length: </b>1 - 128<br/>
232+
* <b>Pattern: </b>[-_a-zA-Z0-9]*<br/>
233+
*
234+
* @param subChannelId <p>
235+
* The ID of the SubChannel that the <code>AppInstanceUser</code>
236+
* is a member of.
237+
* </p>
238+
*/
239+
public void setSubChannelId(String subChannelId) {
240+
this.subChannelId = subChannelId;
241+
}
242+
243+
/**
244+
* <p>
245+
* The ID of the SubChannel that the <code>AppInstanceUser</code> is a
246+
* member of.
247+
* </p>
248+
* <p>
249+
* Returns a reference to this object so that method calls can be chained
250+
* together.
251+
* <p>
252+
* <b>Constraints:</b><br/>
253+
* <b>Length: </b>1 - 128<br/>
254+
* <b>Pattern: </b>[-_a-zA-Z0-9]*<br/>
255+
*
256+
* @param subChannelId <p>
257+
* The ID of the SubChannel that the <code>AppInstanceUser</code>
258+
* is a member of.
259+
* </p>
260+
* @return A reference to this updated object so that method calls can be
261+
* chained together.
262+
*/
263+
public AppInstanceUserMembershipSummary withSubChannelId(String subChannelId) {
264+
this.subChannelId = subChannelId;
265+
return this;
266+
}
267+
193268
/**
194269
* Returns a string representation of this object; useful for testing and
195270
* debugging.
@@ -204,7 +279,9 @@ public String toString() {
204279
if (getType() != null)
205280
sb.append("Type: " + getType() + ",");
206281
if (getReadMarkerTimestamp() != null)
207-
sb.append("ReadMarkerTimestamp: " + getReadMarkerTimestamp());
282+
sb.append("ReadMarkerTimestamp: " + getReadMarkerTimestamp() + ",");
283+
if (getSubChannelId() != null)
284+
sb.append("SubChannelId: " + getSubChannelId());
208285
sb.append("}");
209286
return sb.toString();
210287
}
@@ -217,6 +294,8 @@ public int hashCode() {
217294
hashCode = prime * hashCode + ((getType() == null) ? 0 : getType().hashCode());
218295
hashCode = prime * hashCode
219296
+ ((getReadMarkerTimestamp() == null) ? 0 : getReadMarkerTimestamp().hashCode());
297+
hashCode = prime * hashCode
298+
+ ((getSubChannelId() == null) ? 0 : getSubChannelId().hashCode());
220299
return hashCode;
221300
}
222301

@@ -240,6 +319,11 @@ public boolean equals(Object obj) {
240319
if (other.getReadMarkerTimestamp() != null
241320
&& other.getReadMarkerTimestamp().equals(this.getReadMarkerTimestamp()) == false)
242321
return false;
322+
if (other.getSubChannelId() == null ^ this.getSubChannelId() == null)
323+
return false;
324+
if (other.getSubChannelId() != null
325+
&& other.getSubChannelId().equals(this.getSubChannelId()) == false)
326+
return false;
243327
return true;
244328
}
245329
}

aws-android-sdk-chimesdkmessaging/src/main/java/com/amazonaws/services/chimesdkmessaging/model/BatchChannelMemberships.java

Lines changed: 78 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,17 @@ public class BatchChannelMemberships implements Serializable {
6161
*/
6262
private String channelArn;
6363

64+
/**
65+
* <p>
66+
* The ID of the SubChannel.
67+
* </p>
68+
* <p>
69+
* <b>Constraints:</b><br/>
70+
* <b>Length: </b>1 - 128<br/>
71+
* <b>Pattern: </b>[-_a-zA-Z0-9]*<br/>
72+
*/
73+
private String subChannelId;
74+
6475
/**
6576
* <p>
6677
* The identifier of the member who invited another member.
@@ -340,6 +351,63 @@ public BatchChannelMemberships withChannelArn(String channelArn) {
340351
return this;
341352
}
342353

354+
/**
355+
* <p>
356+
* The ID of the SubChannel.
357+
* </p>
358+
* <p>
359+
* <b>Constraints:</b><br/>
360+
* <b>Length: </b>1 - 128<br/>
361+
* <b>Pattern: </b>[-_a-zA-Z0-9]*<br/>
362+
*
363+
* @return <p>
364+
* The ID of the SubChannel.
365+
* </p>
366+
*/
367+
public String getSubChannelId() {
368+
return subChannelId;
369+
}
370+
371+
/**
372+
* <p>
373+
* The ID of the SubChannel.
374+
* </p>
375+
* <p>
376+
* <b>Constraints:</b><br/>
377+
* <b>Length: </b>1 - 128<br/>
378+
* <b>Pattern: </b>[-_a-zA-Z0-9]*<br/>
379+
*
380+
* @param subChannelId <p>
381+
* The ID of the SubChannel.
382+
* </p>
383+
*/
384+
public void setSubChannelId(String subChannelId) {
385+
this.subChannelId = subChannelId;
386+
}
387+
388+
/**
389+
* <p>
390+
* The ID of the SubChannel.
391+
* </p>
392+
* <p>
393+
* Returns a reference to this object so that method calls can be chained
394+
* together.
395+
* <p>
396+
* <b>Constraints:</b><br/>
397+
* <b>Length: </b>1 - 128<br/>
398+
* <b>Pattern: </b>[-_a-zA-Z0-9]*<br/>
399+
*
400+
* @param subChannelId <p>
401+
* The ID of the SubChannel.
402+
* </p>
403+
* @return A reference to this updated object so that method calls can be
404+
* chained together.
405+
*/
406+
public BatchChannelMemberships withSubChannelId(String subChannelId) {
407+
this.subChannelId = subChannelId;
408+
return this;
409+
}
410+
343411
/**
344412
* Returns a string representation of this object; useful for testing and
345413
* debugging.
@@ -358,7 +426,9 @@ public String toString() {
358426
if (getMembers() != null)
359427
sb.append("Members: " + getMembers() + ",");
360428
if (getChannelArn() != null)
361-
sb.append("ChannelArn: " + getChannelArn());
429+
sb.append("ChannelArn: " + getChannelArn() + ",");
430+
if (getSubChannelId() != null)
431+
sb.append("SubChannelId: " + getSubChannelId());
362432
sb.append("}");
363433
return sb.toString();
364434
}
@@ -372,6 +442,8 @@ public int hashCode() {
372442
hashCode = prime * hashCode + ((getType() == null) ? 0 : getType().hashCode());
373443
hashCode = prime * hashCode + ((getMembers() == null) ? 0 : getMembers().hashCode());
374444
hashCode = prime * hashCode + ((getChannelArn() == null) ? 0 : getChannelArn().hashCode());
445+
hashCode = prime * hashCode
446+
+ ((getSubChannelId() == null) ? 0 : getSubChannelId().hashCode());
375447
return hashCode;
376448
}
377449

@@ -404,6 +476,11 @@ public boolean equals(Object obj) {
404476
if (other.getChannelArn() != null
405477
&& other.getChannelArn().equals(this.getChannelArn()) == false)
406478
return false;
479+
if (other.getSubChannelId() == null ^ this.getSubChannelId() == null)
480+
return false;
481+
if (other.getSubChannelId() != null
482+
&& other.getSubChannelId().equals(this.getSubChannelId()) == false)
483+
return false;
407484
return true;
408485
}
409486
}

0 commit comments

Comments
 (0)