public TrackingOptions unmarshall(StaxUnmarshallerContext context) throws Exception { TrackingOptions trackingOptions = new TrackingOptions(); int originalDepth = context.getCurrentDepth(); int targetDepth = originalDepth + 1; if (context.isStartOfDocument()) targetDepth += 1; while (true) { XMLEvent xmlEvent = context.nextEvent(); if (xmlEvent.isEndDocument()) return trackingOptions; if (xmlEvent.isAttribute() || xmlEvent.isStartElement()) { if (context.testExpression("CustomRedirectDomain", targetDepth)) { trackingOptions.setCustomRedirectDomain(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; } } else if (xmlEvent.isEndElement()) { if (context.getCurrentDepth() < originalDepth) { return trackingOptions; } } } }
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getCustomRedirectDomain() == null) ? 0 : getCustomRedirectDomain().hashCode()); return hashCode; }
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getConfigurationSetName() == null) ? 0 : getConfigurationSetName().hashCode()); hashCode = prime * hashCode + ((getTrackingOptions() == null) ? 0 : getTrackingOptions().hashCode()); return hashCode; }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof UpdateConfigurationSetTrackingOptionsRequest == false) return false; UpdateConfigurationSetTrackingOptionsRequest other = (UpdateConfigurationSetTrackingOptionsRequest) obj; if (other.getConfigurationSetName() == null ^ this.getConfigurationSetName() == null) return false; if (other.getConfigurationSetName() != null && other.getConfigurationSetName().equals(this.getConfigurationSetName()) == false) return false; if (other.getTrackingOptions() == null ^ this.getTrackingOptions() == null) return false; if (other.getTrackingOptions() != null && other.getTrackingOptions().equals(this.getTrackingOptions()) == false) return false; return true; }
/** * <p> * The custom subdomain that will be used to redirect email recipients to the Amazon SES event tracking domain. * </p> * * @param customRedirectDomain * The custom subdomain that will be used to redirect email recipients to the Amazon SES event tracking * domain. * @return Returns a reference to this object so that method calls can be chained together. */ public TrackingOptions withCustomRedirectDomain(String customRedirectDomain) { setCustomRedirectDomain(customRedirectDomain); return this; }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof CreateConfigurationSetTrackingOptionsRequest == false) return false; CreateConfigurationSetTrackingOptionsRequest other = (CreateConfigurationSetTrackingOptionsRequest) obj; if (other.getConfigurationSetName() == null ^ this.getConfigurationSetName() == null) return false; if (other.getConfigurationSetName() != null && other.getConfigurationSetName().equals(this.getConfigurationSetName()) == false) return false; if (other.getTrackingOptions() == null ^ this.getTrackingOptions() == null) return false; if (other.getTrackingOptions() != null && other.getTrackingOptions().equals(this.getTrackingOptions()) == false) return false; return true; }
/** * <p> * The custom subdomain that will be used to redirect email recipients to the Amazon SES event tracking domain. * </p> * * @param customRedirectDomain * The custom subdomain that will be used to redirect email recipients to the Amazon SES event tracking * domain. * @return Returns a reference to this object so that method calls can be chained together. */ public TrackingOptions withCustomRedirectDomain(String customRedirectDomain) { setCustomRedirectDomain(customRedirectDomain); return this; }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof TrackingOptions == false) return false; TrackingOptions other = (TrackingOptions) obj; if (other.getCustomRedirectDomain() == null ^ this.getCustomRedirectDomain() == null) return false; if (other.getCustomRedirectDomain() != null && other.getCustomRedirectDomain().equals(this.getCustomRedirectDomain()) == false) return false; return true; }
public TrackingOptions unmarshall(StaxUnmarshallerContext context) throws Exception { TrackingOptions trackingOptions = new TrackingOptions(); 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("CustomRedirectDomain", targetDepth)) { trackingOptions.setCustomRedirectDomain(StringStaxUnmarshaller.getInstance() .unmarshall(context)); continue; } } else if (xmlEvent == XmlPullParser.END_TAG) { if (context.getCurrentDepth() < originalDepth) { break; } } } return trackingOptions; }
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getConfigurationSetName() == null) ? 0 : getConfigurationSetName().hashCode()); hashCode = prime * hashCode + ((getTrackingOptions() == null) ? 0 : getTrackingOptions().hashCode()); return hashCode; }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof DescribeConfigurationSetResult == false) return false; DescribeConfigurationSetResult other = (DescribeConfigurationSetResult) obj; if (other.getConfigurationSet() == null ^ this.getConfigurationSet() == null) return false; if (other.getConfigurationSet() != null && other.getConfigurationSet().equals(this.getConfigurationSet()) == false) return false; if (other.getEventDestinations() == null ^ this.getEventDestinations() == null) return false; if (other.getEventDestinations() != null && other.getEventDestinations().equals(this.getEventDestinations()) == false) return false; if (other.getTrackingOptions() == null ^ this.getTrackingOptions() == null) return false; if (other.getTrackingOptions() != null && other.getTrackingOptions().equals(this.getTrackingOptions()) == false) return false; if (other.getReputationOptions() == null ^ this.getReputationOptions() == null) return false; if (other.getReputationOptions() != null && other.getReputationOptions().equals(this.getReputationOptions()) == false) return false; return true; }
/** * 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 (getCustomRedirectDomain() != null) sb.append("CustomRedirectDomain: ").append(getCustomRedirectDomain()); sb.append("}"); return sb.toString(); }
public TrackingOptions unmarshall(StaxUnmarshallerContext context) throws Exception { TrackingOptions trackingOptions = new TrackingOptions(); int originalDepth = context.getCurrentDepth(); int targetDepth = originalDepth + 1; if (context.isStartOfDocument()) targetDepth += 1; while (true) { XMLEvent xmlEvent = context.nextEvent(); if (xmlEvent.isEndDocument()) return trackingOptions; if (xmlEvent.isAttribute() || xmlEvent.isStartElement()) { if (context.testExpression("CustomRedirectDomain", targetDepth)) { trackingOptions.setCustomRedirectDomain(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; } } else if (xmlEvent.isEndElement()) { if (context.getCurrentDepth() < originalDepth) { return trackingOptions; } } } }
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getConfigurationSet() == null) ? 0 : getConfigurationSet().hashCode()); hashCode = prime * hashCode + ((getEventDestinations() == null) ? 0 : getEventDestinations().hashCode()); hashCode = prime * hashCode + ((getTrackingOptions() == null) ? 0 : getTrackingOptions().hashCode()); hashCode = prime * hashCode + ((getReputationOptions() == null) ? 0 : getReputationOptions().hashCode()); return hashCode; }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof UpdateConfigurationSetTrackingOptionsRequest == false) return false; UpdateConfigurationSetTrackingOptionsRequest other = (UpdateConfigurationSetTrackingOptionsRequest) obj; if (other.getConfigurationSetName() == null ^ this.getConfigurationSetName() == null) return false; if (other.getConfigurationSetName() != null && other.getConfigurationSetName().equals(this.getConfigurationSetName()) == false) return false; if (other.getTrackingOptions() == null ^ this.getTrackingOptions() == null) return false; if (other.getTrackingOptions() != null && other.getTrackingOptions().equals(this.getTrackingOptions()) == false) return false; return true; } }
public Request<CreateConfigurationSetTrackingOptionsRequest> marshall( CreateConfigurationSetTrackingOptionsRequest createConfigurationSetTrackingOptionsRequest) { if (createConfigurationSetTrackingOptionsRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } Request<CreateConfigurationSetTrackingOptionsRequest> request = new DefaultRequest<CreateConfigurationSetTrackingOptionsRequest>( createConfigurationSetTrackingOptionsRequest, "AmazonSimpleEmailService"); request.addParameter("Action", "CreateConfigurationSetTrackingOptions"); request.addParameter("Version", "2010-12-01"); request.setHttpMethod(HttpMethodName.POST); if (createConfigurationSetTrackingOptionsRequest.getConfigurationSetName() != null) { request.addParameter("ConfigurationSetName", StringUtils.fromString(createConfigurationSetTrackingOptionsRequest.getConfigurationSetName())); } { TrackingOptions trackingOptions = createConfigurationSetTrackingOptionsRequest.getTrackingOptions(); if (trackingOptions != null) { if (trackingOptions.getCustomRedirectDomain() != null) { request.addParameter("TrackingOptions.CustomRedirectDomain", StringUtils.fromString(trackingOptions.getCustomRedirectDomain())); } } } return request; }
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getConfigurationSetName() == null) ? 0 : getConfigurationSetName().hashCode()); hashCode = prime * hashCode + ((getTrackingOptions() == null) ? 0 : getTrackingOptions().hashCode()); return hashCode; }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof CreateConfigurationSetTrackingOptionsRequest == false) return false; CreateConfigurationSetTrackingOptionsRequest other = (CreateConfigurationSetTrackingOptionsRequest) obj; if (other.getConfigurationSetName() == null ^ this.getConfigurationSetName() == null) return false; if (other.getConfigurationSetName() != null && other.getConfigurationSetName().equals(this.getConfigurationSetName()) == false) return false; if (other.getTrackingOptions() == null ^ this.getTrackingOptions() == null) return false; if (other.getTrackingOptions() != null && other.getTrackingOptions().equals(this.getTrackingOptions()) == false) return false; return true; } }
public Request<UpdateConfigurationSetTrackingOptionsRequest> marshall( UpdateConfigurationSetTrackingOptionsRequest updateConfigurationSetTrackingOptionsRequest) { if (updateConfigurationSetTrackingOptionsRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } Request<UpdateConfigurationSetTrackingOptionsRequest> request = new DefaultRequest<UpdateConfigurationSetTrackingOptionsRequest>( updateConfigurationSetTrackingOptionsRequest, "AmazonSimpleEmailService"); request.addParameter("Action", "UpdateConfigurationSetTrackingOptions"); request.addParameter("Version", "2010-12-01"); request.setHttpMethod(HttpMethodName.POST); if (updateConfigurationSetTrackingOptionsRequest.getConfigurationSetName() != null) { request.addParameter("ConfigurationSetName", StringUtils.fromString(updateConfigurationSetTrackingOptionsRequest.getConfigurationSetName())); } { TrackingOptions trackingOptions = updateConfigurationSetTrackingOptionsRequest.getTrackingOptions(); if (trackingOptions != null) { if (trackingOptions.getCustomRedirectDomain() != null) { request.addParameter("TrackingOptions.CustomRedirectDomain", StringUtils.fromString(trackingOptions.getCustomRedirectDomain())); } } } return request; }
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getConfigurationSetName() == null) ? 0 : getConfigurationSetName().hashCode()); hashCode = prime * hashCode + ((getTrackingOptions() == null) ? 0 : getTrackingOptions().hashCode()); return hashCode; }