public class CreateAliasRequest extends AmazonWebServiceRequest implements java.io.Serializable, java.lang.Cloneable
Contains the inputs for the CreateAlias operation.
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
alias
The requested alias.
|
private java.lang.String |
directoryId
The identifier of the directory for which to create the alias.
|
NOOP
Constructor and Description |
---|
CreateAliasRequest() |
Modifier and Type | Method and Description |
---|---|
CreateAliasRequest |
clone()
Creates a shallow clone of this request.
|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getAlias()
The requested alias.
|
java.lang.String |
getDirectoryId()
The identifier of the directory for which to create the alias.
|
int |
hashCode() |
void |
setAlias(java.lang.String alias)
The requested alias.
|
void |
setDirectoryId(java.lang.String directoryId)
The identifier of the directory for which to create the alias.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
CreateAliasRequest |
withAlias(java.lang.String alias)
The requested alias.
|
CreateAliasRequest |
withDirectoryId(java.lang.String directoryId)
The identifier of the directory for which to create the alias.
|
copyBaseTo, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
private java.lang.String directoryId
The identifier of the directory for which to create the alias.
private java.lang.String alias
The requested alias.
The alias must be unique amongst all aliases in AWS. This operation
throws an EntityAlreadyExistsException
error if the alias
already exists.
public void setDirectoryId(java.lang.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 java.lang.String getDirectoryId()
The identifier of the directory for which to create the alias.
public CreateAliasRequest withDirectoryId(java.lang.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(java.lang.String alias)
The requested alias.
The alias must be unique amongst all aliases in AWS. This operation
throws an EntityAlreadyExistsException
error if the alias
already exists.
alias
- The requested alias.
The alias must be unique amongst all aliases in AWS. This
operation throws an EntityAlreadyExistsException
error if the alias already exists.
public java.lang.String getAlias()
The requested alias.
The alias must be unique amongst all aliases in AWS. This operation
throws an EntityAlreadyExistsException
error if the alias
already exists.
The alias must be unique amongst all aliases in AWS. This
operation throws an EntityAlreadyExistsException
error if the alias already exists.
public CreateAliasRequest withAlias(java.lang.String alias)
The requested alias.
The alias must be unique amongst all aliases in AWS. This operation
throws an EntityAlreadyExistsException
error if the alias
already exists.
alias
- The requested alias.
The alias must be unique amongst all aliases in AWS. This
operation throws an EntityAlreadyExistsException
error if the alias already exists.
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public CreateAliasRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()