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 interfaceUpdateRoleRequest.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static UpdateRoleRequest.Builderbuilder()Stringdescription()The new description that you want to apply to the specified role.booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()IntegermaxSessionDuration()The maximum session duration (in seconds) that you want to set for the specified role.StringroleName()The name of the role that you want to modify.Map<String,SdkField<?>>sdkFieldNameToField()List<SdkField<?>>sdkFields()static Class<? extends UpdateRoleRequest.Builder>serializableBuilderClass()UpdateRoleRequest.BuildertoBuilder()StringtoString()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
DurationSecondsAPI parameter or theduration-secondsCLI parameter to request a longer session. TheMaxSessionDurationsetting determines the maximum duration that can be requested using theDurationSecondsparameter. If users don't specify a value for theDurationSecondsparameter, 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
DurationSecondsAPI parameter or theduration-secondsCLI parameter to request a longer session. TheMaxSessionDurationsetting determines the maximum duration that can be requested using theDurationSecondsparameter. If users don't specify a value for theDurationSecondsparameter, 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:
toBuilderin interfaceToCopyableBuilder<UpdateRoleRequest.Builder,UpdateRoleRequest>- Specified by:
toBuilderin classIamRequest
-
builder
public static UpdateRoleRequest.Builder builder()
-
serializableBuilderClass
public static Class<? extends UpdateRoleRequest.Builder> serializableBuilderClass()
-
hashCode
public final int hashCode()
- Overrides:
hashCodein classAwsRequest
-
equals
public final boolean equals(Object obj)
- Overrides:
equalsin classAwsRequest
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin 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:
getValueForFieldin classSdkRequest
-
sdkFieldNameToField
public final Map<String,SdkField<?>> sdkFieldNameToField()
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo
-
-