@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getCustomRedirectDomain() == null) ? 0 : getCustomRedirectDomain().hashCode()); return hashCode; }
@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; }
/** * 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 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; }
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 + ((getCustomRedirectDomain() == null) ? 0 : getCustomRedirectDomain().hashCode()); return hashCode; }
@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; } }
/** * 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 (getCustomRedirectDomain() != null) sb.append("CustomRedirectDomain: " + getCustomRedirectDomain()); sb.append("}"); return sb.toString(); }
public void marshall(TrackingOptions _trackingOptions, Request<?> request, String _prefix) { String prefix; if (_trackingOptions.getCustomRedirectDomain() != null) { prefix = _prefix + "CustomRedirectDomain"; String customRedirectDomain = _trackingOptions.getCustomRedirectDomain(); request.addParameter(prefix, StringUtils.fromString(customRedirectDomain)); } }
@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; }
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getCustomRedirectDomain() == null) ? 0 : getCustomRedirectDomain().hashCode()); return hashCode; }
/** * 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 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; }
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; }