@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getSelectExpression() == null) ? 0 : getSelectExpression().hashCode()); hashCode = prime * hashCode + ((getNextToken() == null) ? 0 : getNextToken().hashCode()); hashCode = prime * hashCode + ((getConsistentRead() == null) ? 0 : getConsistentRead().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 (getSelectExpression() != null) sb.append("SelectExpression: ").append(getSelectExpression()).append(","); if (getNextToken() != null) sb.append("NextToken: ").append(getNextToken()).append(","); if (getConsistentRead() != null) sb.append("ConsistentRead: ").append(getConsistentRead()); sb.append("}"); return sb.toString(); }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof SelectRequest == false) return false; SelectRequest other = (SelectRequest) obj; if (other.getSelectExpression() == null ^ this.getSelectExpression() == null) return false; if (other.getSelectExpression() != null && other.getSelectExpression().equals(this.getSelectExpression()) == false) return false; if (other.getNextToken() == null ^ this.getNextToken() == null) return false; if (other.getNextToken() != null && other.getNextToken().equals(this.getNextToken()) == false) return false; if (other.getConsistentRead() == null ^ this.getConsistentRead() == null) return false; if (other.getConsistentRead() != null && other.getConsistentRead().equals(this.getConsistentRead()) == false) return false; return true; }
public Request<SelectRequest> marshall(SelectRequest selectRequest) { if (selectRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } Request<SelectRequest> request = new DefaultRequest<SelectRequest>(selectRequest, "AmazonSimpleDB"); request.addParameter("Action", "Select"); request.addParameter("Version", "2009-04-15"); request.setHttpMethod(HttpMethodName.POST); if (selectRequest.getSelectExpression() != null) { request.addParameter("SelectExpression", StringUtils.fromString(selectRequest.getSelectExpression())); } if (selectRequest.getNextToken() != null) { request.addParameter("NextToken", StringUtils.fromString(selectRequest.getNextToken())); } if (selectRequest.getConsistentRead() != null) { request.addParameter("ConsistentRead", StringUtils.fromBoolean(selectRequest.getConsistentRead())); } return request; }
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getSelectExpression() == null) ? 0 : getSelectExpression().hashCode()); hashCode = prime * hashCode + ((getNextToken() == null) ? 0 : getNextToken().hashCode()); hashCode = prime * hashCode + ((getConsistentRead() == null) ? 0 : getConsistentRead().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 (getSelectExpression() != null) sb.append("SelectExpression: ").append(getSelectExpression()).append(","); if (getNextToken() != null) sb.append("NextToken: ").append(getNextToken()).append(","); if (getConsistentRead() != null) sb.append("ConsistentRead: ").append(getConsistentRead()); sb.append("}"); return sb.toString(); }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof SelectRequest == false) return false; SelectRequest other = (SelectRequest) obj; if (other.getSelectExpression() == null ^ this.getSelectExpression() == null) return false; if (other.getSelectExpression() != null && other.getSelectExpression().equals(this.getSelectExpression()) == false) return false; if (other.getNextToken() == null ^ this.getNextToken() == null) return false; if (other.getNextToken() != null && other.getNextToken().equals(this.getNextToken()) == false) return false; if (other.getConsistentRead() == null ^ this.getConsistentRead() == null) return false; if (other.getConsistentRead() != null && other.getConsistentRead().equals(this.getConsistentRead()) == false) return false; return true; }
public Request<SelectRequest> marshall(SelectRequest selectRequest) { if (selectRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } Request<SelectRequest> request = new DefaultRequest<SelectRequest>(selectRequest, "AmazonSimpleDB"); request.addParameter("Action", "Select"); request.addParameter("Version", "2009-04-15"); request.setHttpMethod(HttpMethodName.POST); if (selectRequest.getSelectExpression() != null) { request.addParameter("SelectExpression", StringUtils.fromString(selectRequest.getSelectExpression())); } if (selectRequest.getNextToken() != null) { request.addParameter("NextToken", StringUtils.fromString(selectRequest.getNextToken())); } if (selectRequest.getConsistentRead() != null) { request.addParameter("ConsistentRead", StringUtils.fromBoolean(selectRequest.getConsistentRead())); } return request; }