@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getScope() == null) ? 0 : getScope().hashCode()); hashCode = prime * hashCode + ((getTopicArn() == null) ? 0 : getTopicArn().hashCode()); return hashCode; }
/** * <p> * The name of the RuleSet that is being stopped. * </p> * * @param scope * The name of the RuleSet that is being stopped. * @return Returns a reference to this object so that method calls can be chained together. * @see StopScope */ public StopAction withScope(String scope) { setScope(scope); return this; }
/** * <p> * The Amazon Resource Name (ARN) of the Amazon SNS topic to notify when the stop action is taken. 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 when the stop action is taken. 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 StopAction withTopicArn(String topicArn) { setTopicArn(topicArn); return this; }
public StopAction unmarshall(StaxUnmarshallerContext context) throws Exception { StopAction stopAction = new StopAction(); int originalDepth = context.getCurrentDepth(); int targetDepth = originalDepth + 1; if (context.isStartOfDocument()) targetDepth += 1; while (true) { XMLEvent xmlEvent = context.nextEvent(); if (xmlEvent.isEndDocument()) return stopAction; if (xmlEvent.isAttribute() || xmlEvent.isStartElement()) { if (context.testExpression("Scope", targetDepth)) { stopAction.setScope(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("TopicArn", targetDepth)) { stopAction.setTopicArn(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; } } else if (xmlEvent.isEndElement()) { if (context.getCurrentDepth() < originalDepth) { return stopAction; } } } }
@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.getStopAction() == null ^ this.getStopAction() == null) return false; if (other.getStopAction() != null && other.getStopAction().equals(this.getStopAction()) == false) return false; if (other.getAddHeaderAction() == null ^ this.getAddHeaderAction() == null)
/** * <p> * The name of the RuleSet that is being stopped. * </p> * * @param scope * The name of the RuleSet that is being stopped. * @see StopScope */ public void setScope(StopScope scope) { withScope(scope); }
public StopAction unmarshall(StaxUnmarshallerContext context) throws Exception { StopAction stopAction = new StopAction(); 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("Scope", targetDepth)) { stopAction.setScope(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("TopicArn", targetDepth)) { stopAction .setTopicArn(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; } } else if (xmlEvent == XmlPullParser.END_TAG) { if (context.getCurrentDepth() < originalDepth) { break; } } } return stopAction; }
@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.getStopAction() != null && other.getStopAction().equals(this.getStopAction()) == false) return false; if (other.getAddHeaderAction() == null ^ this.getAddHeaderAction() == null)
/** * <p> * The name of the RuleSet that is being stopped. * </p> * * @param scope * The name of the RuleSet that is being stopped. * @see StopScope */ public void setScope(StopScope scope) { withScope(scope); }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof StopAction == false) return false; StopAction other = (StopAction) obj; if (other.getScope() == null ^ this.getScope() == null) return false; if (other.getScope() != null && other.getScope().equals(this.getScope()) == false) return false; if (other.getTopicArn() == null ^ this.getTopicArn() == null) return false; if (other.getTopicArn() != null && other.getTopicArn().equals(this.getTopicArn()) == false) return false; return true; }
public StopAction unmarshall(StaxUnmarshallerContext context) throws Exception { StopAction stopAction = new StopAction(); int originalDepth = context.getCurrentDepth(); int targetDepth = originalDepth + 1; if (context.isStartOfDocument()) targetDepth += 1; while (true) { XMLEvent xmlEvent = context.nextEvent(); if (xmlEvent.isEndDocument()) return stopAction; if (xmlEvent.isAttribute() || xmlEvent.isStartElement()) { if (context.testExpression("Scope", targetDepth)) { stopAction.setScope(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("TopicArn", targetDepth)) { stopAction.setTopicArn(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; } } else if (xmlEvent.isEndElement()) { if (context.getCurrentDepth() < originalDepth) { return stopAction; } } } }
@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.getStopAction() == null ^ this.getStopAction() == null) return false; if (other.getStopAction() != null && other.getStopAction().equals(this.getStopAction()) == false) return false; if (other.getAddHeaderAction() == null ^ this.getAddHeaderAction() == null)
/** * <p> * The name of the RuleSet that is being stopped. * </p> * * @param scope * The name of the RuleSet that is being stopped. * @return Returns a reference to this object so that method calls can be chained together. * @see StopScope */ public StopAction withScope(String scope) { setScope(scope); return this; }
/** * <p> * The Amazon Resource Name (ARN) of the Amazon SNS topic to notify when the stop action is taken. 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 when the stop action is taken. 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 StopAction withTopicArn(String topicArn) { setTopicArn(topicArn); 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 (getScope() != null) sb.append("Scope: ").append(getScope()).append(","); if (getTopicArn() != null) sb.append("TopicArn: ").append(getTopicArn()); sb.append("}"); return sb.toString(); }
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getScope() == null) ? 0 : getScope().hashCode()); hashCode = prime * hashCode + ((getTopicArn() == null) ? 0 : getTopicArn().hashCode()); return hashCode; }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof StopAction == false) return false; StopAction other = (StopAction) obj; if (other.getScope() == null ^ this.getScope() == null) return false; if (other.getScope() != null && other.getScope().equals(this.getScope()) == false) return false; if (other.getTopicArn() == null ^ this.getTopicArn() == null) return false; if (other.getTopicArn() != null && other.getTopicArn().equals(this.getTopicArn()) == false) return false; return true; } }