Did this page help you?

   Yes   No   Tell us about it...

com.amazonaws.services.identitymanagement.model
Class CreateAccountAliasRequest

java.lang.Object
  extended by com.amazonaws.AmazonWebServiceRequest
      extended by com.amazonaws.services.identitymanagement.model.CreateAccountAliasRequest
All Implemented Interfaces:
Serializable

public class CreateAccountAliasRequest
extends AmazonWebServiceRequest
implements Serializable

Container for the parameters to the CreateAccountAlias operation.

This action 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 Using AWS Identity and Access Management .

See Also:
AmazonIdentityManagement.createAccountAlias(CreateAccountAliasRequest), Serialized Form

Constructor Summary
CreateAccountAliasRequest()
          Default constructor for a new CreateAccountAliasRequest object.
CreateAccountAliasRequest(String accountAlias)
          Constructs a new CreateAccountAliasRequest object.
 
Method Summary
 boolean equals(Object obj)
           
 String getAccountAlias()
          Name of the account alias to create.
 int hashCode()
           
 void setAccountAlias(String accountAlias)
          Name of the account alias to create.
 String toString()
          Returns a string representation of this object; useful for testing and debugging.
 CreateAccountAliasRequest withAccountAlias(String accountAlias)
          Name of the account alias to create.
 
Methods inherited from class com.amazonaws.AmazonWebServiceRequest
copyPrivateRequestParameters, getRequestClientOptions, getRequestCredentials, setRequestCredentials
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CreateAccountAliasRequest

public CreateAccountAliasRequest()
Default constructor for a new CreateAccountAliasRequest object. Callers should use the setter or fluent setter (with...) methods to initialize this object after creating it.


CreateAccountAliasRequest

public CreateAccountAliasRequest(String accountAlias)
Constructs a new CreateAccountAliasRequest object. Callers should use the setter or fluent setter (with...) methods to initialize any additional object members.

Parameters:
accountAlias - Name of the account alias to create.
Method Detail

getAccountAlias

public String getAccountAlias()
Name of the account alias to create.

Constraints:
Length: 3 - 63
Pattern: ^[a-z0-9](([a-z0-9]|-(?!-))*[a-z0-9])?$

Returns:
Name of the account alias to create.

setAccountAlias

public void setAccountAlias(String accountAlias)
Name of the account alias to create.

Constraints:
Length: 3 - 63
Pattern: ^[a-z0-9](([a-z0-9]|-(?!-))*[a-z0-9])?$

Parameters:
accountAlias - Name of the account alias to create.

withAccountAlias

public CreateAccountAliasRequest withAccountAlias(String accountAlias)
Name of the account alias to create.

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])?$

Parameters:
accountAlias - Name of the account alias to create.
Returns:
A reference to this updated object so that method calls can be chained together.

toString

public String toString()
Returns a string representation of this object; useful for testing and debugging.

Overrides:
toString in class Object
Returns:
A string representation of this object.
See Also:
Object.toString()

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object


Copyright © 2010 Amazon Web Services, Inc. All Rights Reserved.