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