* The OptOutListArn that the phone number was removed from. *
*/ private String optOutListArn; /** ** The OptOutListName that the phone number was removed from. *
*/ private String optOutListName; /** ** The phone number that was added to the OptOutList. *
*/ private String optedOutNumber; /** ** The time that the phone number was added to the OptOutList, in UNIX * epoch time format. *
*/ private java.util.Date optedOutTimestamp; /** ** This is true if it was the end user who requested their phone number be removed. *
*/ private Boolean endUserOptedOut; /** ** The OptOutListArn that the phone number was removed from. *
* * @param optOutListArn * The OptOutListArn that the phone number was removed from. */ public void setOptOutListArn(String optOutListArn) { this.optOutListArn = optOutListArn; } /** ** The OptOutListArn that the phone number was removed from. *
* * @return The OptOutListArn that the phone number was removed from. */ public String getOptOutListArn() { return this.optOutListArn; } /** ** The OptOutListArn that the phone number was removed from. *
* * @param optOutListArn * The OptOutListArn that the phone number was removed from. * @return Returns a reference to this object so that method calls can be chained together. */ public PutOptedOutNumberResult withOptOutListArn(String optOutListArn) { setOptOutListArn(optOutListArn); return this; } /** ** The OptOutListName that the phone number was removed from. *
* * @param optOutListName * The OptOutListName that the phone number was removed from. */ public void setOptOutListName(String optOutListName) { this.optOutListName = optOutListName; } /** ** The OptOutListName that the phone number was removed from. *
* * @return The OptOutListName that the phone number was removed from. */ public String getOptOutListName() { return this.optOutListName; } /** ** The OptOutListName that the phone number was removed from. *
* * @param optOutListName * The OptOutListName that the phone number was removed from. * @return Returns a reference to this object so that method calls can be chained together. */ public PutOptedOutNumberResult withOptOutListName(String optOutListName) { setOptOutListName(optOutListName); return this; } /** ** The phone number that was added to the OptOutList. *
* * @param optedOutNumber * The phone number that was added to the OptOutList. */ public void setOptedOutNumber(String optedOutNumber) { this.optedOutNumber = optedOutNumber; } /** ** The phone number that was added to the OptOutList. *
* * @return The phone number that was added to the OptOutList. */ public String getOptedOutNumber() { return this.optedOutNumber; } /** ** The phone number that was added to the OptOutList. *
* * @param optedOutNumber * The phone number that was added to the OptOutList. * @return Returns a reference to this object so that method calls can be chained together. */ public PutOptedOutNumberResult withOptedOutNumber(String optedOutNumber) { setOptedOutNumber(optedOutNumber); return this; } /** ** The time that the phone number was added to the OptOutList, in UNIX * epoch time format. *
* * @param optedOutTimestamp * The time that the phone number was added to the OptOutList, in UNIX epoch time format. */ public void setOptedOutTimestamp(java.util.Date optedOutTimestamp) { this.optedOutTimestamp = optedOutTimestamp; } /** ** The time that the phone number was added to the OptOutList, in UNIX * epoch time format. *
* * @return The time that the phone number was added to the OptOutList, in UNIX epoch time format. */ public java.util.Date getOptedOutTimestamp() { return this.optedOutTimestamp; } /** ** The time that the phone number was added to the OptOutList, in UNIX * epoch time format. *
* * @param optedOutTimestamp * The time that the phone number was added to the OptOutList, in UNIX epoch time format. * @return Returns a reference to this object so that method calls can be chained together. */ public PutOptedOutNumberResult withOptedOutTimestamp(java.util.Date optedOutTimestamp) { setOptedOutTimestamp(optedOutTimestamp); return this; } /** ** This is true if it was the end user who requested their phone number be removed. *
* * @param endUserOptedOut * This is true if it was the end user who requested their phone number be removed. */ public void setEndUserOptedOut(Boolean endUserOptedOut) { this.endUserOptedOut = endUserOptedOut; } /** ** This is true if it was the end user who requested their phone number be removed. *
* * @return This is true if it was the end user who requested their phone number be removed. */ public Boolean getEndUserOptedOut() { return this.endUserOptedOut; } /** ** This is true if it was the end user who requested their phone number be removed. *
* * @param endUserOptedOut * This is true if it was the end user who requested their phone number be removed. * @return Returns a reference to this object so that method calls can be chained together. */ public PutOptedOutNumberResult withEndUserOptedOut(Boolean endUserOptedOut) { setEndUserOptedOut(endUserOptedOut); return this; } /** ** This is true if it was the end user who requested their phone number be removed. *
* * @return This is true if it was the end user who requested their phone number be removed. */ public Boolean isEndUserOptedOut() { return this.endUserOptedOut; } /** * 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 (getOptOutListArn() != null) sb.append("OptOutListArn: ").append(getOptOutListArn()).append(","); if (getOptOutListName() != null) sb.append("OptOutListName: ").append(getOptOutListName()).append(","); if (getOptedOutNumber() != null) sb.append("OptedOutNumber: ").append(getOptedOutNumber()).append(","); if (getOptedOutTimestamp() != null) sb.append("OptedOutTimestamp: ").append(getOptedOutTimestamp()).append(","); if (getEndUserOptedOut() != null) sb.append("EndUserOptedOut: ").append(getEndUserOptedOut()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof PutOptedOutNumberResult == false) return false; PutOptedOutNumberResult other = (PutOptedOutNumberResult) obj; if (other.getOptOutListArn() == null ^ this.getOptOutListArn() == null) return false; if (other.getOptOutListArn() != null && other.getOptOutListArn().equals(this.getOptOutListArn()) == false) return false; if (other.getOptOutListName() == null ^ this.getOptOutListName() == null) return false; if (other.getOptOutListName() != null && other.getOptOutListName().equals(this.getOptOutListName()) == false) return false; if (other.getOptedOutNumber() == null ^ this.getOptedOutNumber() == null) return false; if (other.getOptedOutNumber() != null && other.getOptedOutNumber().equals(this.getOptedOutNumber()) == false) return false; if (other.getOptedOutTimestamp() == null ^ this.getOptedOutTimestamp() == null) return false; if (other.getOptedOutTimestamp() != null && other.getOptedOutTimestamp().equals(this.getOptedOutTimestamp()) == false) return false; if (other.getEndUserOptedOut() == null ^ this.getEndUserOptedOut() == null) return false; if (other.getEndUserOptedOut() != null && other.getEndUserOptedOut().equals(this.getEndUserOptedOut()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getOptOutListArn() == null) ? 0 : getOptOutListArn().hashCode()); hashCode = prime * hashCode + ((getOptOutListName() == null) ? 0 : getOptOutListName().hashCode()); hashCode = prime * hashCode + ((getOptedOutNumber() == null) ? 0 : getOptedOutNumber().hashCode()); hashCode = prime * hashCode + ((getOptedOutTimestamp() == null) ? 0 : getOptedOutTimestamp().hashCode()); hashCode = prime * hashCode + ((getEndUserOptedOut() == null) ? 0 : getEndUserOptedOut().hashCode()); return hashCode; } @Override public PutOptedOutNumberResult clone() { try { return (PutOptedOutNumberResult) super.clone(); } catch (CloneNotSupportedException e) { throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e); } } }