Skip to content

Commit

Permalink
feat(aws-android-sdk-chimesdkmessaging): update models to latest (#2978)
Browse files Browse the repository at this point in the history
  • Loading branch information
awsmobilesdk authored Aug 15, 2022
1 parent 5e25687 commit 3704187
Show file tree
Hide file tree
Showing 72 changed files with 4,436 additions and 31 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -140,8 +140,10 @@ void associateChannelFlow(AssociateChannelFlowRequest associateChannelFlowReques
* @throws ServiceUnavailableException
* @throws UnauthorizedClientException
* @throws BadRequestException
* @throws NotFoundException
* @throws ForbiddenException
* @throws ThrottledClientException
* @throws ResourceLimitExceededException
* @throws AmazonClientException If any internal errors are encountered
* inside the client while attempting to make the request or
* handle the response. For example if a network connection is
Expand Down Expand Up @@ -404,6 +406,7 @@ CreateChannelFlowResult createChannelFlow(CreateChannelFlowRequest createChannel
* CreateChannelMembership service method, as returned by Amazon
* ChimeSDK Messaging.
* @throws BadRequestException
* @throws NotFoundException
* @throws ForbiddenException
* @throws UnauthorizedClientException
* @throws ConflictException
Expand Down Expand Up @@ -1438,6 +1441,33 @@ ListChannelsModeratedByAppInstanceUserResult listChannelsModeratedByAppInstanceU
ListChannelsModeratedByAppInstanceUserRequest listChannelsModeratedByAppInstanceUserRequest)
throws AmazonClientException, AmazonServiceException;

/**
* <p>
* Lists all the SubChannels in an elastic channel when given a channel ID.
* Available only to the app instance admins and channel moderators of
* elastic channels.
* </p>
*
* @param listSubChannelsRequest
* @return listSubChannelsResult The response from the ListSubChannels
* service method, as returned by Amazon ChimeSDK Messaging.
* @throws BadRequestException
* @throws ForbiddenException
* @throws UnauthorizedClientException
* @throws ThrottledClientException
* @throws ServiceUnavailableException
* @throws ServiceFailureException
* @throws AmazonClientException If any internal errors are encountered
* inside the client while attempting to make the request or
* handle the response. For example if a network connection is
* not available.
* @throws AmazonServiceException If an error response is returned by Amazon
* ChimeSDK Messaging indicating either a problem with the data
* in the request, or a server side issue.
*/
ListSubChannelsResult listSubChannels(ListSubChannelsRequest listSubChannelsRequest)
throws AmazonClientException, AmazonServiceException;

/**
* <p>
* Lists the tags applied to an Amazon Chime SDK messaging resource.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -437,8 +437,10 @@ public void associateChannelFlow(AssociateChannelFlowRequest associateChannelFlo
* @throws ServiceUnavailableException
* @throws UnauthorizedClientException
* @throws BadRequestException
* @throws NotFoundException
* @throws ForbiddenException
* @throws ThrottledClientException
* @throws ResourceLimitExceededException
* @throws AmazonClientException If any internal errors are encountered
* inside the client while attempting to make the request or
* handle the response. For example if a network connection is
Expand Down Expand Up @@ -835,6 +837,7 @@ public CreateChannelFlowResult createChannelFlow(
* CreateChannelMembership service method, as returned by Amazon
* ChimeSDK Messaging.
* @throws BadRequestException
* @throws NotFoundException
* @throws ForbiddenException
* @throws UnauthorizedClientException
* @throws ConflictException
Expand Down Expand Up @@ -2615,6 +2618,59 @@ public ListChannelsModeratedByAppInstanceUserResult listChannelsModeratedByAppIn
}
}

/**
* <p>
* Lists all the SubChannels in an elastic channel when given a channel ID.
* Available only to the app instance admins and channel moderators of
* elastic channels.
* </p>
*
* @param listSubChannelsRequest
* @return listSubChannelsResult The response from the ListSubChannels
* service method, as returned by Amazon ChimeSDK Messaging.
* @throws BadRequestException
* @throws ForbiddenException
* @throws UnauthorizedClientException
* @throws ThrottledClientException
* @throws ServiceUnavailableException
* @throws ServiceFailureException
* @throws AmazonClientException If any internal errors are encountered
* inside the client while attempting to make the request or
* handle the response. For example if a network connection is
* not available.
* @throws AmazonServiceException If an error response is returned by Amazon
* ChimeSDK Messaging indicating either a problem with the data
* in the request, or a server side issue.
*/
public ListSubChannelsResult listSubChannels(ListSubChannelsRequest listSubChannelsRequest)
throws AmazonServiceException, AmazonClientException {
ExecutionContext executionContext = createExecutionContext(listSubChannelsRequest);
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
Request<ListSubChannelsRequest> request = null;
Response<ListSubChannelsResult> response = null;
try {
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
try {
request = new ListSubChannelsRequestMarshaller().marshall(listSubChannelsRequest);
// Binds the request metrics to the current request.
request.setAWSRequestMetrics(awsRequestMetrics);
} finally {
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
}
Unmarshaller<ListSubChannelsResult, JsonUnmarshallerContext> unmarshaller = new ListSubChannelsResultJsonUnmarshaller();
JsonResponseHandler<ListSubChannelsResult> responseHandler = new JsonResponseHandler<ListSubChannelsResult>(
unmarshaller);

response = invoke(request, responseHandler, executionContext);

return response.getAwsResponse();
} finally {
awsRequestMetrics.endEvent(Field.ClientExecuteTime);
endClientExecution(awsRequestMetrics, request, response, LOGGING_AWS_REQUEST_METRIC);
}
}

/**
* <p>
* Lists the tags applied to an Amazon Chime SDK messaging resource.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,18 @@ public class AppInstanceUserMembershipSummary implements Serializable {
*/
private java.util.Date readMarkerTimestamp;

/**
* <p>
* The ID of the SubChannel that the <code>AppInstanceUser</code> is a
* member of.
* </p>
* <p>
* <b>Constraints:</b><br/>
* <b>Length: </b>1 - 128<br/>
* <b>Pattern: </b>[-_a-zA-Z0-9]*<br/>
*/
private String subChannelId;

/**
* <p>
* The type of <code>ChannelMembership</code>.
Expand Down Expand Up @@ -190,6 +202,69 @@ public AppInstanceUserMembershipSummary withReadMarkerTimestamp(
return this;
}

/**
* <p>
* The ID of the SubChannel that the <code>AppInstanceUser</code> is a
* member of.
* </p>
* <p>
* <b>Constraints:</b><br/>
* <b>Length: </b>1 - 128<br/>
* <b>Pattern: </b>[-_a-zA-Z0-9]*<br/>
*
* @return <p>
* The ID of the SubChannel that the <code>AppInstanceUser</code> is
* a member of.
* </p>
*/
public String getSubChannelId() {
return subChannelId;
}

/**
* <p>
* The ID of the SubChannel that the <code>AppInstanceUser</code> is a
* member of.
* </p>
* <p>
* <b>Constraints:</b><br/>
* <b>Length: </b>1 - 128<br/>
* <b>Pattern: </b>[-_a-zA-Z0-9]*<br/>
*
* @param subChannelId <p>
* The ID of the SubChannel that the <code>AppInstanceUser</code>
* is a member of.
* </p>
*/
public void setSubChannelId(String subChannelId) {
this.subChannelId = subChannelId;
}

/**
* <p>
* The ID of the SubChannel that the <code>AppInstanceUser</code> is a
* member of.
* </p>
* <p>
* Returns a reference to this object so that method calls can be chained
* together.
* <p>
* <b>Constraints:</b><br/>
* <b>Length: </b>1 - 128<br/>
* <b>Pattern: </b>[-_a-zA-Z0-9]*<br/>
*
* @param subChannelId <p>
* The ID of the SubChannel that the <code>AppInstanceUser</code>
* is a member of.
* </p>
* @return A reference to this updated object so that method calls can be
* chained together.
*/
public AppInstanceUserMembershipSummary withSubChannelId(String subChannelId) {
this.subChannelId = subChannelId;
return this;
}

/**
* Returns a string representation of this object; useful for testing and
* debugging.
Expand All @@ -204,7 +279,9 @@ public String toString() {
if (getType() != null)
sb.append("Type: " + getType() + ",");
if (getReadMarkerTimestamp() != null)
sb.append("ReadMarkerTimestamp: " + getReadMarkerTimestamp());
sb.append("ReadMarkerTimestamp: " + getReadMarkerTimestamp() + ",");
if (getSubChannelId() != null)
sb.append("SubChannelId: " + getSubChannelId());
sb.append("}");
return sb.toString();
}
Expand All @@ -217,6 +294,8 @@ public int hashCode() {
hashCode = prime * hashCode + ((getType() == null) ? 0 : getType().hashCode());
hashCode = prime * hashCode
+ ((getReadMarkerTimestamp() == null) ? 0 : getReadMarkerTimestamp().hashCode());
hashCode = prime * hashCode
+ ((getSubChannelId() == null) ? 0 : getSubChannelId().hashCode());
return hashCode;
}

Expand All @@ -240,6 +319,11 @@ public boolean equals(Object obj) {
if (other.getReadMarkerTimestamp() != null
&& other.getReadMarkerTimestamp().equals(this.getReadMarkerTimestamp()) == false)
return false;
if (other.getSubChannelId() == null ^ this.getSubChannelId() == null)
return false;
if (other.getSubChannelId() != null
&& other.getSubChannelId().equals(this.getSubChannelId()) == false)
return false;
return true;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,17 @@ public class BatchChannelMemberships implements Serializable {
*/
private String channelArn;

/**
* <p>
* The ID of the SubChannel.
* </p>
* <p>
* <b>Constraints:</b><br/>
* <b>Length: </b>1 - 128<br/>
* <b>Pattern: </b>[-_a-zA-Z0-9]*<br/>
*/
private String subChannelId;

/**
* <p>
* The identifier of the member who invited another member.
Expand Down Expand Up @@ -340,6 +351,63 @@ public BatchChannelMemberships withChannelArn(String channelArn) {
return this;
}

/**
* <p>
* The ID of the SubChannel.
* </p>
* <p>
* <b>Constraints:</b><br/>
* <b>Length: </b>1 - 128<br/>
* <b>Pattern: </b>[-_a-zA-Z0-9]*<br/>
*
* @return <p>
* The ID of the SubChannel.
* </p>
*/
public String getSubChannelId() {
return subChannelId;
}

/**
* <p>
* The ID of the SubChannel.
* </p>
* <p>
* <b>Constraints:</b><br/>
* <b>Length: </b>1 - 128<br/>
* <b>Pattern: </b>[-_a-zA-Z0-9]*<br/>
*
* @param subChannelId <p>
* The ID of the SubChannel.
* </p>
*/
public void setSubChannelId(String subChannelId) {
this.subChannelId = subChannelId;
}

/**
* <p>
* The ID of the SubChannel.
* </p>
* <p>
* Returns a reference to this object so that method calls can be chained
* together.
* <p>
* <b>Constraints:</b><br/>
* <b>Length: </b>1 - 128<br/>
* <b>Pattern: </b>[-_a-zA-Z0-9]*<br/>
*
* @param subChannelId <p>
* The ID of the SubChannel.
* </p>
* @return A reference to this updated object so that method calls can be
* chained together.
*/
public BatchChannelMemberships withSubChannelId(String subChannelId) {
this.subChannelId = subChannelId;
return this;
}

/**
* Returns a string representation of this object; useful for testing and
* debugging.
Expand All @@ -358,7 +426,9 @@ public String toString() {
if (getMembers() != null)
sb.append("Members: " + getMembers() + ",");
if (getChannelArn() != null)
sb.append("ChannelArn: " + getChannelArn());
sb.append("ChannelArn: " + getChannelArn() + ",");
if (getSubChannelId() != null)
sb.append("SubChannelId: " + getSubChannelId());
sb.append("}");
return sb.toString();
}
Expand All @@ -372,6 +442,8 @@ public int hashCode() {
hashCode = prime * hashCode + ((getType() == null) ? 0 : getType().hashCode());
hashCode = prime * hashCode + ((getMembers() == null) ? 0 : getMembers().hashCode());
hashCode = prime * hashCode + ((getChannelArn() == null) ? 0 : getChannelArn().hashCode());
hashCode = prime * hashCode
+ ((getSubChannelId() == null) ? 0 : getSubChannelId().hashCode());
return hashCode;
}

Expand Down Expand Up @@ -404,6 +476,11 @@ public boolean equals(Object obj) {
if (other.getChannelArn() != null
&& other.getChannelArn().equals(this.getChannelArn()) == false)
return false;
if (other.getSubChannelId() == null ^ this.getSubChannelId() == null)
return false;
if (other.getSubChannelId() != null
&& other.getSubChannelId().equals(this.getSubChannelId()) == false)
return false;
return true;
}
}
Loading

0 comments on commit 3704187

Please sign in to comment.