* The ARN of the contact that the channel belongs to. *
*/ private String contactArn; /** ** The ARN of the contact channel. *
*/ private String contactChannelArn; /** ** The name of the contact channel *
*/ private String name; /** *
* The type of contact channel. The type is SMS
, VOICE
, or EMAIL
.
*
* The details that Incident Manager uses when trying to engage the contact channel. *
*/ private ContactChannelAddress deliveryAddress; /** ** A Boolean value indicating if the contact channel has been activated or not. *
*/ private String activationStatus; /** ** The ARN of the contact that the channel belongs to. *
* * @param contactArn * The ARN of the contact that the channel belongs to. */ public void setContactArn(String contactArn) { this.contactArn = contactArn; } /** ** The ARN of the contact that the channel belongs to. *
* * @return The ARN of the contact that the channel belongs to. */ public String getContactArn() { return this.contactArn; } /** ** The ARN of the contact that the channel belongs to. *
* * @param contactArn * The ARN of the contact that the channel belongs to. * @return Returns a reference to this object so that method calls can be chained together. */ public GetContactChannelResult withContactArn(String contactArn) { setContactArn(contactArn); return this; } /** ** The ARN of the contact channel. *
* * @param contactChannelArn * The ARN of the contact channel. */ public void setContactChannelArn(String contactChannelArn) { this.contactChannelArn = contactChannelArn; } /** ** The ARN of the contact channel. *
* * @return The ARN of the contact channel. */ public String getContactChannelArn() { return this.contactChannelArn; } /** ** The ARN of the contact channel. *
* * @param contactChannelArn * The ARN of the contact channel. * @return Returns a reference to this object so that method calls can be chained together. */ public GetContactChannelResult withContactChannelArn(String contactChannelArn) { setContactChannelArn(contactChannelArn); return this; } /** ** The name of the contact channel *
* * @param name * The name of the contact channel */ public void setName(String name) { this.name = name; } /** ** The name of the contact channel *
* * @return The name of the contact channel */ public String getName() { return this.name; } /** ** The name of the contact channel *
* * @param name * The name of the contact channel * @return Returns a reference to this object so that method calls can be chained together. */ public GetContactChannelResult withName(String name) { setName(name); return this; } /** *
* The type of contact channel. The type is SMS
, VOICE
, or EMAIL
.
*
SMS
, VOICE
, or EMAIL
.
* @see ChannelType
*/
public void setType(String type) {
this.type = type;
}
/**
*
* The type of contact channel. The type is SMS
, VOICE
, or EMAIL
.
*
SMS
, VOICE
, or EMAIL
.
* @see ChannelType
*/
public String getType() {
return this.type;
}
/**
*
* The type of contact channel. The type is SMS
, VOICE
, or EMAIL
.
*
SMS
, VOICE
, or EMAIL
.
* @return Returns a reference to this object so that method calls can be chained together.
* @see ChannelType
*/
public GetContactChannelResult withType(String type) {
setType(type);
return this;
}
/**
*
* The type of contact channel. The type is SMS
, VOICE
, or EMAIL
.
*
SMS
, VOICE
, or EMAIL
.
* @return Returns a reference to this object so that method calls can be chained together.
* @see ChannelType
*/
public GetContactChannelResult withType(ChannelType type) {
this.type = type.toString();
return this;
}
/**
* * The details that Incident Manager uses when trying to engage the contact channel. *
* * @param deliveryAddress * The details that Incident Manager uses when trying to engage the contact channel. */ public void setDeliveryAddress(ContactChannelAddress deliveryAddress) { this.deliveryAddress = deliveryAddress; } /** ** The details that Incident Manager uses when trying to engage the contact channel. *
* * @return The details that Incident Manager uses when trying to engage the contact channel. */ public ContactChannelAddress getDeliveryAddress() { return this.deliveryAddress; } /** ** The details that Incident Manager uses when trying to engage the contact channel. *
* * @param deliveryAddress * The details that Incident Manager uses when trying to engage the contact channel. * @return Returns a reference to this object so that method calls can be chained together. */ public GetContactChannelResult withDeliveryAddress(ContactChannelAddress deliveryAddress) { setDeliveryAddress(deliveryAddress); return this; } /** ** A Boolean value indicating if the contact channel has been activated or not. *
* * @param activationStatus * A Boolean value indicating if the contact channel has been activated or not. * @see ActivationStatus */ public void setActivationStatus(String activationStatus) { this.activationStatus = activationStatus; } /** ** A Boolean value indicating if the contact channel has been activated or not. *
* * @return A Boolean value indicating if the contact channel has been activated or not. * @see ActivationStatus */ public String getActivationStatus() { return this.activationStatus; } /** ** A Boolean value indicating if the contact channel has been activated or not. *
* * @param activationStatus * A Boolean value indicating if the contact channel has been activated or not. * @return Returns a reference to this object so that method calls can be chained together. * @see ActivationStatus */ public GetContactChannelResult withActivationStatus(String activationStatus) { setActivationStatus(activationStatus); return this; } /** ** A Boolean value indicating if the contact channel has been activated or not. *
* * @param activationStatus * A Boolean value indicating if the contact channel has been activated or not. * @return Returns a reference to this object so that method calls can be chained together. * @see ActivationStatus */ public GetContactChannelResult withActivationStatus(ActivationStatus activationStatus) { this.activationStatus = activationStatus.toString(); 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 (getContactArn() != null) sb.append("ContactArn: ").append(getContactArn()).append(","); if (getContactChannelArn() != null) sb.append("ContactChannelArn: ").append(getContactChannelArn()).append(","); if (getName() != null) sb.append("Name: ").append(getName()).append(","); if (getType() != null) sb.append("Type: ").append(getType()).append(","); if (getDeliveryAddress() != null) sb.append("DeliveryAddress: ").append(getDeliveryAddress()).append(","); if (getActivationStatus() != null) sb.append("ActivationStatus: ").append(getActivationStatus()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof GetContactChannelResult == false) return false; GetContactChannelResult other = (GetContactChannelResult) obj; if (other.getContactArn() == null ^ this.getContactArn() == null) return false; if (other.getContactArn() != null && other.getContactArn().equals(this.getContactArn()) == false) return false; if (other.getContactChannelArn() == null ^ this.getContactChannelArn() == null) return false; if (other.getContactChannelArn() != null && other.getContactChannelArn().equals(this.getContactChannelArn()) == 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.getType() == null ^ this.getType() == null) return false; if (other.getType() != null && other.getType().equals(this.getType()) == false) return false; if (other.getDeliveryAddress() == null ^ this.getDeliveryAddress() == null) return false; if (other.getDeliveryAddress() != null && other.getDeliveryAddress().equals(this.getDeliveryAddress()) == false) return false; if (other.getActivationStatus() == null ^ this.getActivationStatus() == null) return false; if (other.getActivationStatus() != null && other.getActivationStatus().equals(this.getActivationStatus()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getContactArn() == null) ? 0 : getContactArn().hashCode()); hashCode = prime * hashCode + ((getContactChannelArn() == null) ? 0 : getContactChannelArn().hashCode()); hashCode = prime * hashCode + ((getName() == null) ? 0 : getName().hashCode()); hashCode = prime * hashCode + ((getType() == null) ? 0 : getType().hashCode()); hashCode = prime * hashCode + ((getDeliveryAddress() == null) ? 0 : getDeliveryAddress().hashCode()); hashCode = prime * hashCode + ((getActivationStatus() == null) ? 0 : getActivationStatus().hashCode()); return hashCode; } @Override public GetContactChannelResult clone() { try { return (GetContactChannelResult) super.clone(); } catch (CloneNotSupportedException e) { throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e); } } }