/* * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ package com.amazonaws.services.chimesdkmessaging.model; import java.io.Serializable; import com.amazonaws.AmazonWebServiceRequest; /** *
* Creates a channel to which you can add users and send messages. *
** Restriction: You can't change a channel's privacy. *
*
* The x-amz-chime-bearer
request header is mandatory. Use the ARN
* of the AppInstanceUser
or AppInstanceBot
that makes
* the API call as the value in the header.
*
* The ARN of the channel request. *
*
* Constraints:
* Length: 5 - 1600
* Pattern:
* arn:[a-z0-9-\.]{1,63}:[a-z0-9-\.]{0,63}:[a-z0-9-\.]{0,63}:
* [a-z0-9-\.]{0,63}:[^/].{0,1023}
*/
private String appInstanceArn;
/**
*
* The name of the channel. *
*
* Constraints:
* Length: 1 - 256
* Pattern: [
* -\u007E\u0085\u00A0-\uD7FF\uE000-\uFFFD\u10000-\u10FFFF]*
*/
private String name;
/**
*
* The channel mode: UNRESTRICTED
or RESTRICTED
.
* Administrators, moderators, and channel members can add themselves and
* other members to unrestricted channels. Only administrators and
* moderators can add members to restricted channels.
*
* Constraints:
* Allowed Values: UNRESTRICTED, RESTRICTED
*/
private String mode;
/**
*
* The channel's privacy level: PUBLIC
or PRIVATE
.
* Private channels aren't discoverable by users outside the channel. Public
* channels are discoverable by anyone in the AppInstance
.
*
* Constraints:
* Allowed Values: PUBLIC, PRIVATE
*/
private String privacy;
/**
*
* The metadata of the creation request. Limited to 1KB and UTF-8. *
*
* Constraints:
* Length: 0 - 1024
* Pattern: .*
*/
private String metadata;
/**
*
* The client token for the request. An Idempotency
token.
*
* Constraints:
* Length: 2 - 64
* Pattern: [-_a-zA-Z0-9]*
*/
private String clientRequestToken;
/**
*
* The tags for the creation request. *
*/ private java.util.List
* The ARN of the AppInstanceUser
or
* AppInstanceBot
that makes the API call.
*
* Constraints:
* Length: 5 - 1600
* Pattern:
* arn:[a-z0-9-\.]{1,63}:[a-z0-9-\.]{0,63}:[a-z0-9-\.]{0,63}:
* [a-z0-9-\.]{0,63}:[^/].{0,1023}
*/
private String chimeBearer;
/**
*
* The ID of the channel in the request. *
*
* Constraints:
* Length: 1 - 64
* Pattern: [A-Za-z0-9]([A-Za-z0-9\:\-\_\.\@]{0,62}[A-Za-z0-9])?
*/
private String channelId;
/**
*
* The ARNs of the channel members in the request. *
*/ private java.util.List* The ARNs of the channel moderators in the request. *
*/ private java.util.List* The attributes required to configure and create an elastic channel. An * elastic channel can support a maximum of 1-million users, excluding * moderators. *
*/ private ElasticChannelConfiguration elasticChannelConfiguration; /** ** Settings that control the interval after which the channel is * automatically deleted. *
*/ private ExpirationSettings expirationSettings; /** ** The ARN of the channel request. *
*
* Constraints:
* Length: 5 - 1600
* Pattern:
* arn:[a-z0-9-\.]{1,63}:[a-z0-9-\.]{0,63}:[a-z0-9-\.]{0,63}:
* [a-z0-9-\.]{0,63}:[^/].{0,1023}
*
* @return
* The ARN of the channel request. *
*/ public String getAppInstanceArn() { return appInstanceArn; } /** ** The ARN of the channel request. *
*
* Constraints:
* Length: 5 - 1600
* Pattern:
* arn:[a-z0-9-\.]{1,63}:[a-z0-9-\.]{0,63}:[a-z0-9-\.]{0,63}:
* [a-z0-9-\.]{0,63}:[^/].{0,1023}
*
* @param appInstanceArn
* The ARN of the channel request. *
*/ public void setAppInstanceArn(String appInstanceArn) { this.appInstanceArn = appInstanceArn; } /** ** The ARN of the channel request. *
** Returns a reference to this object so that method calls can be chained * together. *
* Constraints:
* Length: 5 - 1600
* Pattern:
* arn:[a-z0-9-\.]{1,63}:[a-z0-9-\.]{0,63}:[a-z0-9-\.]{0,63}:
* [a-z0-9-\.]{0,63}:[^/].{0,1023}
*
* @param appInstanceArn
* The ARN of the channel request. *
* @return A reference to this updated object so that method calls can be * chained together. */ public CreateChannelRequest withAppInstanceArn(String appInstanceArn) { this.appInstanceArn = appInstanceArn; return this; } /** ** The name of the channel. *
*
* Constraints:
* Length: 1 - 256
* Pattern: [
* -\u007E\u0085\u00A0-\uD7FF\uE000-\uFFFD\u10000-\u10FFFF]*
*
* @return
* The name of the channel. *
*/ public String getName() { return name; } /** ** The name of the channel. *
*
* Constraints:
* Length: 1 - 256
* Pattern: [
* -\u007E\u0085\u00A0-\uD7FF\uE000-\uFFFD\u10000-\u10FFFF]*
*
* @param name
* The name of the channel. *
*/ public void setName(String name) { this.name = name; } /** ** The name of the channel. *
** Returns a reference to this object so that method calls can be chained * together. *
* Constraints:
* Length: 1 - 256
* Pattern: [
* -\u007E\u0085\u00A0-\uD7FF\uE000-\uFFFD\u10000-\u10FFFF]*
*
* @param name
* The name of the channel. *
* @return A reference to this updated object so that method calls can be * chained together. */ public CreateChannelRequest withName(String name) { this.name = name; return this; } /** *
* The channel mode: UNRESTRICTED
or RESTRICTED
.
* Administrators, moderators, and channel members can add themselves and
* other members to unrestricted channels. Only administrators and
* moderators can add members to restricted channels.
*
* Constraints:
* Allowed Values: UNRESTRICTED, RESTRICTED
*
* @return
* The channel mode: UNRESTRICTED
or
* RESTRICTED
. Administrators, moderators, and channel
* members can add themselves and other members to unrestricted
* channels. Only administrators and moderators can add members to
* restricted channels.
*
* The channel mode: UNRESTRICTED
or RESTRICTED
.
* Administrators, moderators, and channel members can add themselves and
* other members to unrestricted channels. Only administrators and
* moderators can add members to restricted channels.
*
* Constraints:
* Allowed Values: UNRESTRICTED, RESTRICTED
*
* @param mode
* The channel mode: UNRESTRICTED
or
* RESTRICTED
. Administrators, moderators, and
* channel members can add themselves and other members to
* unrestricted channels. Only administrators and moderators can
* add members to restricted channels.
*
* The channel mode: UNRESTRICTED
or RESTRICTED
.
* Administrators, moderators, and channel members can add themselves and
* other members to unrestricted channels. Only administrators and
* moderators can add members to restricted channels.
*
* Returns a reference to this object so that method calls can be chained * together. *
* Constraints:
* Allowed Values: UNRESTRICTED, RESTRICTED
*
* @param mode
* The channel mode: UNRESTRICTED
or
* RESTRICTED
. Administrators, moderators, and
* channel members can add themselves and other members to
* unrestricted channels. Only administrators and moderators can
* add members to restricted channels.
*
* The channel mode: UNRESTRICTED
or RESTRICTED
.
* Administrators, moderators, and channel members can add themselves and
* other members to unrestricted channels. Only administrators and
* moderators can add members to restricted channels.
*
* Constraints:
* Allowed Values: UNRESTRICTED, RESTRICTED
*
* @param mode
* The channel mode: UNRESTRICTED
or
* RESTRICTED
. Administrators, moderators, and
* channel members can add themselves and other members to
* unrestricted channels. Only administrators and moderators can
* add members to restricted channels.
*
* The channel mode: UNRESTRICTED
or RESTRICTED
.
* Administrators, moderators, and channel members can add themselves and
* other members to unrestricted channels. Only administrators and
* moderators can add members to restricted channels.
*
* Returns a reference to this object so that method calls can be chained * together. *
* Constraints:
* Allowed Values: UNRESTRICTED, RESTRICTED
*
* @param mode
* The channel mode: UNRESTRICTED
or
* RESTRICTED
. Administrators, moderators, and
* channel members can add themselves and other members to
* unrestricted channels. Only administrators and moderators can
* add members to restricted channels.
*
* The channel's privacy level: PUBLIC
or PRIVATE
.
* Private channels aren't discoverable by users outside the channel. Public
* channels are discoverable by anyone in the AppInstance
.
*
* Constraints:
* Allowed Values: PUBLIC, PRIVATE
*
* @return
* The channel's privacy level: PUBLIC
or
* PRIVATE
. Private channels aren't discoverable by
* users outside the channel. Public channels are discoverable by
* anyone in the AppInstance
.
*
* The channel's privacy level: PUBLIC
or PRIVATE
.
* Private channels aren't discoverable by users outside the channel. Public
* channels are discoverable by anyone in the AppInstance
.
*
* Constraints:
* Allowed Values: PUBLIC, PRIVATE
*
* @param privacy
* The channel's privacy level: PUBLIC
or
* PRIVATE
. Private channels aren't discoverable by
* users outside the channel. Public channels are discoverable by
* anyone in the AppInstance
.
*
* The channel's privacy level: PUBLIC
or PRIVATE
.
* Private channels aren't discoverable by users outside the channel. Public
* channels are discoverable by anyone in the AppInstance
.
*
* Returns a reference to this object so that method calls can be chained * together. *
* Constraints:
* Allowed Values: PUBLIC, PRIVATE
*
* @param privacy
* The channel's privacy level: PUBLIC
or
* PRIVATE
. Private channels aren't discoverable by
* users outside the channel. Public channels are discoverable by
* anyone in the AppInstance
.
*
* The channel's privacy level: PUBLIC
or PRIVATE
.
* Private channels aren't discoverable by users outside the channel. Public
* channels are discoverable by anyone in the AppInstance
.
*
* Constraints:
* Allowed Values: PUBLIC, PRIVATE
*
* @param privacy
* The channel's privacy level: PUBLIC
or
* PRIVATE
. Private channels aren't discoverable by
* users outside the channel. Public channels are discoverable by
* anyone in the AppInstance
.
*
* The channel's privacy level: PUBLIC
or PRIVATE
.
* Private channels aren't discoverable by users outside the channel. Public
* channels are discoverable by anyone in the AppInstance
.
*
* Returns a reference to this object so that method calls can be chained * together. *
* Constraints:
* Allowed Values: PUBLIC, PRIVATE
*
* @param privacy
* The channel's privacy level: PUBLIC
or
* PRIVATE
. Private channels aren't discoverable by
* users outside the channel. Public channels are discoverable by
* anyone in the AppInstance
.
*
* The metadata of the creation request. Limited to 1KB and UTF-8. *
*
* Constraints:
* Length: 0 - 1024
* Pattern: .*
*
* @return
* The metadata of the creation request. Limited to 1KB and UTF-8. *
*/ public String getMetadata() { return metadata; } /** ** The metadata of the creation request. Limited to 1KB and UTF-8. *
*
* Constraints:
* Length: 0 - 1024
* Pattern: .*
*
* @param metadata
* The metadata of the creation request. Limited to 1KB and * UTF-8. *
*/ public void setMetadata(String metadata) { this.metadata = metadata; } /** ** The metadata of the creation request. Limited to 1KB and UTF-8. *
** Returns a reference to this object so that method calls can be chained * together. *
* Constraints:
* Length: 0 - 1024
* Pattern: .*
*
* @param metadata
* The metadata of the creation request. Limited to 1KB and * UTF-8. *
* @return A reference to this updated object so that method calls can be * chained together. */ public CreateChannelRequest withMetadata(String metadata) { this.metadata = metadata; return this; } /** *
* The client token for the request. An Idempotency
token.
*
* Constraints:
* Length: 2 - 64
* Pattern: [-_a-zA-Z0-9]*
*
* @return
* The client token for the request. An Idempotency
* token.
*
* The client token for the request. An Idempotency
token.
*
* Constraints:
* Length: 2 - 64
* Pattern: [-_a-zA-Z0-9]*
*
* @param clientRequestToken
* The client token for the request. An Idempotency
* token.
*
* The client token for the request. An Idempotency
token.
*
* Returns a reference to this object so that method calls can be chained * together. *
* Constraints:
* Length: 2 - 64
* Pattern: [-_a-zA-Z0-9]*
*
* @param clientRequestToken
* The client token for the request. An Idempotency
* token.
*
* The tags for the creation request. *
* * @return* The tags for the creation request. *
*/ public java.util.List* The tags for the creation request. *
* * @param tags* The tags for the creation request. *
*/ public void setTags(java.util.Collection* The tags for the creation request. *
** Returns a reference to this object so that method calls can be chained * together. * * @param tags
* The tags for the creation request. *
* @return A reference to this updated object so that method calls can be * chained together. */ public CreateChannelRequest withTags(Tag... tags) { if (getTags() == null) { this.tags = new java.util.ArrayList* The tags for the creation request. *
** Returns a reference to this object so that method calls can be chained * together. * * @param tags
* The tags for the creation request. *
* @return A reference to this updated object so that method calls can be * chained together. */ public CreateChannelRequest withTags(java.util.Collection
* The ARN of the AppInstanceUser
or
* AppInstanceBot
that makes the API call.
*
* Constraints:
* Length: 5 - 1600
* Pattern:
* arn:[a-z0-9-\.]{1,63}:[a-z0-9-\.]{0,63}:[a-z0-9-\.]{0,63}:
* [a-z0-9-\.]{0,63}:[^/].{0,1023}
*
* @return
* The ARN of the AppInstanceUser
or
* AppInstanceBot
that makes the API call.
*
* The ARN of the AppInstanceUser
or
* AppInstanceBot
that makes the API call.
*
* Constraints:
* Length: 5 - 1600
* Pattern:
* arn:[a-z0-9-\.]{1,63}:[a-z0-9-\.]{0,63}:[a-z0-9-\.]{0,63}:
* [a-z0-9-\.]{0,63}:[^/].{0,1023}
*
* @param chimeBearer
* The ARN of the AppInstanceUser
or
* AppInstanceBot
that makes the API call.
*
* The ARN of the AppInstanceUser
or
* AppInstanceBot
that makes the API call.
*
* Returns a reference to this object so that method calls can be chained * together. *
* Constraints:
* Length: 5 - 1600
* Pattern:
* arn:[a-z0-9-\.]{1,63}:[a-z0-9-\.]{0,63}:[a-z0-9-\.]{0,63}:
* [a-z0-9-\.]{0,63}:[^/].{0,1023}
*
* @param chimeBearer
* The ARN of the AppInstanceUser
or
* AppInstanceBot
that makes the API call.
*
* The ID of the channel in the request. *
*
* Constraints:
* Length: 1 - 64
* Pattern: [A-Za-z0-9]([A-Za-z0-9\:\-\_\.\@]{0,62}[A-Za-z0-9])?
*
* @return
* The ID of the channel in the request. *
*/ public String getChannelId() { return channelId; } /** ** The ID of the channel in the request. *
*
* Constraints:
* Length: 1 - 64
* Pattern: [A-Za-z0-9]([A-Za-z0-9\:\-\_\.\@]{0,62}[A-Za-z0-9])?
*
* @param channelId
* The ID of the channel in the request. *
*/ public void setChannelId(String channelId) { this.channelId = channelId; } /** ** The ID of the channel in the request. *
** Returns a reference to this object so that method calls can be chained * together. *
* Constraints:
* Length: 1 - 64
* Pattern: [A-Za-z0-9]([A-Za-z0-9\:\-\_\.\@]{0,62}[A-Za-z0-9])?
*
* @param channelId
* The ID of the channel in the request. *
* @return A reference to this updated object so that method calls can be * chained together. */ public CreateChannelRequest withChannelId(String channelId) { this.channelId = channelId; return this; } /** ** The ARNs of the channel members in the request. *
* * @return* The ARNs of the channel members in the request. *
*/ public java.util.List* The ARNs of the channel members in the request. *
* * @param memberArns* The ARNs of the channel members in the request. *
*/ public void setMemberArns(java.util.Collection* The ARNs of the channel members in the request. *
** Returns a reference to this object so that method calls can be chained * together. * * @param memberArns
* The ARNs of the channel members in the request. *
* @return A reference to this updated object so that method calls can be * chained together. */ public CreateChannelRequest withMemberArns(String... memberArns) { if (getMemberArns() == null) { this.memberArns = new java.util.ArrayList* The ARNs of the channel members in the request. *
** Returns a reference to this object so that method calls can be chained * together. * * @param memberArns
* The ARNs of the channel members in the request. *
* @return A reference to this updated object so that method calls can be * chained together. */ public CreateChannelRequest withMemberArns(java.util.Collection* The ARNs of the channel moderators in the request. *
* * @return* The ARNs of the channel moderators in the request. *
*/ public java.util.List* The ARNs of the channel moderators in the request. *
* * @param moderatorArns* The ARNs of the channel moderators in the request. *
*/ public void setModeratorArns(java.util.Collection* The ARNs of the channel moderators in the request. *
** Returns a reference to this object so that method calls can be chained * together. * * @param moderatorArns
* The ARNs of the channel moderators in the request. *
* @return A reference to this updated object so that method calls can be * chained together. */ public CreateChannelRequest withModeratorArns(String... moderatorArns) { if (getModeratorArns() == null) { this.moderatorArns = new java.util.ArrayList* The ARNs of the channel moderators in the request. *
** Returns a reference to this object so that method calls can be chained * together. * * @param moderatorArns
* The ARNs of the channel moderators in the request. *
* @return A reference to this updated object so that method calls can be * chained together. */ public CreateChannelRequest withModeratorArns(java.util.Collection* The attributes required to configure and create an elastic channel. An * elastic channel can support a maximum of 1-million users, excluding * moderators. *
* * @return* The attributes required to configure and create an elastic * channel. An elastic channel can support a maximum of 1-million * users, excluding moderators. *
*/ public ElasticChannelConfiguration getElasticChannelConfiguration() { return elasticChannelConfiguration; } /** ** The attributes required to configure and create an elastic channel. An * elastic channel can support a maximum of 1-million users, excluding * moderators. *
* * @param elasticChannelConfiguration* The attributes required to configure and create an elastic * channel. An elastic channel can support a maximum of 1-million * users, excluding moderators. *
*/ public void setElasticChannelConfiguration( ElasticChannelConfiguration elasticChannelConfiguration) { this.elasticChannelConfiguration = elasticChannelConfiguration; } /** ** The attributes required to configure and create an elastic channel. An * elastic channel can support a maximum of 1-million users, excluding * moderators. *
** Returns a reference to this object so that method calls can be chained * together. * * @param elasticChannelConfiguration
* The attributes required to configure and create an elastic * channel. An elastic channel can support a maximum of 1-million * users, excluding moderators. *
* @return A reference to this updated object so that method calls can be * chained together. */ public CreateChannelRequest withElasticChannelConfiguration( ElasticChannelConfiguration elasticChannelConfiguration) { this.elasticChannelConfiguration = elasticChannelConfiguration; return this; } /** ** Settings that control the interval after which the channel is * automatically deleted. *
* * @return* Settings that control the interval after which the channel is * automatically deleted. *
*/ public ExpirationSettings getExpirationSettings() { return expirationSettings; } /** ** Settings that control the interval after which the channel is * automatically deleted. *
* * @param expirationSettings* Settings that control the interval after which the channel is * automatically deleted. *
*/ public void setExpirationSettings(ExpirationSettings expirationSettings) { this.expirationSettings = expirationSettings; } /** ** Settings that control the interval after which the channel is * automatically deleted. *
** Returns a reference to this object so that method calls can be chained * together. * * @param expirationSettings
* Settings that control the interval after which the channel is * automatically deleted. *
* @return A reference to this updated object so that method calls can be * chained together. */ public CreateChannelRequest withExpirationSettings(ExpirationSettings expirationSettings) { this.expirationSettings = expirationSettings; return this; } /** * Returns a string representation of this object; useful for testing and * debugging. * * @return A string representation of this object. * @see java.lang.Object#toString() */ @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (getAppInstanceArn() != null) sb.append("AppInstanceArn: " + getAppInstanceArn() + ","); if (getName() != null) sb.append("Name: " + getName() + ","); if (getMode() != null) sb.append("Mode: " + getMode() + ","); if (getPrivacy() != null) sb.append("Privacy: " + getPrivacy() + ","); if (getMetadata() != null) sb.append("Metadata: " + getMetadata() + ","); if (getClientRequestToken() != null) sb.append("ClientRequestToken: " + getClientRequestToken() + ","); if (getTags() != null) sb.append("Tags: " + getTags() + ","); if (getChimeBearer() != null) sb.append("ChimeBearer: " + getChimeBearer() + ","); if (getChannelId() != null) sb.append("ChannelId: " + getChannelId() + ","); if (getMemberArns() != null) sb.append("MemberArns: " + getMemberArns() + ","); if (getModeratorArns() != null) sb.append("ModeratorArns: " + getModeratorArns() + ","); if (getElasticChannelConfiguration() != null) sb.append("ElasticChannelConfiguration: " + getElasticChannelConfiguration() + ","); if (getExpirationSettings() != null) sb.append("ExpirationSettings: " + getExpirationSettings()); sb.append("}"); return sb.toString(); } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getAppInstanceArn() == null) ? 0 : getAppInstanceArn().hashCode()); hashCode = prime * hashCode + ((getName() == null) ? 0 : getName().hashCode()); hashCode = prime * hashCode + ((getMode() == null) ? 0 : getMode().hashCode()); hashCode = prime * hashCode + ((getPrivacy() == null) ? 0 : getPrivacy().hashCode()); hashCode = prime * hashCode + ((getMetadata() == null) ? 0 : getMetadata().hashCode()); hashCode = prime * hashCode + ((getClientRequestToken() == null) ? 0 : getClientRequestToken().hashCode()); hashCode = prime * hashCode + ((getTags() == null) ? 0 : getTags().hashCode()); hashCode = prime * hashCode + ((getChimeBearer() == null) ? 0 : getChimeBearer().hashCode()); hashCode = prime * hashCode + ((getChannelId() == null) ? 0 : getChannelId().hashCode()); hashCode = prime * hashCode + ((getMemberArns() == null) ? 0 : getMemberArns().hashCode()); hashCode = prime * hashCode + ((getModeratorArns() == null) ? 0 : getModeratorArns().hashCode()); hashCode = prime * hashCode + ((getElasticChannelConfiguration() == null) ? 0 : getElasticChannelConfiguration().hashCode()); hashCode = prime * hashCode + ((getExpirationSettings() == null) ? 0 : getExpirationSettings().hashCode()); return hashCode; } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof CreateChannelRequest == false) return false; CreateChannelRequest other = (CreateChannelRequest) obj; if (other.getAppInstanceArn() == null ^ this.getAppInstanceArn() == null) return false; if (other.getAppInstanceArn() != null && other.getAppInstanceArn().equals(this.getAppInstanceArn()) == false) return false; if (other.getName() == null ^ this.getName() == null) return false; if (other.getName() != null && other.getName().equals(this.getName()) == false) return false; if (other.getMode() == null ^ this.getMode() == null) return false; if (other.getMode() != null && other.getMode().equals(this.getMode()) == false) return false; if (other.getPrivacy() == null ^ this.getPrivacy() == null) return false; if (other.getPrivacy() != null && other.getPrivacy().equals(this.getPrivacy()) == false) return false; if (other.getMetadata() == null ^ this.getMetadata() == null) return false; if (other.getMetadata() != null && other.getMetadata().equals(this.getMetadata()) == false) return false; if (other.getClientRequestToken() == null ^ this.getClientRequestToken() == null) return false; if (other.getClientRequestToken() != null && other.getClientRequestToken().equals(this.getClientRequestToken()) == false) return false; if (other.getTags() == null ^ this.getTags() == null) return false; if (other.getTags() != null && other.getTags().equals(this.getTags()) == false) return false; if (other.getChimeBearer() == null ^ this.getChimeBearer() == null) return false; if (other.getChimeBearer() != null && other.getChimeBearer().equals(this.getChimeBearer()) == false) return false; if (other.getChannelId() == null ^ this.getChannelId() == null) return false; if (other.getChannelId() != null && other.getChannelId().equals(this.getChannelId()) == false) return false; if (other.getMemberArns() == null ^ this.getMemberArns() == null) return false; if (other.getMemberArns() != null && other.getMemberArns().equals(this.getMemberArns()) == false) return false; if (other.getModeratorArns() == null ^ this.getModeratorArns() == null) return false; if (other.getModeratorArns() != null && other.getModeratorArns().equals(this.getModeratorArns()) == false) return false; if (other.getElasticChannelConfiguration() == null ^ this.getElasticChannelConfiguration() == null) return false; if (other.getElasticChannelConfiguration() != null && other.getElasticChannelConfiguration().equals( this.getElasticChannelConfiguration()) == false) return false; if (other.getExpirationSettings() == null ^ this.getExpirationSettings() == null) return false; if (other.getExpirationSettings() != null && other.getExpirationSettings().equals(this.getExpirationSettings()) == false) return false; return true; } }