@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class CreateAliasRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
Contains the inputs for the CreateAlias operation.
NOOP| Constructor and Description |
|---|
CreateAliasRequest() |
| Modifier and Type | Method and Description |
|---|---|
CreateAliasRequest |
clone()
Creates a shallow clone of this object for all fields except the handler context.
|
boolean |
equals(Object obj) |
String |
getAlias()
The requested alias.
|
String |
getDirectoryId()
The identifier of the directory for which to create the alias.
|
int |
hashCode() |
void |
setAlias(String alias)
The requested alias.
|
void |
setDirectoryId(String directoryId)
The identifier of the directory for which to create the alias.
|
String |
toString()
Returns a string representation of this object.
|
CreateAliasRequest |
withAlias(String alias)
The requested alias.
|
CreateAliasRequest |
withDirectoryId(String directoryId)
The identifier of the directory for which to create the alias.
|
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, withSdkRequestTimeoutpublic void setDirectoryId(String directoryId)
The identifier of the directory for which to create the alias.
directoryId - The identifier of the directory for which to create the alias.public String getDirectoryId()
The identifier of the directory for which to create the alias.
public CreateAliasRequest withDirectoryId(String directoryId)
The identifier of the directory for which to create the alias.
directoryId - The identifier of the directory for which to create the alias.public void setAlias(String alias)
The requested alias.
The alias must be unique amongst all aliases in Amazon Web Services. This operation throws an
EntityAlreadyExistsException error if the alias already exists.
alias - The requested alias.
The alias must be unique amongst all aliases in Amazon Web Services. This operation throws an
EntityAlreadyExistsException error if the alias already exists.
public String getAlias()
The requested alias.
The alias must be unique amongst all aliases in Amazon Web Services. This operation throws an
EntityAlreadyExistsException error if the alias already exists.
The alias must be unique amongst all aliases in Amazon Web Services. This operation throws an
EntityAlreadyExistsException error if the alias already exists.
public CreateAliasRequest withAlias(String alias)
The requested alias.
The alias must be unique amongst all aliases in Amazon Web Services. This operation throws an
EntityAlreadyExistsException error if the alias already exists.
alias - The requested alias.
The alias must be unique amongst all aliases in Amazon Web Services. This operation throws an
EntityAlreadyExistsException error if the alias already exists.
public String toString()
toString in class ObjectObject.toString()public CreateAliasRequest clone()
AmazonWebServiceRequestclone in class AmazonWebServiceRequestObject.clone()