* The ARN of the channel. *
*/ private String channelArn; /** ** The ARNs of the channel and the moderator. *
*/ private Identity channelModerator; /** ** The ARN of the channel. *
* * @param channelArn * The ARN of the channel. */ public void setChannelArn(String channelArn) { this.channelArn = channelArn; } /** ** The ARN of the channel. *
* * @return The ARN of the channel. */ public String getChannelArn() { return this.channelArn; } /** ** The ARN of the channel. *
* * @param channelArn * The ARN of the channel. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateChannelModeratorResult withChannelArn(String channelArn) { setChannelArn(channelArn); return this; } /** ** The ARNs of the channel and the moderator. *
* * @param channelModerator * The ARNs of the channel and the moderator. */ public void setChannelModerator(Identity channelModerator) { this.channelModerator = channelModerator; } /** ** The ARNs of the channel and the moderator. *
* * @return The ARNs of the channel and the moderator. */ public Identity getChannelModerator() { return this.channelModerator; } /** ** The ARNs of the channel and the moderator. *
* * @param channelModerator * The ARNs of the channel and the moderator. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateChannelModeratorResult withChannelModerator(Identity channelModerator) { setChannelModerator(channelModerator); return this; } /** * Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be * redacted from this string using a placeholder value. * * @return A string representation of this object. * * @see java.lang.Object#toString() */ @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (getChannelArn() != null) sb.append("ChannelArn: ").append(getChannelArn()).append(","); if (getChannelModerator() != null) sb.append("ChannelModerator: ").append(getChannelModerator()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof CreateChannelModeratorResult == false) return false; CreateChannelModeratorResult other = (CreateChannelModeratorResult) obj; if (other.getChannelArn() == null ^ this.getChannelArn() == null) return false; if (other.getChannelArn() != null && other.getChannelArn().equals(this.getChannelArn()) == false) return false; if (other.getChannelModerator() == null ^ this.getChannelModerator() == null) return false; if (other.getChannelModerator() != null && other.getChannelModerator().equals(this.getChannelModerator()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getChannelArn() == null) ? 0 : getChannelArn().hashCode()); hashCode = prime * hashCode + ((getChannelModerator() == null) ? 0 : getChannelModerator().hashCode()); return hashCode; } @Override public CreateChannelModeratorResult clone() { try { return (CreateChannelModeratorResult) super.clone(); } catch (CloneNotSupportedException e) { throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e); } } }