public Request<UpdateUserRequest> marshall(UpdateUserRequest updateUserRequest) { if (updateUserRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } Request<UpdateUserRequest> request = new DefaultRequest<UpdateUserRequest>(updateUserRequest, "AmazonIdentityManagement"); request.addParameter("Action", "UpdateUser"); request.addParameter("Version", "2010-05-08"); request.setHttpMethod(HttpMethodName.POST); if (updateUserRequest.getUserName() != null) { request.addParameter("UserName", StringUtils.fromString(updateUserRequest.getUserName())); } if (updateUserRequest.getNewPath() != null) { request.addParameter("NewPath", StringUtils.fromString(updateUserRequest.getNewPath())); } if (updateUserRequest.getNewUserName() != null) { request.addParameter( "NewUserName", StringUtils.fromString(updateUserRequest.getNewUserName())); } return request; }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof UpdateUserRequest == false) return false; UpdateUserRequest other = (UpdateUserRequest) obj; if (other.getUserName() == null ^ this.getUserName() == null) return false; if (other.getUserName() != null && other.getUserName().equals(this.getUserName()) == false) return false; if (other.getNewPath() == null ^ this.getNewPath() == null) return false; if (other.getNewPath() != null && other.getNewPath().equals(this.getNewPath()) == false) return false; if (other.getNewUserName() == null ^ this.getNewUserName() == null) return false; if (other.getNewUserName() != null && other.getNewUserName().equals(this.getNewUserName()) == false) return false; return true; }