@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof GetTopicAttributesRequest == false) return false; GetTopicAttributesRequest other = (GetTopicAttributesRequest) obj; if (other.getTopicArn() == null ^ this.getTopicArn() == null) return false; if (other.getTopicArn() != null && other.getTopicArn().equals(this.getTopicArn()) == false) return false; return true; }
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getTopicArn() == null) ? 0 : getTopicArn().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 (getTopicArn() != null) sb.append("TopicArn: ").append(getTopicArn()); sb.append("}"); return sb.toString(); }
public Request<GetTopicAttributesRequest> marshall(GetTopicAttributesRequest getTopicAttributesRequest) { if (getTopicAttributesRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } Request<GetTopicAttributesRequest> request = new DefaultRequest<GetTopicAttributesRequest>(getTopicAttributesRequest, "AmazonSNS"); request.addParameter("Action", "GetTopicAttributes"); request.addParameter("Version", "2010-03-31"); request.setHttpMethod(HttpMethodName.POST); if (getTopicAttributesRequest.getTopicArn() != null) { request.addParameter("TopicArn", StringUtils.fromString(getTopicAttributesRequest.getTopicArn())); } return request; }
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getTopicArn() == null) ? 0 : getTopicArn().hashCode()); return hashCode; }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof GetTopicAttributesRequest == false) return false; GetTopicAttributesRequest other = (GetTopicAttributesRequest) obj; if (other.getTopicArn() == null ^ this.getTopicArn() == null) return false; if (other.getTopicArn() != null && other.getTopicArn().equals(this.getTopicArn()) == 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 (getTopicArn() != null) sb.append("TopicArn: " + getTopicArn()); sb.append("}"); return sb.toString(); }
public Request<GetTopicAttributesRequest> marshall( GetTopicAttributesRequest getTopicAttributesRequest) { if (getTopicAttributesRequest == null) { throw new AmazonClientException( "Invalid argument passed to marshall(GetTopicAttributesRequest)"); } Request<GetTopicAttributesRequest> request = new DefaultRequest<GetTopicAttributesRequest>( getTopicAttributesRequest, "AmazonSNS"); request.addParameter("Action", "GetTopicAttributes"); request.addParameter("Version", "2010-03-31"); String prefix; if (getTopicAttributesRequest.getTopicArn() != null) { prefix = "TopicArn"; String topicArn = getTopicAttributesRequest.getTopicArn(); request.addParameter(prefix, StringUtils.fromString(topicArn)); } return request; } }
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getTopicArn() == null) ? 0 : getTopicArn().hashCode()); return hashCode; }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof GetTopicAttributesRequest == false) return false; GetTopicAttributesRequest other = (GetTopicAttributesRequest) obj; if (other.getTopicArn() == null ^ this.getTopicArn() == null) return false; if (other.getTopicArn() != null && other.getTopicArn().equals(this.getTopicArn()) == 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 (getTopicArn() != null) sb.append("TopicArn: " + getTopicArn()); sb.append("}"); return sb.toString(); }
public Request<GetTopicAttributesRequest> marshall( GetTopicAttributesRequest getTopicAttributesRequest) { if (getTopicAttributesRequest == null) { throw new AmazonClientException( "Invalid argument passed to marshall(GetTopicAttributesRequest)"); } Request<GetTopicAttributesRequest> request = new DefaultRequest<GetTopicAttributesRequest>( getTopicAttributesRequest, "AmazonSNS"); request.addParameter("Action", "GetTopicAttributes"); request.addParameter("Version", "2010-03-31"); String prefix; if (getTopicAttributesRequest.getTopicArn() != null) { prefix = "TopicArn"; String topicArn = getTopicAttributesRequest.getTopicArn(); request.addParameter(prefix, StringUtils.fromString(topicArn)); } return request; } }