@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class UpdateRoleRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
NOOP| Constructor and Description |
|---|
UpdateRoleRequest() |
| Modifier and Type | Method and Description |
|---|---|
UpdateRoleRequest |
clone()
Creates a shallow clone of this object for all fields except the handler context.
|
boolean |
equals(Object obj) |
String |
getDescription()
The new description that you want to apply to the specified role.
|
Integer |
getMaxSessionDuration()
The maximum session duration (in seconds) that you want to set for the specified role.
|
String |
getRoleName()
The name of the role that you want to modify.
|
int |
hashCode() |
void |
setDescription(String description)
The new description that you want to apply to the specified role.
|
void |
setMaxSessionDuration(Integer maxSessionDuration)
The maximum session duration (in seconds) that you want to set for the specified role.
|
void |
setRoleName(String roleName)
The name of the role that you want to modify.
|
String |
toString()
Returns a string representation of this object.
|
UpdateRoleRequest |
withDescription(String description)
The new description that you want to apply to the specified role.
|
UpdateRoleRequest |
withMaxSessionDuration(Integer maxSessionDuration)
The maximum session duration (in seconds) that you want to set for the specified role.
|
UpdateRoleRequest |
withRoleName(String roleName)
The name of the role that you want to modify.
|
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 setRoleName(String roleName)
The name of the role that you want to modify.
roleName - The name of the role that you want to modify.public String getRoleName()
The name of the role that you want to modify.
public UpdateRoleRequest withRoleName(String roleName)
The name of the role that you want to modify.
roleName - The name of the role that you want to modify.public void setDescription(String description)
The new description that you want to apply to the specified role.
description - The new description that you want to apply to the specified role.public String getDescription()
The new description that you want to apply to the specified role.
public UpdateRoleRequest withDescription(String description)
The new description that you want to apply to the specified role.
description - The new description that you want to apply to the specified role.public void setMaxSessionDuration(Integer maxSessionDuration)
The maximum session duration (in seconds) that you want to set for the specified role. If you do not specify a value for this setting, the default value of one hour is applied. This setting can have a value from 1 hour to 12 hours.
Anyone who assumes the role from the CLI or API can use the DurationSeconds API parameter or the
duration-seconds CLI parameter to request a longer session. The MaxSessionDuration
setting determines the maximum duration that can be requested using the DurationSeconds parameter.
If users don't specify a value for the DurationSeconds parameter, their security credentials are
valid for one hour by default. This applies when you use the AssumeRole* API operations or the
assume-role* CLI operations but does not apply when you use those operations to create a console
URL. For more information, see Using
IAM roles in the IAM User Guide.
IAM role credentials provided by Amazon EC2 instances assigned to the role are not subject to the specified maximum session duration.
maxSessionDuration - The maximum session duration (in seconds) that you want to set for the specified role. If you do not
specify a value for this setting, the default value of one hour is applied. This setting can have a value
from 1 hour to 12 hours.
Anyone who assumes the role from the CLI or API can use the DurationSeconds API parameter or
the duration-seconds CLI parameter to request a longer session. The
MaxSessionDuration setting determines the maximum duration that can be requested using the
DurationSeconds parameter. If users don't specify a value for the
DurationSeconds parameter, their security credentials are valid for one hour by default. This
applies when you use the AssumeRole* API operations or the assume-role* CLI
operations but does not apply when you use those operations to create a console URL. For more information,
see Using IAM roles in
the IAM User Guide.
IAM role credentials provided by Amazon EC2 instances assigned to the role are not subject to the specified maximum session duration.
public Integer getMaxSessionDuration()
The maximum session duration (in seconds) that you want to set for the specified role. If you do not specify a value for this setting, the default value of one hour is applied. This setting can have a value from 1 hour to 12 hours.
Anyone who assumes the role from the CLI or API can use the DurationSeconds API parameter or the
duration-seconds CLI parameter to request a longer session. The MaxSessionDuration
setting determines the maximum duration that can be requested using the DurationSeconds parameter.
If users don't specify a value for the DurationSeconds parameter, their security credentials are
valid for one hour by default. This applies when you use the AssumeRole* API operations or the
assume-role* CLI operations but does not apply when you use those operations to create a console
URL. For more information, see Using
IAM roles in the IAM User Guide.
IAM role credentials provided by Amazon EC2 instances assigned to the role are not subject to the specified maximum session duration.
Anyone who assumes the role from the CLI or API can use the DurationSeconds API parameter or
the duration-seconds CLI parameter to request a longer session. The
MaxSessionDuration setting determines the maximum duration that can be requested using the
DurationSeconds parameter. If users don't specify a value for the
DurationSeconds parameter, their security credentials are valid for one hour by default.
This applies when you use the AssumeRole* API operations or the assume-role*
CLI operations but does not apply when you use those operations to create a console URL. For more
information, see Using IAM
roles in the IAM User Guide.
IAM role credentials provided by Amazon EC2 instances assigned to the role are not subject to the specified maximum session duration.
public UpdateRoleRequest withMaxSessionDuration(Integer maxSessionDuration)
The maximum session duration (in seconds) that you want to set for the specified role. If you do not specify a value for this setting, the default value of one hour is applied. This setting can have a value from 1 hour to 12 hours.
Anyone who assumes the role from the CLI or API can use the DurationSeconds API parameter or the
duration-seconds CLI parameter to request a longer session. The MaxSessionDuration
setting determines the maximum duration that can be requested using the DurationSeconds parameter.
If users don't specify a value for the DurationSeconds parameter, their security credentials are
valid for one hour by default. This applies when you use the AssumeRole* API operations or the
assume-role* CLI operations but does not apply when you use those operations to create a console
URL. For more information, see Using
IAM roles in the IAM User Guide.
IAM role credentials provided by Amazon EC2 instances assigned to the role are not subject to the specified maximum session duration.
maxSessionDuration - The maximum session duration (in seconds) that you want to set for the specified role. If you do not
specify a value for this setting, the default value of one hour is applied. This setting can have a value
from 1 hour to 12 hours.
Anyone who assumes the role from the CLI or API can use the DurationSeconds API parameter or
the duration-seconds CLI parameter to request a longer session. The
MaxSessionDuration setting determines the maximum duration that can be requested using the
DurationSeconds parameter. If users don't specify a value for the
DurationSeconds parameter, their security credentials are valid for one hour by default. This
applies when you use the AssumeRole* API operations or the assume-role* CLI
operations but does not apply when you use those operations to create a console URL. For more information,
see Using IAM roles in
the IAM User Guide.
IAM role credentials provided by Amazon EC2 instances assigned to the role are not subject to the specified maximum session duration.
public String toString()
toString in class ObjectObject.toString()public UpdateRoleRequest clone()
AmazonWebServiceRequestclone in class AmazonWebServiceRequestObject.clone()