public WorkmailAction unmarshall(StaxUnmarshallerContext context) throws Exception { WorkmailAction workmailAction = new WorkmailAction(); int originalDepth = context.getCurrentDepth(); int targetDepth = originalDepth + 1; if (context.isStartOfDocument()) targetDepth += 1; while (true) { XMLEvent xmlEvent = context.nextEvent(); if (xmlEvent.isEndDocument()) return workmailAction; if (xmlEvent.isAttribute() || xmlEvent.isStartElement()) { if (context.testExpression("TopicArn", targetDepth)) { workmailAction.setTopicArn(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("OrganizationArn", targetDepth)) { workmailAction.setOrganizationArn(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; } } else if (xmlEvent.isEndElement()) { if (context.getCurrentDepth() < originalDepth) { return workmailAction; } } } }
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getTopicArn() == null) ? 0 : getTopicArn().hashCode()); hashCode = prime * hashCode + ((getOrganizationArn() == null) ? 0 : getOrganizationArn().hashCode()); return hashCode; }
@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.getWorkmailAction() == null ^ this.getWorkmailAction() == null) return false; if (other.getWorkmailAction() != null && other.getWorkmailAction().equals(this.getWorkmailAction()) == false) return false; if (other.getLambdaAction() == null ^ this.getLambdaAction() == null)
/** * <p> * The Amazon Resource Name (ARN) of the Amazon SNS topic to notify when the WorkMail action is called. 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 WorkMail action is called. 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 WorkmailAction withTopicArn(String topicArn) { setTopicArn(topicArn); return this; }
/** * <p> * The ARN of the Amazon WorkMail organization. An example of an Amazon WorkMail organization ARN is * <code>arn:aws:workmail:us-west-2:123456789012:organization/m-68755160c4cb4e29a2b2f8fb58f359d7</code>. For * information about Amazon WorkMail organizations, see the <a * href="http://docs.aws.amazon.com/workmail/latest/adminguide/organizations_overview.html">Amazon WorkMail * Administrator Guide</a>. * </p> * * @param organizationArn * The ARN of the Amazon WorkMail organization. An example of an Amazon WorkMail organization ARN is * <code>arn:aws:workmail:us-west-2:123456789012:organization/m-68755160c4cb4e29a2b2f8fb58f359d7</code>. For * information about Amazon WorkMail organizations, see the <a * href="http://docs.aws.amazon.com/workmail/latest/adminguide/organizations_overview.html">Amazon WorkMail * Administrator Guide</a>. * @return Returns a reference to this object so that method calls can be chained together. */ public WorkmailAction withOrganizationArn(String organizationArn) { setOrganizationArn(organizationArn); return this; }
@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.getWorkmailAction() != null && other.getWorkmailAction().equals(this.getWorkmailAction()) == false) return false; if (other.getLambdaAction() == null ^ this.getLambdaAction() == null)
/** * <p> * The Amazon Resource Name (ARN) of the Amazon SNS topic to notify when the WorkMail action is called. 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 WorkMail action is called. 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 WorkmailAction withTopicArn(String topicArn) { setTopicArn(topicArn); return this; }
/** * <p> * The ARN of the Amazon WorkMail organization. An example of an Amazon WorkMail organization ARN is * <code>arn:aws:workmail:us-west-2:123456789012:organization/m-68755160c4cb4e29a2b2f8fb58f359d7</code>. For * information about Amazon WorkMail organizations, see the <a * href="http://docs.aws.amazon.com/workmail/latest/adminguide/organizations_overview.html">Amazon WorkMail * Administrator Guide</a>. * </p> * * @param organizationArn * The ARN of the Amazon WorkMail organization. An example of an Amazon WorkMail organization ARN is * <code>arn:aws:workmail:us-west-2:123456789012:organization/m-68755160c4cb4e29a2b2f8fb58f359d7</code>. For * information about Amazon WorkMail organizations, see the <a * href="http://docs.aws.amazon.com/workmail/latest/adminguide/organizations_overview.html">Amazon WorkMail * Administrator Guide</a>. * @return Returns a reference to this object so that method calls can be chained together. */ public WorkmailAction withOrganizationArn(String organizationArn) { setOrganizationArn(organizationArn); return this; }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof WorkmailAction == false) return false; WorkmailAction other = (WorkmailAction) obj; if (other.getTopicArn() == null ^ this.getTopicArn() == null) return false; if (other.getTopicArn() != null && other.getTopicArn().equals(this.getTopicArn()) == false) return false; if (other.getOrganizationArn() == null ^ this.getOrganizationArn() == null) return false; if (other.getOrganizationArn() != null && other.getOrganizationArn().equals(this.getOrganizationArn()) == false) return false; return true; }
public WorkmailAction unmarshall(StaxUnmarshallerContext context) throws Exception { WorkmailAction workmailAction = new WorkmailAction(); 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)) { workmailAction.setTopicArn(StringStaxUnmarshaller.getInstance().unmarshall( context)); continue; } if (context.testExpression("OrganizationArn", targetDepth)) { workmailAction.setOrganizationArn(StringStaxUnmarshaller.getInstance() .unmarshall(context)); continue; } } else if (xmlEvent == XmlPullParser.END_TAG) { if (context.getCurrentDepth() < originalDepth) { break; } } } return workmailAction; }
@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.getWorkmailAction() == null ^ this.getWorkmailAction() == null) return false; if (other.getWorkmailAction() != null && other.getWorkmailAction().equals(this.getWorkmailAction()) == false) return false; if (other.getLambdaAction() == null ^ this.getLambdaAction() == null)
/** * 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 (getOrganizationArn() != null) sb.append("OrganizationArn: ").append(getOrganizationArn()); sb.append("}"); return sb.toString(); }
public WorkmailAction unmarshall(StaxUnmarshallerContext context) throws Exception { WorkmailAction workmailAction = new WorkmailAction(); int originalDepth = context.getCurrentDepth(); int targetDepth = originalDepth + 1; if (context.isStartOfDocument()) targetDepth += 1; while (true) { XMLEvent xmlEvent = context.nextEvent(); if (xmlEvent.isEndDocument()) return workmailAction; if (xmlEvent.isAttribute() || xmlEvent.isStartElement()) { if (context.testExpression("TopicArn", targetDepth)) { workmailAction.setTopicArn(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("OrganizationArn", targetDepth)) { workmailAction.setOrganizationArn(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; } } else if (xmlEvent.isEndElement()) { if (context.getCurrentDepth() < originalDepth) { return workmailAction; } } } }
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getTopicArn() == null) ? 0 : getTopicArn().hashCode()); hashCode = prime * hashCode + ((getOrganizationArn() == null) ? 0 : getOrganizationArn().hashCode()); return hashCode; }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof WorkmailAction == false) return false; WorkmailAction other = (WorkmailAction) obj; if (other.getTopicArn() == null ^ this.getTopicArn() == null) return false; if (other.getTopicArn() != null && other.getTopicArn().equals(this.getTopicArn()) == false) return false; if (other.getOrganizationArn() == null ^ this.getOrganizationArn() == null) return false; if (other.getOrganizationArn() != null && other.getOrganizationArn().equals(this.getOrganizationArn()) == false) return false; return true; } }
/** * Returns a string representation of this object; useful for testing and * debugging. * * @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: " + getTopicArn() + ","); if (getOrganizationArn() != null) sb.append("OrganizationArn: " + getOrganizationArn()); sb.append("}"); return sb.toString(); }
public void marshall(WorkmailAction _workmailAction, Request<?> request, String _prefix) { String prefix; if (_workmailAction.getTopicArn() != null) { prefix = _prefix + "TopicArn"; String topicArn = _workmailAction.getTopicArn(); request.addParameter(prefix, StringUtils.fromString(topicArn)); } if (_workmailAction.getOrganizationArn() != null) { prefix = _prefix + "OrganizationArn"; String organizationArn = _workmailAction.getOrganizationArn(); request.addParameter(prefix, StringUtils.fromString(organizationArn)); } }