@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getPlatformApplicationArn() == null) ? 0 : getPlatformApplicationArn().hashCode()); hashCode = prime * hashCode + ((getToken() == null) ? 0 : getToken().hashCode()); hashCode = prime * hashCode + ((getCustomUserData() == null) ? 0 : getCustomUserData().hashCode()); hashCode = prime * hashCode + ((getAttributes() == null) ? 0 : getAttributes().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 (getPlatformApplicationArn() != null) sb.append("PlatformApplicationArn: ").append(getPlatformApplicationArn()).append(","); if (getToken() != null) sb.append("Token: ").append(getToken()).append(","); if (getCustomUserData() != null) sb.append("CustomUserData: ").append(getCustomUserData()).append(","); if (getAttributes() != null) sb.append("Attributes: ").append(getAttributes()); sb.append("}"); return sb.toString(); }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof CreatePlatformEndpointRequest == false) return false; CreatePlatformEndpointRequest other = (CreatePlatformEndpointRequest) obj; if (other.getPlatformApplicationArn() == null ^ this.getPlatformApplicationArn() == null) return false; if (other.getPlatformApplicationArn() != null && other.getPlatformApplicationArn().equals(this.getPlatformApplicationArn()) == false) return false; if (other.getToken() == null ^ this.getToken() == null) return false; if (other.getToken() != null && other.getToken().equals(this.getToken()) == false) return false; if (other.getCustomUserData() == null ^ this.getCustomUserData() == null) return false; if (other.getCustomUserData() != null && other.getCustomUserData().equals(this.getCustomUserData()) == false) return false; if (other.getAttributes() == null ^ this.getAttributes() == null) return false; if (other.getAttributes() != null && other.getAttributes().equals(this.getAttributes()) == false) return false; return true; }
public Request<CreatePlatformEndpointRequest> marshall(CreatePlatformEndpointRequest createPlatformEndpointRequest) { if (createPlatformEndpointRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } Request<CreatePlatformEndpointRequest> request = new DefaultRequest<CreatePlatformEndpointRequest>(createPlatformEndpointRequest, "AmazonSNS"); request.addParameter("Action", "CreatePlatformEndpoint"); request.addParameter("Version", "2010-03-31"); request.setHttpMethod(HttpMethodName.POST); if (createPlatformEndpointRequest.getPlatformApplicationArn() != null) { request.addParameter("PlatformApplicationArn", StringUtils.fromString(createPlatformEndpointRequest.getPlatformApplicationArn())); } if (createPlatformEndpointRequest.getToken() != null) { request.addParameter("Token", StringUtils.fromString(createPlatformEndpointRequest.getToken())); } if (createPlatformEndpointRequest.getCustomUserData() != null) { request.addParameter("CustomUserData", StringUtils.fromString(createPlatformEndpointRequest.getCustomUserData())); } java.util.Map<String, String> attributes = createPlatformEndpointRequest.getAttributes(); int attributesListIndex = 1; for (Map.Entry<String, String> entry : attributes.entrySet()) { if (entry.getKey() != null) { request.addParameter("Attributes.entry." + attributesListIndex + ".key", StringUtils.fromString(entry.getKey())); } if (entry.getValue() != null) { request.addParameter("Attributes.entry." + attributesListIndex + ".value", StringUtils.fromString(entry.getValue())); } attributesListIndex++; } return request; }
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getPlatformApplicationArn() == null) ? 0 : getPlatformApplicationArn() .hashCode()); hashCode = prime * hashCode + ((getToken() == null) ? 0 : getToken().hashCode()); hashCode = prime * hashCode + ((getCustomUserData() == null) ? 0 : getCustomUserData().hashCode()); hashCode = prime * hashCode + ((getAttributes() == null) ? 0 : getAttributes().hashCode()); return hashCode; }
/** * 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 (getPlatformApplicationArn() != null) sb.append("PlatformApplicationArn: " + getPlatformApplicationArn() + ","); if (getToken() != null) sb.append("Token: " + getToken() + ","); if (getCustomUserData() != null) sb.append("CustomUserData: " + getCustomUserData() + ","); if (getAttributes() != null) sb.append("Attributes: " + getAttributes()); sb.append("}"); return sb.toString(); }
&& other.getCustomUserData().equals(this.getCustomUserData()) == false) return false; if (other.getAttributes() == null ^ this.getAttributes() == null) return false; if (other.getAttributes() != null && other.getAttributes().equals(this.getAttributes()) == false) return false; return true;
request.addParameter(prefix, StringUtils.fromString(customUserData)); if (createPlatformEndpointRequest.getAttributes() != null) { prefix = "Attributes"; java.util.Map<String, String> attributes = createPlatformEndpointRequest .getAttributes(); int attributesIndex = 1; String attributesPrefix = prefix + ".entry.";
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getPlatformApplicationArn() == null) ? 0 : getPlatformApplicationArn() .hashCode()); hashCode = prime * hashCode + ((getToken() == null) ? 0 : getToken().hashCode()); hashCode = prime * hashCode + ((getCustomUserData() == null) ? 0 : getCustomUserData().hashCode()); hashCode = prime * hashCode + ((getAttributes() == null) ? 0 : getAttributes().hashCode()); return hashCode; }
/** * 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 (getPlatformApplicationArn() != null) sb.append("PlatformApplicationArn: " + getPlatformApplicationArn() + ","); if (getToken() != null) sb.append("Token: " + getToken() + ","); if (getCustomUserData() != null) sb.append("CustomUserData: " + getCustomUserData() + ","); if (getAttributes() != null) sb.append("Attributes: " + getAttributes()); sb.append("}"); return sb.toString(); }
&& other.getCustomUserData().equals(this.getCustomUserData()) == false) return false; if (other.getAttributes() == null ^ this.getAttributes() == null) return false; if (other.getAttributes() != null && other.getAttributes().equals(this.getAttributes()) == false) return false; return true;
request.addParameter(prefix, StringUtils.fromString(customUserData)); if (createPlatformEndpointRequest.getAttributes() != null) { prefix = "Attributes"; java.util.Map<String, String> attributes = createPlatformEndpointRequest .getAttributes(); int attributesIndex = 1; String attributesPrefix = prefix + ".entry.";