Interface AwsIamRoleDetails.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<AwsIamRoleDetails.Builder,
,AwsIamRoleDetails> SdkBuilder<AwsIamRoleDetails.Builder,
,AwsIamRoleDetails> SdkPojo
- Enclosing class:
AwsIamRoleDetails
-
Method Summary
Modifier and TypeMethodDescriptionassumeRolePolicyDocument
(String assumeRolePolicyDocument) The trust policy that grants permission to assume the role.attachedManagedPolicies
(Collection<AwsIamAttachedManagedPolicy> attachedManagedPolicies) The list of the managed policies that are attached to the role.attachedManagedPolicies
(Consumer<AwsIamAttachedManagedPolicy.Builder>... attachedManagedPolicies) The list of the managed policies that are attached to the role.attachedManagedPolicies
(AwsIamAttachedManagedPolicy... attachedManagedPolicies) The list of the managed policies that are attached to the role.createDate
(String createDate) Indicates when the role was created.instanceProfileList
(Collection<AwsIamInstanceProfile> instanceProfileList) The list of instance profiles that contain this role.instanceProfileList
(Consumer<AwsIamInstanceProfile.Builder>... instanceProfileList) The list of instance profiles that contain this role.instanceProfileList
(AwsIamInstanceProfile... instanceProfileList) The list of instance profiles that contain this role.maxSessionDuration
(Integer maxSessionDuration) The maximum session duration (in seconds) that you want to set for the specified role.The path to the role.default AwsIamRoleDetails.Builder
permissionsBoundary
(Consumer<AwsIamPermissionsBoundary.Builder> permissionsBoundary) Sets the value of the PermissionsBoundary property for this object.permissionsBoundary
(AwsIamPermissionsBoundary permissionsBoundary) Sets the value of the PermissionsBoundary property for this object.The stable and unique string identifying the role.The friendly name that identifies the role.rolePolicyList
(Collection<AwsIamRolePolicy> rolePolicyList) The list of inline policies that are embedded in the role.rolePolicyList
(Consumer<AwsIamRolePolicy.Builder>... rolePolicyList) The list of inline policies that are embedded in the role.rolePolicyList
(AwsIamRolePolicy... rolePolicyList) The list of inline policies that are embedded in the role.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
assumeRolePolicyDocument
The trust policy that grants permission to assume the role.
- Parameters:
assumeRolePolicyDocument
- The trust policy that grants permission to assume the role.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
attachedManagedPolicies
AwsIamRoleDetails.Builder attachedManagedPolicies(Collection<AwsIamAttachedManagedPolicy> attachedManagedPolicies) The list of the managed policies that are attached to the role.
- Parameters:
attachedManagedPolicies
- The list of the managed policies that are attached to the role.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
attachedManagedPolicies
AwsIamRoleDetails.Builder attachedManagedPolicies(AwsIamAttachedManagedPolicy... attachedManagedPolicies) The list of the managed policies that are attached to the role.
- Parameters:
attachedManagedPolicies
- The list of the managed policies that are attached to the role.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
attachedManagedPolicies
AwsIamRoleDetails.Builder attachedManagedPolicies(Consumer<AwsIamAttachedManagedPolicy.Builder>... attachedManagedPolicies) The list of the managed policies that are attached to the role.
This is a convenience method that creates an instance of theAwsIamAttachedManagedPolicy.Builder
avoiding the need to create one manually viaAwsIamAttachedManagedPolicy.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toattachedManagedPolicies(List<AwsIamAttachedManagedPolicy>)
.- Parameters:
attachedManagedPolicies
- a consumer that will call methods onAwsIamAttachedManagedPolicy.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
createDate
Indicates when the role was created.
This field accepts only the specified formats. Timestamps can end with
Z
or("+" / "-") time-hour [":" time-minute]
. The time-secfrac after seconds is limited to a maximum of 9 digits. The offset is bounded by +/-18:00. Here are valid timestamp formats with examples:-
YYYY-MM-DDTHH:MM:SSZ
(for example,2019-01-31T23:00:00Z
) -
YYYY-MM-DDTHH:MM:SS.mmmmmmmmmZ
(for example,2019-01-31T23:00:00.123456789Z
) -
YYYY-MM-DDTHH:MM:SS+HH:MM
(for example,2024-01-04T15:25:10+17:59
) -
YYYY-MM-DDTHH:MM:SS-HHMM
(for example,2024-01-04T15:25:10-1759
) -
YYYY-MM-DDTHH:MM:SS.mmmmmmmmm+HH:MM
(for example,2024-01-04T15:25:10.123456789+17:59
)
- Parameters:
createDate
- Indicates when the role was created.This field accepts only the specified formats. Timestamps can end with
Z
or("+" / "-") time-hour [":" time-minute]
. The time-secfrac after seconds is limited to a maximum of 9 digits. The offset is bounded by +/-18:00. Here are valid timestamp formats with examples:-
YYYY-MM-DDTHH:MM:SSZ
(for example,2019-01-31T23:00:00Z
) -
YYYY-MM-DDTHH:MM:SS.mmmmmmmmmZ
(for example,2019-01-31T23:00:00.123456789Z
) -
YYYY-MM-DDTHH:MM:SS+HH:MM
(for example,2024-01-04T15:25:10+17:59
) -
YYYY-MM-DDTHH:MM:SS-HHMM
(for example,2024-01-04T15:25:10-1759
) -
YYYY-MM-DDTHH:MM:SS.mmmmmmmmm+HH:MM
(for example,2024-01-04T15:25:10.123456789+17:59
)
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-
instanceProfileList
AwsIamRoleDetails.Builder instanceProfileList(Collection<AwsIamInstanceProfile> instanceProfileList) The list of instance profiles that contain this role.
- Parameters:
instanceProfileList
- The list of instance profiles that contain this role.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
instanceProfileList
The list of instance profiles that contain this role.
- Parameters:
instanceProfileList
- The list of instance profiles that contain this role.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
instanceProfileList
AwsIamRoleDetails.Builder instanceProfileList(Consumer<AwsIamInstanceProfile.Builder>... instanceProfileList) The list of instance profiles that contain this role.
This is a convenience method that creates an instance of theAwsIamInstanceProfile.Builder
avoiding the need to create one manually viaAwsIamInstanceProfile.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toinstanceProfileList(List<AwsIamInstanceProfile>)
.- Parameters:
instanceProfileList
- a consumer that will call methods onAwsIamInstanceProfile.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
permissionsBoundary
Sets the value of the PermissionsBoundary property for this object.- Parameters:
permissionsBoundary
- The new value for the PermissionsBoundary property for this object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
permissionsBoundary
default AwsIamRoleDetails.Builder permissionsBoundary(Consumer<AwsIamPermissionsBoundary.Builder> permissionsBoundary) Sets the value of the PermissionsBoundary property for this object. This is a convenience method that creates an instance of theAwsIamPermissionsBoundary.Builder
avoiding the need to create one manually viaAwsIamPermissionsBoundary.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed topermissionsBoundary(AwsIamPermissionsBoundary)
.- Parameters:
permissionsBoundary
- a consumer that will call methods onAwsIamPermissionsBoundary.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
roleId
The stable and unique string identifying the role.
- Parameters:
roleId
- The stable and unique string identifying the role.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
roleName
The friendly name that identifies the role.
- Parameters:
roleName
- The friendly name that identifies the role.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
rolePolicyList
The list of inline policies that are embedded in the role.
- Parameters:
rolePolicyList
- The list of inline policies that are embedded in the role.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
rolePolicyList
The list of inline policies that are embedded in the role.
- Parameters:
rolePolicyList
- The list of inline policies that are embedded in the role.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
rolePolicyList
The list of inline policies that are embedded in the role.
This is a convenience method that creates an instance of theAwsIamRolePolicy.Builder
avoiding the need to create one manually viaAwsIamRolePolicy.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed torolePolicyList(List<AwsIamRolePolicy>)
.- Parameters:
rolePolicyList
- a consumer that will call methods onAwsIamRolePolicy.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
maxSessionDuration
The maximum session duration (in seconds) that you want to set for the specified role.
- Parameters:
maxSessionDuration
- The maximum session duration (in seconds) that you want to set for the specified role.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
path
The path to the role.
- Parameters:
path
- The path to the role.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-