@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getTopicArn() == null) ? 0 : getTopicArn().hashCode()); hashCode = prime * hashCode + ((getEncoding() == null) ? 0 : getEncoding().hashCode()); return hashCode; }
/** * <p> * The encoding to use for the email within the Amazon SNS notification. UTF-8 is easier to use, but may not * preserve all special characters when a message was encoded with a different encoding format. Base64 preserves all * special characters. The default value is UTF-8. * </p> * * @param encoding * The encoding to use for the email within the Amazon SNS notification. UTF-8 is easier to use, but may not * preserve all special characters when a message was encoded with a different encoding format. Base64 * preserves all special characters. The default value is UTF-8. * @return Returns a reference to this object so that method calls can be chained together. * @see SNSActionEncoding */ public SNSAction withEncoding(String encoding) { setEncoding(encoding); return this; }
/** * <p> * The Amazon Resource Name (ARN) of the Amazon SNS topic to notify. An example of an Amazon SNS topic ARN is * <code>arn:aws:sns:us-west-2:123456789012:MyTopic</code>. For more information about Amazon SNS topics, see the <a * href="http://docs.aws.amazon.com/sns/latest/dg/CreateTopic.html">Amazon SNS Developer Guide</a>. * </p> * * @param topicArn * The Amazon Resource Name (ARN) of the Amazon SNS topic to notify. An example of an Amazon SNS topic ARN is * <code>arn:aws:sns:us-west-2:123456789012:MyTopic</code>. For more information about Amazon SNS topics, see * the <a href="http://docs.aws.amazon.com/sns/latest/dg/CreateTopic.html">Amazon SNS Developer Guide</a>. * @return Returns a reference to this object so that method calls can be chained together. */ public SNSAction withTopicArn(String topicArn) { setTopicArn(topicArn); return this; }
public SNSAction unmarshall(StaxUnmarshallerContext context) throws Exception { SNSAction sNSAction = new SNSAction(); int originalDepth = context.getCurrentDepth(); int targetDepth = originalDepth + 1; if (context.isStartOfDocument()) targetDepth += 1; while (true) { XMLEvent xmlEvent = context.nextEvent(); if (xmlEvent.isEndDocument()) return sNSAction; if (xmlEvent.isAttribute() || xmlEvent.isStartElement()) { if (context.testExpression("TopicArn", targetDepth)) { sNSAction.setTopicArn(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("Encoding", targetDepth)) { sNSAction.setEncoding(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; } } else if (xmlEvent.isEndElement()) { if (context.getCurrentDepth() < originalDepth) { return sNSAction; } } } }
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getS3Action() == null) ? 0 : getS3Action().hashCode()); hashCode = prime * hashCode + ((getBounceAction() == null) ? 0 : getBounceAction().hashCode()); hashCode = prime * hashCode + ((getWorkmailAction() == null) ? 0 : getWorkmailAction().hashCode()); hashCode = prime * hashCode + ((getLambdaAction() == null) ? 0 : getLambdaAction().hashCode()); hashCode = prime * hashCode + ((getStopAction() == null) ? 0 : getStopAction().hashCode()); hashCode = prime * hashCode + ((getAddHeaderAction() == null) ? 0 : getAddHeaderAction().hashCode()); hashCode = prime * hashCode + ((getSNSAction() == null) ? 0 : getSNSAction().hashCode()); return hashCode; }
if (other.getSNSAction() == null ^ this.getSNSAction() == null) return false; if (other.getSNSAction() != null && other.getSNSAction().equals(this.getSNSAction()) == false) return false; return true;
/** * <p> * The encoding to use for the email within the Amazon SNS notification. UTF-8 is easier to use, but may not * preserve all special characters when a message was encoded with a different encoding format. Base64 preserves all * special characters. The default value is UTF-8. * </p> * * @param encoding * The encoding to use for the email within the Amazon SNS notification. UTF-8 is easier to use, but may not * preserve all special characters when a message was encoded with a different encoding format. Base64 * preserves all special characters. The default value is UTF-8. * @see SNSActionEncoding */ public void setEncoding(SNSActionEncoding encoding) { withEncoding(encoding); }
public SNSAction unmarshall(StaxUnmarshallerContext context) throws Exception { SNSAction sNSAction = new SNSAction(); int originalDepth = context.getCurrentDepth(); int targetDepth = originalDepth + 1; if (context.isStartOfDocument()) targetDepth += 2; while (true) { int xmlEvent = context.nextEvent(); if (xmlEvent == XmlPullParser.END_DOCUMENT) break; if (xmlEvent == XmlPullParser.START_TAG) { if (context.testExpression("TopicArn", targetDepth)) { sNSAction.setTopicArn(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("Encoding", targetDepth)) { sNSAction.setEncoding(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; } } else if (xmlEvent == XmlPullParser.END_TAG) { if (context.getCurrentDepth() < originalDepth) { break; } } } return sNSAction; }
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getS3Action() == null) ? 0 : getS3Action().hashCode()); hashCode = prime * hashCode + ((getBounceAction() == null) ? 0 : getBounceAction().hashCode()); hashCode = prime * hashCode + ((getWorkmailAction() == null) ? 0 : getWorkmailAction().hashCode()); hashCode = prime * hashCode + ((getLambdaAction() == null) ? 0 : getLambdaAction().hashCode()); hashCode = prime * hashCode + ((getStopAction() == null) ? 0 : getStopAction().hashCode()); hashCode = prime * hashCode + ((getAddHeaderAction() == null) ? 0 : getAddHeaderAction().hashCode()); hashCode = prime * hashCode + ((getSNSAction() == null) ? 0 : getSNSAction().hashCode()); return hashCode; }
return false; if (other.getSNSAction() != null && other.getSNSAction().equals(this.getSNSAction()) == false) return false; return true;
/** * <p> * The encoding to use for the email within the Amazon SNS notification. UTF-8 is easier to use, but may not * preserve all special characters when a message was encoded with a different encoding format. Base64 preserves all * special characters. The default value is UTF-8. * </p> * * @param encoding * The encoding to use for the email within the Amazon SNS notification. UTF-8 is easier to use, but may not * preserve all special characters when a message was encoded with a different encoding format. Base64 * preserves all special characters. The default value is UTF-8. * @see SNSActionEncoding */ public void setEncoding(SNSActionEncoding encoding) { withEncoding(encoding); }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof SNSAction == false) return false; SNSAction other = (SNSAction) obj; if (other.getTopicArn() == null ^ this.getTopicArn() == null) return false; if (other.getTopicArn() != null && other.getTopicArn().equals(this.getTopicArn()) == false) return false; if (other.getEncoding() == null ^ this.getEncoding() == null) return false; if (other.getEncoding() != null && other.getEncoding().equals(this.getEncoding()) == false) return false; return true; }
public SNSAction unmarshall(StaxUnmarshallerContext context) throws Exception { SNSAction sNSAction = new SNSAction(); int originalDepth = context.getCurrentDepth(); int targetDepth = originalDepth + 1; if (context.isStartOfDocument()) targetDepth += 1; while (true) { XMLEvent xmlEvent = context.nextEvent(); if (xmlEvent.isEndDocument()) return sNSAction; if (xmlEvent.isAttribute() || xmlEvent.isStartElement()) { if (context.testExpression("TopicArn", targetDepth)) { sNSAction.setTopicArn(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("Encoding", targetDepth)) { sNSAction.setEncoding(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; } } else if (xmlEvent.isEndElement()) { if (context.getCurrentDepth() < originalDepth) { return sNSAction; } } } }
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getS3Action() == null) ? 0 : getS3Action().hashCode()); hashCode = prime * hashCode + ((getBounceAction() == null) ? 0 : getBounceAction().hashCode()); hashCode = prime * hashCode + ((getWorkmailAction() == null) ? 0 : getWorkmailAction().hashCode()); hashCode = prime * hashCode + ((getLambdaAction() == null) ? 0 : getLambdaAction().hashCode()); hashCode = prime * hashCode + ((getStopAction() == null) ? 0 : getStopAction().hashCode()); hashCode = prime * hashCode + ((getAddHeaderAction() == null) ? 0 : getAddHeaderAction().hashCode()); hashCode = prime * hashCode + ((getSNSAction() == null) ? 0 : getSNSAction().hashCode()); return hashCode; }
if (other.getSNSAction() == null ^ this.getSNSAction() == null) return false; if (other.getSNSAction() != null && other.getSNSAction().equals(this.getSNSAction()) == false) return false; return true;
/** * <p> * The Amazon Resource Name (ARN) of the Amazon SNS topic to notify. An example of an Amazon SNS topic ARN is * <code>arn:aws:sns:us-west-2:123456789012:MyTopic</code>. For more information about Amazon SNS topics, see the <a * href="http://docs.aws.amazon.com/sns/latest/dg/CreateTopic.html">Amazon SNS Developer Guide</a>. * </p> * * @param topicArn * The Amazon Resource Name (ARN) of the Amazon SNS topic to notify. An example of an Amazon SNS topic ARN is * <code>arn:aws:sns:us-west-2:123456789012:MyTopic</code>. For more information about Amazon SNS topics, see * the <a href="http://docs.aws.amazon.com/sns/latest/dg/CreateTopic.html">Amazon SNS Developer Guide</a>. * @return Returns a reference to this object so that method calls can be chained together. */ public SNSAction withTopicArn(String topicArn) { setTopicArn(topicArn); return this; }
/** * <p> * The encoding to use for the email within the Amazon SNS notification. UTF-8 is easier to use, but may not * preserve all special characters when a message was encoded with a different encoding format. Base64 preserves all * special characters. The default value is UTF-8. * </p> * * @param encoding * The encoding to use for the email within the Amazon SNS notification. UTF-8 is easier to use, but may not * preserve all special characters when a message was encoded with a different encoding format. Base64 * preserves all special characters. The default value is UTF-8. * @return Returns a reference to this object so that method calls can be chained together. * @see SNSActionEncoding */ public SNSAction withEncoding(String encoding) { setEncoding(encoding); 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 (getTopicArn() != null) sb.append("TopicArn: ").append(getTopicArn()).append(","); if (getEncoding() != null) sb.append("Encoding: ").append(getEncoding()); sb.append("}"); return sb.toString(); }
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getTopicArn() == null) ? 0 : getTopicArn().hashCode()); hashCode = prime * hashCode + ((getEncoding() == null) ? 0 : getEncoding().hashCode()); return hashCode; }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof SNSAction == false) return false; SNSAction other = (SNSAction) obj; if (other.getTopicArn() == null ^ this.getTopicArn() == null) return false; if (other.getTopicArn() != null && other.getTopicArn().equals(this.getTopicArn()) == false) return false; if (other.getEncoding() == null ^ this.getEncoding() == null) return false; if (other.getEncoding() != null && other.getEncoding().equals(this.getEncoding()) == false) return false; return true; } }