public class CreateRoleAliasRequest extends AmazonWebServiceRequest implements java.io.Serializable
Creates a role alias.
Constructor and Description |
---|
CreateRoleAliasRequest() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.Integer |
getCredentialDurationSeconds()
How long (in seconds) the credentials will be valid.
|
java.lang.String |
getRoleAlias()
The role alias that points to a role ARN.
|
java.lang.String |
getRoleArn()
The role ARN.
|
java.util.List<Tag> |
getTags()
Metadata which can be used to manage the role alias.
|
int |
hashCode() |
void |
setCredentialDurationSeconds(java.lang.Integer credentialDurationSeconds)
How long (in seconds) the credentials will be valid.
|
void |
setRoleAlias(java.lang.String roleAlias)
The role alias that points to a role ARN.
|
void |
setRoleArn(java.lang.String roleArn)
The role ARN.
|
void |
setTags(java.util.Collection<Tag> tags)
Metadata which can be used to manage the role alias.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
CreateRoleAliasRequest |
withCredentialDurationSeconds(java.lang.Integer credentialDurationSeconds)
How long (in seconds) the credentials will be valid.
|
CreateRoleAliasRequest |
withRoleAlias(java.lang.String roleAlias)
The role alias that points to a role ARN.
|
CreateRoleAliasRequest |
withRoleArn(java.lang.String roleArn)
The role ARN.
|
CreateRoleAliasRequest |
withTags(java.util.Collection<Tag> tags)
Metadata which can be used to manage the role alias.
|
CreateRoleAliasRequest |
withTags(Tag... tags)
Metadata which can be used to manage the role alias.
|
clone, getCloneRoot, getCloneSource, getGeneralProgressListener, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollector
public java.lang.String getRoleAlias()
The role alias that points to a role ARN. This allows you to change the role without having to update the device.
Constraints:
Length: 1 - 128
Pattern: [\w=,@-]+
The role alias that points to a role ARN. This allows you to change the role without having to update the device.
public void setRoleAlias(java.lang.String roleAlias)
The role alias that points to a role ARN. This allows you to change the role without having to update the device.
Constraints:
Length: 1 - 128
Pattern: [\w=,@-]+
roleAlias
- The role alias that points to a role ARN. This allows you to change the role without having to update the device.
public CreateRoleAliasRequest withRoleAlias(java.lang.String roleAlias)
The role alias that points to a role ARN. This allows you to change the role without having to update the device.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 128
Pattern: [\w=,@-]+
roleAlias
- The role alias that points to a role ARN. This allows you to change the role without having to update the device.
public java.lang.String getRoleArn()
The role ARN.
Constraints:
Length: 20 - 2048
The role ARN.
public void setRoleArn(java.lang.String roleArn)
The role ARN.
Constraints:
Length: 20 - 2048
roleArn
- The role ARN.
public CreateRoleAliasRequest withRoleArn(java.lang.String roleArn)
The role ARN.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 20 - 2048
roleArn
- The role ARN.
public java.lang.Integer getCredentialDurationSeconds()
How long (in seconds) the credentials will be valid.
Constraints:
Range: 900 - 3600
How long (in seconds) the credentials will be valid.
public void setCredentialDurationSeconds(java.lang.Integer credentialDurationSeconds)
How long (in seconds) the credentials will be valid.
Constraints:
Range: 900 - 3600
credentialDurationSeconds
- How long (in seconds) the credentials will be valid.
public CreateRoleAliasRequest withCredentialDurationSeconds(java.lang.Integer credentialDurationSeconds)
How long (in seconds) the credentials will be valid.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Range: 900 - 3600
credentialDurationSeconds
- How long (in seconds) the credentials will be valid.
public java.util.List<Tag> getTags()
Metadata which can be used to manage the role alias.
For URI Request parameters use format: ...key1=value1&key2=value2...
For the CLI command-line parameter use format: &&tags "key1=value1&key2=value2..."
For the cli-input-json file use format: "tags": "key1=value1&key2=value2..."
Metadata which can be used to manage the role alias.
For URI Request parameters use format: ...key1=value1&key2=value2...
For the CLI command-line parameter use format: &&tags "key1=value1&key2=value2..."
For the cli-input-json file use format: "tags": "key1=value1&key2=value2..."
public void setTags(java.util.Collection<Tag> tags)
Metadata which can be used to manage the role alias.
For URI Request parameters use format: ...key1=value1&key2=value2...
For the CLI command-line parameter use format: &&tags "key1=value1&key2=value2..."
For the cli-input-json file use format: "tags": "key1=value1&key2=value2..."
tags
- Metadata which can be used to manage the role alias.
For URI Request parameters use format: ...key1=value1&key2=value2...
For the CLI command-line parameter use format: &&tags "key1=value1&key2=value2..."
For the cli-input-json file use format: "tags": "key1=value1&key2=value2..."
public CreateRoleAliasRequest withTags(Tag... tags)
Metadata which can be used to manage the role alias.
For URI Request parameters use format: ...key1=value1&key2=value2...
For the CLI command-line parameter use format: &&tags "key1=value1&key2=value2..."
For the cli-input-json file use format: "tags": "key1=value1&key2=value2..."
Returns a reference to this object so that method calls can be chained together.
tags
- Metadata which can be used to manage the role alias.
For URI Request parameters use format: ...key1=value1&key2=value2...
For the CLI command-line parameter use format: &&tags "key1=value1&key2=value2..."
For the cli-input-json file use format: "tags": "key1=value1&key2=value2..."
public CreateRoleAliasRequest withTags(java.util.Collection<Tag> tags)
Metadata which can be used to manage the role alias.
For URI Request parameters use format: ...key1=value1&key2=value2...
For the CLI command-line parameter use format: &&tags "key1=value1&key2=value2..."
For the cli-input-json file use format: "tags": "key1=value1&key2=value2..."
Returns a reference to this object so that method calls can be chained together.
tags
- Metadata which can be used to manage the role alias.
For URI Request parameters use format: ...key1=value1&key2=value2...
For the CLI command-line parameter use format: &&tags "key1=value1&key2=value2..."
For the cli-input-json file use format: "tags": "key1=value1&key2=value2..."
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
Copyright © 2018 Amazon Web Services, Inc. All Rights Reserved.