@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getEndpointArn() == null) ? 0 : getEndpointArn().hashCode()); return hashCode; }
/** * <p> * EndpointArn for GetEndpointAttributes input. * </p> * * @param endpointArn * EndpointArn for GetEndpointAttributes input. * @return Returns a reference to this object so that method calls can be chained together. */ public GetEndpointAttributesRequest withEndpointArn(String endpointArn) { setEndpointArn(endpointArn); return this; }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof GetEndpointAttributesRequest == false) return false; GetEndpointAttributesRequest other = (GetEndpointAttributesRequest) obj; if (other.getEndpointArn() == null ^ this.getEndpointArn() == null) return false; if (other.getEndpointArn() != null && other.getEndpointArn().equals(this.getEndpointArn()) == 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 (getEndpointArn() != null) sb.append("EndpointArn: ").append(getEndpointArn()); sb.append("}"); return sb.toString(); }
public Request<GetEndpointAttributesRequest> marshall(GetEndpointAttributesRequest getEndpointAttributesRequest) { if (getEndpointAttributesRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } Request<GetEndpointAttributesRequest> request = new DefaultRequest<GetEndpointAttributesRequest>(getEndpointAttributesRequest, "AmazonSNS"); request.addParameter("Action", "GetEndpointAttributes"); request.addParameter("Version", "2010-03-31"); request.setHttpMethod(HttpMethodName.POST); if (getEndpointAttributesRequest.getEndpointArn() != null) { request.addParameter("EndpointArn", StringUtils.fromString(getEndpointAttributesRequest.getEndpointArn())); } return request; }
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getEndpointArn() == null) ? 0 : getEndpointArn().hashCode()); return hashCode; }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof GetEndpointAttributesRequest == false) return false; GetEndpointAttributesRequest other = (GetEndpointAttributesRequest) obj; if (other.getEndpointArn() == null ^ this.getEndpointArn() == null) return false; if (other.getEndpointArn() != null && other.getEndpointArn().equals(this.getEndpointArn()) == 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 (getEndpointArn() != null) sb.append("EndpointArn: " + getEndpointArn()); sb.append("}"); return sb.toString(); }
public Request<GetEndpointAttributesRequest> marshall( GetEndpointAttributesRequest getEndpointAttributesRequest) { if (getEndpointAttributesRequest == null) { throw new AmazonClientException( "Invalid argument passed to marshall(GetEndpointAttributesRequest)"); } Request<GetEndpointAttributesRequest> request = new DefaultRequest<GetEndpointAttributesRequest>( getEndpointAttributesRequest, "AmazonSNS"); request.addParameter("Action", "GetEndpointAttributes"); request.addParameter("Version", "2010-03-31"); String prefix; if (getEndpointAttributesRequest.getEndpointArn() != null) { prefix = "EndpointArn"; String endpointArn = getEndpointAttributesRequest.getEndpointArn(); request.addParameter(prefix, StringUtils.fromString(endpointArn)); } return request; } }
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getEndpointArn() == null) ? 0 : getEndpointArn().hashCode()); return hashCode; }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof GetEndpointAttributesRequest == false) return false; GetEndpointAttributesRequest other = (GetEndpointAttributesRequest) obj; if (other.getEndpointArn() == null ^ this.getEndpointArn() == null) return false; if (other.getEndpointArn() != null && other.getEndpointArn().equals(this.getEndpointArn()) == 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 (getEndpointArn() != null) sb.append("EndpointArn: " + getEndpointArn()); sb.append("}"); return sb.toString(); }
public Request<GetEndpointAttributesRequest> marshall( GetEndpointAttributesRequest getEndpointAttributesRequest) { if (getEndpointAttributesRequest == null) { throw new AmazonClientException( "Invalid argument passed to marshall(GetEndpointAttributesRequest)"); } Request<GetEndpointAttributesRequest> request = new DefaultRequest<GetEndpointAttributesRequest>( getEndpointAttributesRequest, "AmazonSNS"); request.addParameter("Action", "GetEndpointAttributes"); request.addParameter("Version", "2010-03-31"); String prefix; if (getEndpointAttributesRequest.getEndpointArn() != null) { prefix = "EndpointArn"; String endpointArn = getEndpointAttributesRequest.getEndpointArn(); request.addParameter(prefix, StringUtils.fromString(endpointArn)); } return request; } }