@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getUserName() == null) ? 0 : getUserName().hashCode()); hashCode = prime * hashCode + ((getMarker() == null) ? 0 : getMarker().hashCode()); hashCode = prime * hashCode + ((getMaxItems() == null) ? 0 : getMaxItems().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 (getUserName() != null) sb.append("UserName: ").append(getUserName()).append(","); if (getMarker() != null) sb.append("Marker: ").append(getMarker()).append(","); if (getMaxItems() != null) sb.append("MaxItems: ").append(getMaxItems()); sb.append("}"); return sb.toString(); }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof ListAccessKeysRequest == false) return false; ListAccessKeysRequest other = (ListAccessKeysRequest) obj; if (other.getUserName() == null ^ this.getUserName() == null) return false; if (other.getUserName() != null && other.getUserName().equals(this.getUserName()) == false) return false; if (other.getMarker() == null ^ this.getMarker() == null) return false; if (other.getMarker() != null && other.getMarker().equals(this.getMarker()) == false) return false; if (other.getMaxItems() == null ^ this.getMaxItems() == null) return false; if (other.getMaxItems() != null && other.getMaxItems().equals(this.getMaxItems()) == false) return false; return true; }
public Request<ListAccessKeysRequest> marshall(ListAccessKeysRequest listAccessKeysRequest) { if (listAccessKeysRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } Request<ListAccessKeysRequest> request = new DefaultRequest<ListAccessKeysRequest>(listAccessKeysRequest, "AmazonIdentityManagement"); request.addParameter("Action", "ListAccessKeys"); request.addParameter("Version", "2010-05-08"); request.setHttpMethod(HttpMethodName.POST); if (listAccessKeysRequest.getUserName() != null) { request.addParameter("UserName", StringUtils.fromString(listAccessKeysRequest.getUserName())); } if (listAccessKeysRequest.getMarker() != null) { request.addParameter("Marker", StringUtils.fromString(listAccessKeysRequest.getMarker())); } if (listAccessKeysRequest.getMaxItems() != null) { request.addParameter("MaxItems", StringUtils.fromInteger(listAccessKeysRequest.getMaxItems())); } return request; }
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getUserName() == null) ? 0 : getUserName().hashCode()); hashCode = prime * hashCode + ((getMarker() == null) ? 0 : getMarker().hashCode()); hashCode = prime * hashCode + ((getMaxItems() == null) ? 0 : getMaxItems().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 (getUserName() != null) sb.append("UserName: ").append(getUserName()).append(","); if (getMarker() != null) sb.append("Marker: ").append(getMarker()).append(","); if (getMaxItems() != null) sb.append("MaxItems: ").append(getMaxItems()); sb.append("}"); return sb.toString(); }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof ListAccessKeysRequest == false) return false; ListAccessKeysRequest other = (ListAccessKeysRequest) obj; if (other.getUserName() == null ^ this.getUserName() == null) return false; if (other.getUserName() != null && other.getUserName().equals(this.getUserName()) == false) return false; if (other.getMarker() == null ^ this.getMarker() == null) return false; if (other.getMarker() != null && other.getMarker().equals(this.getMarker()) == false) return false; if (other.getMaxItems() == null ^ this.getMaxItems() == null) return false; if (other.getMaxItems() != null && other.getMaxItems().equals(this.getMaxItems()) == false) return false; return true; }
public Request<ListAccessKeysRequest> marshall(ListAccessKeysRequest listAccessKeysRequest) { if (listAccessKeysRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } Request<ListAccessKeysRequest> request = new DefaultRequest<ListAccessKeysRequest>(listAccessKeysRequest, "AmazonIdentityManagement"); request.addParameter("Action", "ListAccessKeys"); request.addParameter("Version", "2010-05-08"); request.setHttpMethod(HttpMethodName.POST); if (listAccessKeysRequest.getUserName() != null) { request.addParameter("UserName", StringUtils.fromString(listAccessKeysRequest.getUserName())); } if (listAccessKeysRequest.getMarker() != null) { request.addParameter("Marker", StringUtils.fromString(listAccessKeysRequest.getMarker())); } if (listAccessKeysRequest.getMaxItems() != null) { request.addParameter("MaxItems", StringUtils.fromInteger(listAccessKeysRequest.getMaxItems())); } return request; }