@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; }
/** * <p> * The name of the configuration set that the tracking options should be associated with. * </p> * * @param configurationSetName * The name of the configuration set that the tracking options should be associated with. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateConfigurationSetTrackingOptionsRequest withConfigurationSetName(String configurationSetName) { setConfigurationSetName(configurationSetName); return this; }
/** * @param trackingOptions * @return Returns a reference to this object so that method calls can be chained together. */ public CreateConfigurationSetTrackingOptionsRequest withTrackingOptions(TrackingOptions trackingOptions) { setTrackingOptions(trackingOptions); 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; }
/** * @param trackingOptions * @return Returns a reference to this object so that method calls can be chained together. */ public CreateConfigurationSetTrackingOptionsRequest withTrackingOptions(TrackingOptions trackingOptions) { setTrackingOptions(trackingOptions); return this; }
/** * <p> * The name of the configuration set that the tracking options should be associated with. * </p> * * @param configurationSetName * The name of the configuration set that the tracking options should be associated with. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateConfigurationSetTrackingOptionsRequest withConfigurationSetName(String configurationSetName) { setConfigurationSetName(configurationSetName); 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 (getConfigurationSetName() != null) sb.append("ConfigurationSetName: ").append(getConfigurationSetName()).append(","); if (getTrackingOptions() != null) sb.append("TrackingOptions: ").append(getTrackingOptions()); 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; }
@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; } }
/** * 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 (getConfigurationSetName() != null) sb.append("ConfigurationSetName: " + getConfigurationSetName() + ","); if (getTrackingOptions() != null) sb.append("TrackingOptions: " + getTrackingOptions()); sb.append("}"); return sb.toString(); }
public Request<CreateConfigurationSetTrackingOptionsRequest> marshall( CreateConfigurationSetTrackingOptionsRequest createConfigurationSetTrackingOptionsRequest) { if (createConfigurationSetTrackingOptionsRequest == null) { throw new AmazonClientException( "Invalid argument passed to marshall(CreateConfigurationSetTrackingOptionsRequest)"); } Request<CreateConfigurationSetTrackingOptionsRequest> request = new DefaultRequest<CreateConfigurationSetTrackingOptionsRequest>( createConfigurationSetTrackingOptionsRequest, "AmazonSimpleEmailService"); request.addParameter("Action", "CreateConfigurationSetTrackingOptions"); request.addParameter("Version", "2010-12-01"); String prefix; if (createConfigurationSetTrackingOptionsRequest.getConfigurationSetName() != null) { prefix = "ConfigurationSetName"; String configurationSetName = createConfigurationSetTrackingOptionsRequest .getConfigurationSetName(); request.addParameter(prefix, StringUtils.fromString(configurationSetName)); } if (createConfigurationSetTrackingOptionsRequest.getTrackingOptions() != null) { prefix = "TrackingOptions"; TrackingOptions trackingOptions = createConfigurationSetTrackingOptionsRequest .getTrackingOptions(); TrackingOptionsStaxMarshaller.getInstance().marshall(trackingOptions, request, prefix + "."); } 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; }
/** * 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 (getConfigurationSetName() != null) sb.append("ConfigurationSetName: ").append(getConfigurationSetName()).append(","); if (getTrackingOptions() != null) sb.append("TrackingOptions: ").append(getTrackingOptions()); 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; }