/** * Use this in place of valueOf. * * @param value * real value * @return ChangeType corresponding to the value * * @throws IllegalArgumentException * If the specified value does not map to one of the known values in this enum. */ public static ChangeType fromValue(String value) { if (value == null || "".equals(value)) { throw new IllegalArgumentException("Value cannot be null or empty!"); } for (ChangeType enumEntry : ChangeType.values()) { if (enumEntry.toString().equals(value)) { return enumEntry; } } throw new IllegalArgumentException("Cannot create enum from " + value + " value!"); } }
/** * 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(ChangeType pendingChange) { this.pendingChange = pendingChange.toString(); return this; }
/** * The type of change pending for the ActiveMQ user. * * @param pendingChange * 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 UserSummary withPendingChange(ChangeType pendingChange) { this.pendingChange = pendingChange.toString(); return this; }
/** * Use this in place of valueOf. * * @param value * real value * @return ChangeType corresponding to the value * * @throws IllegalArgumentException * If the specified value does not map to one of the known values in this enum. */ public static ChangeType fromValue(String value) { if (value == null || "".equals(value)) { throw new IllegalArgumentException("Value cannot be null or empty!"); } for (ChangeType enumEntry : ChangeType.values()) { if (enumEntry.toString().equals(value)) { return enumEntry; } } throw new IllegalArgumentException("Cannot create enum from " + value + " value!"); } }
/** * The type of change pending for the ActiveMQ user. * * @param pendingChange * 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 UserSummary withPendingChange(ChangeType pendingChange) { this.pendingChange = pendingChange.toString(); return this; }
/** * 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(ChangeType pendingChange) { this.pendingChange = pendingChange.toString(); return this; }