@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getConsoleAccess() == null) ? 0 : getConsoleAccess().hashCode()); hashCode = prime * hashCode + ((getGroups() == null) ? 0 : getGroups().hashCode()); hashCode = prime * hashCode + ((getPendingChange() == null) ? 0 : getPendingChange().hashCode()); return hashCode; }
/** * Enables access to the the ActiveMQ Web Console for the ActiveMQ user. * * @param consoleAccess * Enables access to the the ActiveMQ Web Console for the ActiveMQ user. * @return Returns a reference to this object so that method calls can be chained together. */ public UserPendingChanges withConsoleAccess(Boolean consoleAccess) { setConsoleAccess(consoleAccess); return this; }
/** * The list of groups (20 maximum) to which the ActiveMQ user belongs. This value can contain only alphanumeric * characters, dashes, periods, underscores, and tildes (- . _ ~). This value must be 2-100 characters long. * * @param groups * The list of groups (20 maximum) to which the ActiveMQ user belongs. This value can contain only * alphanumeric characters, dashes, periods, underscores, and tildes (- . _ ~). This value must be 2-100 * characters long. * @return Returns a reference to this object so that method calls can be chained together. */ public UserPendingChanges withGroups(java.util.Collection<String> groups) { setGroups(groups); return this; }
public UserPendingChanges unmarshall(JsonUnmarshallerContext context) throws Exception { UserPendingChanges userPendingChanges = new UserPendingChanges(); if (context.testExpression("consoleAccess", targetDepth)) { context.nextToken(); userPendingChanges.setConsoleAccess(context.getUnmarshaller(Boolean.class).unmarshall(context)); userPendingChanges.setGroups(new ListUnmarshaller<String>(context.getUnmarshaller(String.class)).unmarshall(context)); userPendingChanges.setPendingChange(context.getUnmarshaller(String.class).unmarshall(context));
/** * Required. The type of change pending for the ActiveMQ user. * * @param pendingChange * Required. The type of change pending for the ActiveMQ user. * @return Returns a reference to this object so that method calls can be chained together. * @see ChangeType */ public UserPendingChanges withPendingChange(String pendingChange) { setPendingChange(pendingChange); return this; }
@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 + ((getPending() == null) ? 0 : getPending().hashCode()); hashCode = prime * hashCode + ((getUsername() == null) ? 0 : getUsername().hashCode()); return hashCode; }
if (other.getPending() == null ^ this.getPending() == null) return false; if (other.getPending() != null && other.getPending().equals(this.getPending()) == false) return false; if (other.getUsername() == null ^ this.getUsername() == null)
public UserPendingChanges unmarshall(JsonUnmarshallerContext context) throws Exception { UserPendingChanges userPendingChanges = new UserPendingChanges(); if (context.testExpression("consoleAccess", targetDepth)) { context.nextToken(); userPendingChanges.setConsoleAccess(context.getUnmarshaller(Boolean.class).unmarshall(context)); userPendingChanges.setGroups(new ListUnmarshaller<String>(context.getUnmarshaller(String.class)).unmarshall(context)); userPendingChanges.setPendingChange(context.getUnmarshaller(String.class).unmarshall(context));
/** * Required. The type of change pending for the ActiveMQ user. * * @param pendingChange * Required. The type of change pending for the ActiveMQ user. * @return Returns a reference to this object so that method calls can be chained together. * @see ChangeType */ public UserPendingChanges withPendingChange(String pendingChange) { setPendingChange(pendingChange); return this; }
@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 + ((getPending() == null) ? 0 : getPending().hashCode()); hashCode = prime * hashCode + ((getUsername() == null) ? 0 : getUsername().hashCode()); return hashCode; }
if (other.getPending() == null ^ this.getPending() == null) return false; if (other.getPending() != null && other.getPending().equals(this.getPending()) == false) return false; if (other.getUsername() == null ^ this.getUsername() == null)
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof UserPendingChanges == false) return false; UserPendingChanges other = (UserPendingChanges) obj; if (other.getConsoleAccess() == null ^ this.getConsoleAccess() == null) return false; if (other.getConsoleAccess() != null && other.getConsoleAccess().equals(this.getConsoleAccess()) == false) return false; if (other.getGroups() == null ^ this.getGroups() == null) return false; if (other.getGroups() != null && other.getGroups().equals(this.getGroups()) == false) return false; if (other.getPendingChange() == null ^ this.getPendingChange() == null) return false; if (other.getPendingChange() != null && other.getPendingChange().equals(this.getPendingChange()) == false) return false; return true; }
/** * The list of groups (20 maximum) to which the ActiveMQ user belongs. This value can contain only alphanumeric * characters, dashes, periods, underscores, and tildes (- . _ ~). This value must be 2-100 characters long. * <p> * <b>NOTE:</b> This method appends the values to the existing list (if any). Use * {@link #setGroups(java.util.Collection)} or {@link #withGroups(java.util.Collection)} if you want to override the * existing values. * </p> * * @param groups * The list of groups (20 maximum) to which the ActiveMQ user belongs. This value can contain only * alphanumeric characters, dashes, periods, underscores, and tildes (- . _ ~). This value must be 2-100 * characters long. * @return Returns a reference to this object so that method calls can be chained together. */ public UserPendingChanges withGroups(String... groups) { if (this.groups == null) { setGroups(new java.util.ArrayList<String>(groups.length)); } for (String ele : groups) { this.groups.add(ele); } return this; }
/** * Enables access to the the ActiveMQ Web Console for the ActiveMQ user. * * @param consoleAccess * Enables access to the the ActiveMQ Web Console for the ActiveMQ user. * @return Returns a reference to this object so that method calls can be chained together. */ public UserPendingChanges withConsoleAccess(Boolean consoleAccess) { setConsoleAccess(consoleAccess); return this; }
/** * 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 (getConsoleAccess() != null) sb.append("ConsoleAccess: ").append(getConsoleAccess()).append(","); if (getGroups() != null) sb.append("Groups: ").append(getGroups()).append(","); if (getPendingChange() != null) sb.append("PendingChange: ").append(getPendingChange()); sb.append("}"); return sb.toString(); }
/** * The list of groups (20 maximum) to which the ActiveMQ user belongs. This value can contain only alphanumeric * characters, dashes, periods, underscores, and tildes (- . _ ~). This value must be 2-100 characters long. * * @param groups * The list of groups (20 maximum) to which the ActiveMQ user belongs. This value can contain only * alphanumeric characters, dashes, periods, underscores, and tildes (- . _ ~). This value must be 2-100 * characters long. * @return Returns a reference to this object so that method calls can be chained together. */ public UserPendingChanges withGroups(java.util.Collection<String> groups) { setGroups(groups); return this; }
/** * Marshall the given parameter object. */ public void marshall(UserPendingChanges userPendingChanges, ProtocolMarshaller protocolMarshaller) { if (userPendingChanges == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(userPendingChanges.getConsoleAccess(), CONSOLEACCESS_BINDING); protocolMarshaller.marshall(userPendingChanges.getGroups(), GROUPS_BINDING); protocolMarshaller.marshall(userPendingChanges.getPendingChange(), PENDINGCHANGE_BINDING); } catch (Exception e) { throw new SdkClientException("Unable to marshall request to JSON: " + e.getMessage(), e); } }
/** * The list of groups (20 maximum) to which the ActiveMQ user belongs. This value can contain only alphanumeric * characters, dashes, periods, underscores, and tildes (- . _ ~). This value must be 2-100 characters long. * <p> * <b>NOTE:</b> This method appends the values to the existing list (if any). Use * {@link #setGroups(java.util.Collection)} or {@link #withGroups(java.util.Collection)} if you want to override the * existing values. * </p> * * @param groups * The list of groups (20 maximum) to which the ActiveMQ user belongs. This value can contain only * alphanumeric characters, dashes, periods, underscores, and tildes (- . _ ~). This value must be 2-100 * characters long. * @return Returns a reference to this object so that method calls can be chained together. */ public UserPendingChanges withGroups(String... groups) { if (this.groups == null) { setGroups(new java.util.ArrayList<String>(groups.length)); } for (String ele : groups) { this.groups.add(ele); } return this; }
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getConsoleAccess() == null) ? 0 : getConsoleAccess().hashCode()); hashCode = prime * hashCode + ((getGroups() == null) ? 0 : getGroups().hashCode()); hashCode = prime * hashCode + ((getPendingChange() == null) ? 0 : getPendingChange().hashCode()); return hashCode; }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof UserPendingChanges == false) return false; UserPendingChanges other = (UserPendingChanges) obj; if (other.getConsoleAccess() == null ^ this.getConsoleAccess() == null) return false; if (other.getConsoleAccess() != null && other.getConsoleAccess().equals(this.getConsoleAccess()) == false) return false; if (other.getGroups() == null ^ this.getGroups() == null) return false; if (other.getGroups() != null && other.getGroups().equals(this.getGroups()) == false) return false; if (other.getPendingChange() == null ^ this.getPendingChange() == null) return false; if (other.getPendingChange() != null && other.getPendingChange().equals(this.getPendingChange()) == false) return false; return true; }