@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getBrokerId() == null) ? 0 : getBrokerId().hashCode()); hashCode = prime * hashCode + ((getConsoleAccess() == null) ? 0 : getConsoleAccess().hashCode()); hashCode = prime * hashCode + ((getGroups() == null) ? 0 : getGroups().hashCode()); hashCode = prime * hashCode + ((getPassword() == null) ? 0 : getPassword().hashCode()); hashCode = prime * hashCode + ((getUsername() == null) ? 0 : getUsername().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 (getBrokerId() != null) sb.append("BrokerId: ").append(getBrokerId()).append(","); if (getConsoleAccess() != null) sb.append("ConsoleAccess: ").append(getConsoleAccess()).append(","); if (getGroups() != null) sb.append("Groups: ").append(getGroups()).append(","); if (getPassword() != null) sb.append("Password: ").append(getPassword()).append(","); if (getUsername() != null) sb.append("Username: ").append(getUsername()); sb.append("}"); return sb.toString(); }
return false; CreateUserRequest other = (CreateUserRequest) obj; if (other.getBrokerId() == null ^ this.getBrokerId() == null) return false; if (other.getBrokerId() != null && other.getBrokerId().equals(this.getBrokerId()) == false) return false; if (other.getConsoleAccess() == null ^ this.getConsoleAccess() == null)
/** * Marshall the given parameter object. */ public void marshall(CreateUserRequest createUserRequest, ProtocolMarshaller protocolMarshaller) { if (createUserRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(createUserRequest.getBrokerId(), BROKERID_BINDING); protocolMarshaller.marshall(createUserRequest.getConsoleAccess(), CONSOLEACCESS_BINDING); protocolMarshaller.marshall(createUserRequest.getGroups(), GROUPS_BINDING); protocolMarshaller.marshall(createUserRequest.getPassword(), PASSWORD_BINDING); protocolMarshaller.marshall(createUserRequest.getUsername(), USERNAME_BINDING); } catch (Exception e) { throw new SdkClientException("Unable to marshall request to JSON: " + e.getMessage(), e); } }
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getBrokerId() == null) ? 0 : getBrokerId().hashCode()); hashCode = prime * hashCode + ((getConsoleAccess() == null) ? 0 : getConsoleAccess().hashCode()); hashCode = prime * hashCode + ((getGroups() == null) ? 0 : getGroups().hashCode()); hashCode = prime * hashCode + ((getPassword() == null) ? 0 : getPassword().hashCode()); hashCode = prime * hashCode + ((getUsername() == null) ? 0 : getUsername().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 (getBrokerId() != null) sb.append("BrokerId: ").append(getBrokerId()).append(","); if (getConsoleAccess() != null) sb.append("ConsoleAccess: ").append(getConsoleAccess()).append(","); if (getGroups() != null) sb.append("Groups: ").append(getGroups()).append(","); if (getPassword() != null) sb.append("Password: ").append(getPassword()).append(","); if (getUsername() != null) sb.append("Username: ").append(getUsername()); sb.append("}"); return sb.toString(); }
return false; CreateUserRequest other = (CreateUserRequest) obj; if (other.getBrokerId() == null ^ this.getBrokerId() == null) return false; if (other.getBrokerId() != null && other.getBrokerId().equals(this.getBrokerId()) == false) return false; if (other.getConsoleAccess() == null ^ this.getConsoleAccess() == null)
/** * Marshall the given parameter object. */ public void marshall(CreateUserRequest createUserRequest, ProtocolMarshaller protocolMarshaller) { if (createUserRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(createUserRequest.getBrokerId(), BROKERID_BINDING); protocolMarshaller.marshall(createUserRequest.getConsoleAccess(), CONSOLEACCESS_BINDING); protocolMarshaller.marshall(createUserRequest.getGroups(), GROUPS_BINDING); protocolMarshaller.marshall(createUserRequest.getPassword(), PASSWORD_BINDING); protocolMarshaller.marshall(createUserRequest.getUsername(), USERNAME_BINDING); } catch (Exception e) { throw new SdkClientException("Unable to marshall request to JSON: " + e.getMessage(), e); } }