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