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()
Creates a shallow clone of this request.
|
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, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollector
public 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 Object
Object.toString()
public CreateAliasRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()
Copyright © 2015. All rights reserved.