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