public class CreateAliasRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
CreateAlias operation.
Creates an alias for a directory and assigns the alias to the
directory. The alias is used to construct the access URL for the
directory, such as http:// .
IMPORTANT: After an alias has been created, it cannot be deleted or reused, so this operation should only be used when absolutely necessary.
NOOP| Constructor and Description |
|---|
CreateAliasRequest() |
| Modifier and Type | Method and Description |
|---|---|
CreateAliasRequest |
clone() |
boolean |
equals(Object obj) |
String |
getAlias()
The requested alias.
|
String |
getDirectoryId()
The identifier of the directory to create the alias for.
|
int |
hashCode() |
void |
setAlias(String alias)
The requested alias.
|
void |
setDirectoryId(String directoryId)
The identifier of the directory to create the alias for.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
CreateAliasRequest |
withAlias(String alias)
The requested alias.
|
CreateAliasRequest |
withDirectoryId(String directoryId)
The identifier of the directory to create the alias for.
|
copyBaseTo, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollectorpublic String getDirectoryId()
Constraints:
Pattern: ^d-[0-9a-f]{10}$
public void setDirectoryId(String directoryId)
Constraints:
Pattern: ^d-[0-9a-f]{10}$
directoryId - The identifier of the directory to create the alias for.public CreateAliasRequest withDirectoryId(String directoryId)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Pattern: ^d-[0-9a-f]{10}$
directoryId - The identifier of the directory to create the alias for.public String getAlias()
The alias must be unique amongst all aliases
in AWS. This operation will throw an
EntityAlreadyExistsException if this alias already
exists.
Constraints:
Length: 1 - 62
Pattern: ^(?!d-)([\da-zA-Z]+)([-]*[\da-zA-Z])*
The alias must be unique amongst all aliases
in AWS. This operation will throw an
EntityAlreadyExistsException if this alias already
exists.
public void setAlias(String alias)
The alias must be unique amongst all aliases
in AWS. This operation will throw an
EntityAlreadyExistsException if this alias already
exists.
Constraints:
Length: 1 - 62
Pattern: ^(?!d-)([\da-zA-Z]+)([-]*[\da-zA-Z])*
alias - The requested alias. The alias must be unique amongst all aliases
in AWS. This operation will throw an
EntityAlreadyExistsException if this alias already
exists.
public CreateAliasRequest withAlias(String alias)
The alias must be unique amongst all aliases
in AWS. This operation will throw an
EntityAlreadyExistsException if this alias already
exists.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 62
Pattern: ^(?!d-)([\da-zA-Z]+)([-]*[\da-zA-Z])*
alias - The requested alias. The alias must be unique amongst all aliases
in AWS. This operation will throw an
EntityAlreadyExistsException if this alias already
exists.
public String toString()
toString in class ObjectObject.toString()public CreateAliasRequest clone()
clone in class AmazonWebServiceRequestCopyright © 2015. All rights reserved.