@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class User extends Object implements Serializable, Cloneable, StructuredPojo
A user associated with the broker. For Amazon MQ for RabbitMQ brokers, one and only one administrative user is accepted and created when a broker is first provisioned. All subsequent broker users are created by making RabbitMQ API calls directly to brokers or via the RabbitMQ web console.
Constructor and Description |
---|
User() |
Modifier and Type | Method and Description |
---|---|
User |
clone() |
boolean |
equals(Object obj) |
Boolean |
getConsoleAccess()
Enables access to the ActiveMQ Web Console for the ActiveMQ user.
|
List<String> |
getGroups()
The list of groups (20 maximum) to which the ActiveMQ user belongs.
|
String |
getPassword()
Required.
|
Boolean |
getReplicationUser()
Defines if this user is intended for CRDR replication purposes.
|
String |
getUsername()
The username of the broker user.
|
int |
hashCode() |
Boolean |
isConsoleAccess()
Enables access to the ActiveMQ Web Console for the ActiveMQ user.
|
Boolean |
isReplicationUser()
Defines if this user is intended for CRDR replication purposes.
|
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setConsoleAccess(Boolean consoleAccess)
Enables access to the ActiveMQ Web Console for the ActiveMQ user.
|
void |
setGroups(Collection<String> groups)
The list of groups (20 maximum) to which the ActiveMQ user belongs.
|
void |
setPassword(String password)
Required.
|
void |
setReplicationUser(Boolean replicationUser)
Defines if this user is intended for CRDR replication purposes.
|
void |
setUsername(String username)
The username of the broker user.
|
String |
toString()
Returns a string representation of this object.
|
User |
withConsoleAccess(Boolean consoleAccess)
Enables access to the ActiveMQ Web Console for the ActiveMQ user.
|
User |
withGroups(Collection<String> groups)
The list of groups (20 maximum) to which the ActiveMQ user belongs.
|
User |
withGroups(String... groups)
The list of groups (20 maximum) to which the ActiveMQ user belongs.
|
User |
withPassword(String password)
Required.
|
User |
withReplicationUser(Boolean replicationUser)
Defines if this user is intended for CRDR replication purposes.
|
User |
withUsername(String username)
The username of the broker user.
|
public void setConsoleAccess(Boolean consoleAccess)
Enables access to the ActiveMQ Web Console for the ActiveMQ user. Does not apply to RabbitMQ brokers.
consoleAccess
- Enables access to the ActiveMQ Web Console for the ActiveMQ user. Does not apply to RabbitMQ brokers.public Boolean getConsoleAccess()
Enables access to the ActiveMQ Web Console for the ActiveMQ user. Does not apply to RabbitMQ brokers.
public User withConsoleAccess(Boolean consoleAccess)
Enables access to the ActiveMQ Web Console for the ActiveMQ user. Does not apply to RabbitMQ brokers.
consoleAccess
- Enables access to the ActiveMQ Web Console for the ActiveMQ user. Does not apply to RabbitMQ brokers.public Boolean isConsoleAccess()
Enables access to the ActiveMQ Web Console for the ActiveMQ user. Does not apply to RabbitMQ brokers.
public List<String> getGroups()
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. Does not apply to RabbitMQ brokers.
public void setGroups(Collection<String> 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. Does not apply to RabbitMQ brokers.
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. Does not apply to RabbitMQ brokers.public User withGroups(String... 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. Does not apply to RabbitMQ brokers.
NOTE: This method appends the values to the existing list (if any). Use
setGroups(java.util.Collection)
or withGroups(java.util.Collection)
if you want to override the
existing values.
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. Does not apply to RabbitMQ brokers.public User withGroups(Collection<String> 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. Does not apply to RabbitMQ brokers.
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. Does not apply to RabbitMQ brokers.public void setPassword(String password)
Required. The password of the user. This value must be at least 12 characters long, must contain at least 4 unique characters, and must not contain commas, colons, or equal signs (,:=).
password
- Required. The password of the user. This value must be at least 12 characters long, must contain at least
4 unique characters, and must not contain commas, colons, or equal signs (,:=).public String getPassword()
Required. The password of the user. This value must be at least 12 characters long, must contain at least 4 unique characters, and must not contain commas, colons, or equal signs (,:=).
public User withPassword(String password)
Required. The password of the user. This value must be at least 12 characters long, must contain at least 4 unique characters, and must not contain commas, colons, or equal signs (,:=).
password
- Required. The password of the user. This value must be at least 12 characters long, must contain at least
4 unique characters, and must not contain commas, colons, or equal signs (,:=).public void setUsername(String username)
The username of the broker user. The following restrictions apply to broker usernames:
For Amazon MQ for ActiveMQ brokers, this value can contain only alphanumeric characters, dashes, periods, underscores, and tildes (- . _ ~). This value must be 2-100 characters long.
para>For Amazon MQ for RabbitMQ brokers, this value can contain only alphanumeric characters, dashes, periods, underscores (- . _). This value must not contain a tilde (~) character. Amazon MQ prohibts using guest as a valid usename. This value must be 2-100 characters long.
Do not add personally identifiable information (PII) or other confidential or sensitive information in broker usernames. Broker usernames are accessible to other Amazon Web Services services, including CloudWatch Logs. Broker usernames are not intended to be used for private or sensitive data.
username
- The username of the broker user. The following restrictions apply to broker usernames:
For Amazon MQ for ActiveMQ brokers, this value can contain only alphanumeric characters, dashes, periods, underscores, and tildes (- . _ ~). This value must be 2-100 characters long.
para>For Amazon MQ for RabbitMQ brokers, this value can contain only alphanumeric characters, dashes, periods, underscores (- . _). This value must not contain a tilde (~) character. Amazon MQ prohibts using guest as a valid usename. This value must be 2-100 characters long.
Do not add personally identifiable information (PII) or other confidential or sensitive information in broker usernames. Broker usernames are accessible to other Amazon Web Services services, including CloudWatch Logs. Broker usernames are not intended to be used for private or sensitive data.
public String getUsername()
The username of the broker user. The following restrictions apply to broker usernames:
For Amazon MQ for ActiveMQ brokers, this value can contain only alphanumeric characters, dashes, periods, underscores, and tildes (- . _ ~). This value must be 2-100 characters long.
para>For Amazon MQ for RabbitMQ brokers, this value can contain only alphanumeric characters, dashes, periods, underscores (- . _). This value must not contain a tilde (~) character. Amazon MQ prohibts using guest as a valid usename. This value must be 2-100 characters long.
Do not add personally identifiable information (PII) or other confidential or sensitive information in broker usernames. Broker usernames are accessible to other Amazon Web Services services, including CloudWatch Logs. Broker usernames are not intended to be used for private or sensitive data.
For Amazon MQ for ActiveMQ brokers, this value can contain only alphanumeric characters, dashes, periods, underscores, and tildes (- . _ ~). This value must be 2-100 characters long.
para>For Amazon MQ for RabbitMQ brokers, this value can contain only alphanumeric characters, dashes, periods, underscores (- . _). This value must not contain a tilde (~) character. Amazon MQ prohibts using guest as a valid usename. This value must be 2-100 characters long.
Do not add personally identifiable information (PII) or other confidential or sensitive information in broker usernames. Broker usernames are accessible to other Amazon Web Services services, including CloudWatch Logs. Broker usernames are not intended to be used for private or sensitive data.
public User withUsername(String username)
The username of the broker user. The following restrictions apply to broker usernames:
For Amazon MQ for ActiveMQ brokers, this value can contain only alphanumeric characters, dashes, periods, underscores, and tildes (- . _ ~). This value must be 2-100 characters long.
para>For Amazon MQ for RabbitMQ brokers, this value can contain only alphanumeric characters, dashes, periods, underscores (- . _). This value must not contain a tilde (~) character. Amazon MQ prohibts using guest as a valid usename. This value must be 2-100 characters long.
Do not add personally identifiable information (PII) or other confidential or sensitive information in broker usernames. Broker usernames are accessible to other Amazon Web Services services, including CloudWatch Logs. Broker usernames are not intended to be used for private or sensitive data.
username
- The username of the broker user. The following restrictions apply to broker usernames:
For Amazon MQ for ActiveMQ brokers, this value can contain only alphanumeric characters, dashes, periods, underscores, and tildes (- . _ ~). This value must be 2-100 characters long.
para>For Amazon MQ for RabbitMQ brokers, this value can contain only alphanumeric characters, dashes, periods, underscores (- . _). This value must not contain a tilde (~) character. Amazon MQ prohibts using guest as a valid usename. This value must be 2-100 characters long.
Do not add personally identifiable information (PII) or other confidential or sensitive information in broker usernames. Broker usernames are accessible to other Amazon Web Services services, including CloudWatch Logs. Broker usernames are not intended to be used for private or sensitive data.
public void setReplicationUser(Boolean replicationUser)
Defines if this user is intended for CRDR replication purposes.
replicationUser
- Defines if this user is intended for CRDR replication purposes.public Boolean getReplicationUser()
Defines if this user is intended for CRDR replication purposes.
public User withReplicationUser(Boolean replicationUser)
Defines if this user is intended for CRDR replication purposes.
replicationUser
- Defines if this user is intended for CRDR replication purposes.public Boolean isReplicationUser()
Defines if this user is intended for CRDR replication purposes.
public String toString()
toString
in class Object
Object.toString()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.