public class CreateAccountAliasRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
CreateAccountAlias operation
.
Creates an alias for your AWS account. For information about using an AWS account alias, see Using an Alias for Your AWS Account ID in the Using IAM guide.
NOOP
Constructor and Description |
---|
CreateAccountAliasRequest()
Default constructor for a new CreateAccountAliasRequest object.
|
CreateAccountAliasRequest(String accountAlias)
Constructs a new CreateAccountAliasRequest object.
|
Modifier and Type | Method and Description |
---|---|
CreateAccountAliasRequest |
clone()
Creates a shallow clone of this request.
|
boolean |
equals(Object obj) |
String |
getAccountAlias()
The account alias to create.
|
int |
hashCode() |
void |
setAccountAlias(String accountAlias)
The account alias to create.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
CreateAccountAliasRequest |
withAccountAlias(String accountAlias)
The account alias to create.
|
copyBaseTo, copyPrivateRequestParameters, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollector
public CreateAccountAliasRequest()
public CreateAccountAliasRequest(String accountAlias)
accountAlias
- The account alias to create.public String getAccountAlias()
Constraints:
Length: 3 - 63
Pattern: ^[a-z0-9](([a-z0-9]|-(?!-))*[a-z0-9])?$
public void setAccountAlias(String accountAlias)
Constraints:
Length: 3 - 63
Pattern: ^[a-z0-9](([a-z0-9]|-(?!-))*[a-z0-9])?$
accountAlias
- The account alias to create.public CreateAccountAliasRequest withAccountAlias(String accountAlias)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 3 - 63
Pattern: ^[a-z0-9](([a-z0-9]|-(?!-))*[a-z0-9])?$
accountAlias
- The account alias to create.public String toString()
toString
in class Object
Object.toString()
public CreateAccountAliasRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()
Copyright © 2015. All rights reserved.