* The SNS topic that records Firewall Manager activity. *
*/ private String snsTopicArn; /** ** The IAM role that is used by Firewall Manager to record activity to SNS. *
*/ private String snsRoleName; /** ** The SNS topic that records Firewall Manager activity. *
* * @param snsTopicArn * The SNS topic that records Firewall Manager activity. */ public void setSnsTopicArn(String snsTopicArn) { this.snsTopicArn = snsTopicArn; } /** ** The SNS topic that records Firewall Manager activity. *
* * @return The SNS topic that records Firewall Manager activity. */ public String getSnsTopicArn() { return this.snsTopicArn; } /** ** The SNS topic that records Firewall Manager activity. *
* * @param snsTopicArn * The SNS topic that records Firewall Manager activity. * @return Returns a reference to this object so that method calls can be chained together. */ public GetNotificationChannelResult withSnsTopicArn(String snsTopicArn) { setSnsTopicArn(snsTopicArn); return this; } /** ** The IAM role that is used by Firewall Manager to record activity to SNS. *
* * @param snsRoleName * The IAM role that is used by Firewall Manager to record activity to SNS. */ public void setSnsRoleName(String snsRoleName) { this.snsRoleName = snsRoleName; } /** ** The IAM role that is used by Firewall Manager to record activity to SNS. *
* * @return The IAM role that is used by Firewall Manager to record activity to SNS. */ public String getSnsRoleName() { return this.snsRoleName; } /** ** The IAM role that is used by Firewall Manager to record activity to SNS. *
* * @param snsRoleName * The IAM role that is used by Firewall Manager to record activity to SNS. * @return Returns a reference to this object so that method calls can be chained together. */ public GetNotificationChannelResult withSnsRoleName(String snsRoleName) { setSnsRoleName(snsRoleName); 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 (getSnsTopicArn() != null) sb.append("SnsTopicArn: ").append(getSnsTopicArn()).append(","); if (getSnsRoleName() != null) sb.append("SnsRoleName: ").append(getSnsRoleName()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof GetNotificationChannelResult == false) return false; GetNotificationChannelResult other = (GetNotificationChannelResult) obj; if (other.getSnsTopicArn() == null ^ this.getSnsTopicArn() == null) return false; if (other.getSnsTopicArn() != null && other.getSnsTopicArn().equals(this.getSnsTopicArn()) == false) return false; if (other.getSnsRoleName() == null ^ this.getSnsRoleName() == null) return false; if (other.getSnsRoleName() != null && other.getSnsRoleName().equals(this.getSnsRoleName()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getSnsTopicArn() == null) ? 0 : getSnsTopicArn().hashCode()); hashCode = prime * hashCode + ((getSnsRoleName() == null) ? 0 : getSnsRoleName().hashCode()); return hashCode; } @Override public GetNotificationChannelResult clone() { try { return (GetNotificationChannelResult) super.clone(); } catch (CloneNotSupportedException e) { throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e); } } }