@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 DeleteTopicRequest == false) return false; DeleteTopicRequest other = (DeleteTopicRequest) 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. 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<DeleteTopicRequest> marshall(DeleteTopicRequest deleteTopicRequest) { if (deleteTopicRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } Request<DeleteTopicRequest> request = new DefaultRequest<DeleteTopicRequest>(deleteTopicRequest, "AmazonSNS"); request.addParameter("Action", "DeleteTopic"); request.addParameter("Version", "2010-03-31"); request.setHttpMethod(HttpMethodName.POST); if (deleteTopicRequest.getTopicArn() != null) { request.addParameter("TopicArn", StringUtils.fromString(deleteTopicRequest.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 DeleteTopicRequest == false) return false; DeleteTopicRequest other = (DeleteTopicRequest) 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<DeleteTopicRequest> marshall(DeleteTopicRequest deleteTopicRequest) { if (deleteTopicRequest == null) { throw new AmazonClientException( "Invalid argument passed to marshall(DeleteTopicRequest)"); } Request<DeleteTopicRequest> request = new DefaultRequest<DeleteTopicRequest>( deleteTopicRequest, "AmazonSNS"); request.addParameter("Action", "DeleteTopic"); request.addParameter("Version", "2010-03-31"); String prefix; if (deleteTopicRequest.getTopicArn() != null) { prefix = "TopicArn"; String topicArn = deleteTopicRequest.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 DeleteTopicRequest == false) return false; DeleteTopicRequest other = (DeleteTopicRequest) 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<DeleteTopicRequest> marshall(DeleteTopicRequest deleteTopicRequest) { if (deleteTopicRequest == null) { throw new AmazonClientException( "Invalid argument passed to marshall(DeleteTopicRequest)"); } Request<DeleteTopicRequest> request = new DefaultRequest<DeleteTopicRequest>( deleteTopicRequest, "AmazonSNS"); request.addParameter("Action", "DeleteTopic"); request.addParameter("Version", "2010-03-31"); String prefix; if (deleteTopicRequest.getTopicArn() != null) { prefix = "TopicArn"; String topicArn = deleteTopicRequest.getTopicArn(); request.addParameter(prefix, StringUtils.fromString(topicArn)); } return request; } }