@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof ListQueuesRequest == false) return false; ListQueuesRequest other = (ListQueuesRequest) obj; if (other.getQueueNamePrefix() == null ^ this.getQueueNamePrefix() == null) return false; if (other.getQueueNamePrefix() != null && other.getQueueNamePrefix().equals(this.getQueueNamePrefix()) == false) return false; return true; }
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getQueueNamePrefix() == null) ? 0 : getQueueNamePrefix().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 (getQueueNamePrefix() != null) sb.append("QueueNamePrefix: ").append(getQueueNamePrefix()); sb.append("}"); return sb.toString(); }
public Request<ListQueuesRequest> marshall(ListQueuesRequest listQueuesRequest) { if (listQueuesRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } Request<ListQueuesRequest> request = new DefaultRequest<ListQueuesRequest>(listQueuesRequest, "AmazonSQS"); request.addParameter("Action", "ListQueues"); request.addParameter("Version", "2012-11-05"); request.setHttpMethod(HttpMethodName.POST); if (listQueuesRequest.getQueueNamePrefix() != null) { request.addParameter("QueueNamePrefix", StringUtils.fromString(listQueuesRequest.getQueueNamePrefix())); } return request; }
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getQueueNamePrefix() == null) ? 0 : getQueueNamePrefix().hashCode()); return hashCode; }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof ListQueuesRequest == false) return false; ListQueuesRequest other = (ListQueuesRequest) obj; if (other.getQueueNamePrefix() == null ^ this.getQueueNamePrefix() == null) return false; if (other.getQueueNamePrefix() != null && other.getQueueNamePrefix().equals(this.getQueueNamePrefix()) == 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 (getQueueNamePrefix() != null) sb.append("QueueNamePrefix: " + getQueueNamePrefix()); sb.append("}"); return sb.toString(); }
public Request<ListQueuesRequest> marshall(ListQueuesRequest listQueuesRequest) { if (listQueuesRequest == null) { throw new AmazonClientException( "Invalid argument passed to marshall(ListQueuesRequest)"); } Request<ListQueuesRequest> request = new DefaultRequest<ListQueuesRequest>( listQueuesRequest, "AmazonSQS"); request.addParameter("Action", "ListQueues"); request.addParameter("Version", "2012-11-05"); String prefix; if (listQueuesRequest.getQueueNamePrefix() != null) { prefix = "QueueNamePrefix"; String queueNamePrefix = listQueuesRequest.getQueueNamePrefix(); request.addParameter(prefix, StringUtils.fromString(queueNamePrefix)); } return request; } }
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getQueueNamePrefix() == null) ? 0 : getQueueNamePrefix().hashCode()); return hashCode; }
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getQueueNamePrefix() == null) ? 0 : getQueueNamePrefix().hashCode()); return hashCode; }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof ListQueuesRequest == false) return false; ListQueuesRequest other = (ListQueuesRequest) obj; if (other.getQueueNamePrefix() == null ^ this.getQueueNamePrefix() == null) return false; if (other.getQueueNamePrefix() != null && other.getQueueNamePrefix().equals(this.getQueueNamePrefix()) == false) return false; return true; }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof ListQueuesRequest == false) return false; ListQueuesRequest other = (ListQueuesRequest) obj; if (other.getQueueNamePrefix() == null ^ this.getQueueNamePrefix() == null) return false; if (other.getQueueNamePrefix() != null && other.getQueueNamePrefix().equals(this.getQueueNamePrefix()) == 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 (getQueueNamePrefix() != null) sb.append("QueueNamePrefix: " + getQueueNamePrefix()); sb.append("}"); return sb.toString(); }
/** * 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 (getQueueNamePrefix() != null) sb.append("QueueNamePrefix: ").append(getQueueNamePrefix()); sb.append("}"); return sb.toString(); }
public Request<ListQueuesRequest> marshall(ListQueuesRequest listQueuesRequest) { if (listQueuesRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } Request<ListQueuesRequest> request = new DefaultRequest<ListQueuesRequest>(listQueuesRequest, "AmazonSQS"); request.addParameter("Action", "ListQueues"); request.addParameter("Version", "2012-11-05"); request.setHttpMethod(HttpMethodName.POST); if (listQueuesRequest.getQueueNamePrefix() != null) { request.addParameter("QueueNamePrefix", StringUtils.fromString(listQueuesRequest.getQueueNamePrefix())); } return request; }
public Request<ListQueuesRequest> marshall(ListQueuesRequest listQueuesRequest) { if (listQueuesRequest == null) { throw new AmazonClientException( "Invalid argument passed to marshall(ListQueuesRequest)"); } Request<ListQueuesRequest> request = new DefaultRequest<ListQueuesRequest>( listQueuesRequest, "AmazonSQS"); request.addParameter("Action", "ListQueues"); request.addParameter("Version", "2012-11-05"); String prefix; if (listQueuesRequest.getQueueNamePrefix() != null) { prefix = "QueueNamePrefix"; String queueNamePrefix = listQueuesRequest.getQueueNamePrefix(); request.addParameter(prefix, StringUtils.fromString(queueNamePrefix)); } return request; } }