@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class CreateUserRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
Creates a new ActiveMQ user.
NOOP
Constructor and Description |
---|
CreateUserRequest() |
Modifier and Type | Method and Description |
---|---|
CreateUserRequest |
clone()
Creates a shallow clone of this object for all fields except the handler context.
|
boolean |
equals(Object obj) |
String |
getBrokerId()
The unique ID that Amazon MQ generates for the broker.
|
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.
|
String |
getUsername()
The username of the ActiveMQ user.
|
int |
hashCode() |
Boolean |
isConsoleAccess()
Enables access to the ActiveMQ Web Console for the ActiveMQ user.
|
void |
setBrokerId(String brokerId)
The unique ID that Amazon MQ generates for the broker.
|
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 |
setUsername(String username)
The username of the ActiveMQ user.
|
String |
toString()
Returns a string representation of this object.
|
CreateUserRequest |
withBrokerId(String brokerId)
The unique ID that Amazon MQ generates for the broker.
|
CreateUserRequest |
withConsoleAccess(Boolean consoleAccess)
Enables access to the ActiveMQ Web Console for the ActiveMQ user.
|
CreateUserRequest |
withGroups(Collection<String> groups)
The list of groups (20 maximum) to which the ActiveMQ user belongs.
|
CreateUserRequest |
withGroups(String... groups)
The list of groups (20 maximum) to which the ActiveMQ user belongs.
|
CreateUserRequest |
withPassword(String password)
Required.
|
CreateUserRequest |
withUsername(String username)
The username of the ActiveMQ user.
|
addHandlerContext, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getHandlerContext, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestCredentialsProvider, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
public void setBrokerId(String brokerId)
The unique ID that Amazon MQ generates for the broker.
brokerId
- The unique ID that Amazon MQ generates for the broker.public String getBrokerId()
The unique ID that Amazon MQ generates for the broker.
public CreateUserRequest withBrokerId(String brokerId)
The unique ID that Amazon MQ generates for the broker.
brokerId
- The unique ID that Amazon MQ generates for the broker.public void setConsoleAccess(Boolean consoleAccess)
Enables access to the ActiveMQ Web Console for the ActiveMQ user.
consoleAccess
- Enables access to the ActiveMQ Web Console for the ActiveMQ user.public Boolean getConsoleAccess()
Enables access to the ActiveMQ Web Console for the ActiveMQ user.
public CreateUserRequest withConsoleAccess(Boolean consoleAccess)
Enables access to the ActiveMQ Web Console for the ActiveMQ user.
consoleAccess
- Enables access to the ActiveMQ Web Console for the ActiveMQ user.public Boolean isConsoleAccess()
Enables access to the ActiveMQ Web Console for the ActiveMQ user.
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.
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.
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.public CreateUserRequest 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.
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.public CreateUserRequest 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.
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.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 CreateUserRequest 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 ActiveMQ user. This value can contain only alphanumeric characters, dashes, periods, underscores, and tildes (- . _ ~). This value must be 2-100 characters long.
username
- The username of the ActiveMQ user. This value can contain only alphanumeric characters, dashes, periods,
underscores, and tildes (- . _ ~). This value must be 2-100 characters long.public String getUsername()
The username of the ActiveMQ user. This value can contain only alphanumeric characters, dashes, periods, underscores, and tildes (- . _ ~). This value must be 2-100 characters long.
public CreateUserRequest withUsername(String username)
The username of the ActiveMQ user. This value can contain only alphanumeric characters, dashes, periods, underscores, and tildes (- . _ ~). This value must be 2-100 characters long.
username
- The username of the ActiveMQ user. This value can contain only alphanumeric characters, dashes, periods,
underscores, and tildes (- . _ ~). This value must be 2-100 characters long.public String toString()
toString
in class Object
Object.toString()
public CreateUserRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()