Class UpdateRoleRequest
- java.lang.Object
-
- software.amazon.awssdk.core.SdkRequest
-
- software.amazon.awssdk.awscore.AwsRequest
-
- software.amazon.awssdk.services.iam.model.IamRequest
-
- software.amazon.awssdk.services.iam.model.UpdateRoleRequest
-
- All Implemented Interfaces:
SdkPojo
,ToCopyableBuilder<UpdateRoleRequest.Builder,UpdateRoleRequest>
@Generated("software.amazon.awssdk:codegen") public final class UpdateRoleRequest extends IamRequest implements ToCopyableBuilder<UpdateRoleRequest.Builder,UpdateRoleRequest>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
UpdateRoleRequest.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static UpdateRoleRequest.Builder
builder()
String
description()
The new description that you want to apply to the specified role.boolean
equals(Object obj)
boolean
equalsBySdkFields(Object obj)
<T> Optional<T>
getValueForField(String fieldName, Class<T> clazz)
int
hashCode()
Integer
maxSessionDuration()
The maximum session duration (in seconds) that you want to set for the specified role.String
roleName()
The name of the role that you want to modify.Map<String,SdkField<?>>
sdkFieldNameToField()
List<SdkField<?>>
sdkFields()
static Class<? extends UpdateRoleRequest.Builder>
serializableBuilderClass()
UpdateRoleRequest.Builder
toBuilder()
String
toString()
Returns a string representation of this object.-
Methods inherited from class software.amazon.awssdk.awscore.AwsRequest
overrideConfiguration
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
roleName
public final String roleName()
The name of the role that you want to modify.
- Returns:
- The name of the role that you want to modify.
-
description
public final String description()
The new description that you want to apply to the specified role.
- Returns:
- The new description that you want to apply to the specified role.
-
maxSessionDuration
public final 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 theduration-seconds
CLI parameter to request a longer session. TheMaxSessionDuration
setting determines the maximum duration that can be requested using theDurationSeconds
parameter. If users don't specify a value for theDurationSeconds
parameter, their security credentials are valid for one hour by default. This applies when you use theAssumeRole*
API operations or theassume-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.
- Returns:
- 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 theduration-seconds
CLI parameter to request a longer session. TheMaxSessionDuration
setting determines the maximum duration that can be requested using theDurationSeconds
parameter. If users don't specify a value for theDurationSeconds
parameter, their security credentials are valid for one hour by default. This applies when you use theAssumeRole*
API operations or theassume-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.
-
toBuilder
public UpdateRoleRequest.Builder toBuilder()
- Specified by:
toBuilder
in interfaceToCopyableBuilder<UpdateRoleRequest.Builder,UpdateRoleRequest>
- Specified by:
toBuilder
in classIamRequest
-
builder
public static UpdateRoleRequest.Builder builder()
-
serializableBuilderClass
public static Class<? extends UpdateRoleRequest.Builder> serializableBuilderClass()
-
hashCode
public final int hashCode()
- Overrides:
hashCode
in classAwsRequest
-
equals
public final boolean equals(Object obj)
- Overrides:
equals
in classAwsRequest
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFields
in interfaceSdkPojo
-
toString
public final String toString()
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
-
getValueForField
public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
- Overrides:
getValueForField
in classSdkRequest
-
sdkFieldNameToField
public final Map<String,SdkField<?>> sdkFieldNameToField()
- Specified by:
sdkFieldNameToField
in interfaceSdkPojo
-
-