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