Interface AwsIamRoleDetails.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<AwsIamRoleDetails.Builder,AwsIamRoleDetails>,SdkBuilder<AwsIamRoleDetails.Builder,AwsIamRoleDetails>,SdkPojo
- Enclosing class:
- AwsIamRoleDetails
public static interface AwsIamRoleDetails.Builder extends SdkPojo, CopyableBuilder<AwsIamRoleDetails.Builder,AwsIamRoleDetails>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description AwsIamRoleDetails.BuilderassumeRolePolicyDocument(String assumeRolePolicyDocument)The trust policy that grants permission to assume the role.AwsIamRoleDetails.BuilderattachedManagedPolicies(Collection<AwsIamAttachedManagedPolicy> attachedManagedPolicies)The list of the managed policies that are attached to the role.AwsIamRoleDetails.BuilderattachedManagedPolicies(Consumer<AwsIamAttachedManagedPolicy.Builder>... attachedManagedPolicies)The list of the managed policies that are attached to the role.AwsIamRoleDetails.BuilderattachedManagedPolicies(AwsIamAttachedManagedPolicy... attachedManagedPolicies)The list of the managed policies that are attached to the role.AwsIamRoleDetails.BuildercreateDate(String createDate)Indicates when the role was created.AwsIamRoleDetails.BuilderinstanceProfileList(Collection<AwsIamInstanceProfile> instanceProfileList)The list of instance profiles that contain this role.AwsIamRoleDetails.BuilderinstanceProfileList(Consumer<AwsIamInstanceProfile.Builder>... instanceProfileList)The list of instance profiles that contain this role.AwsIamRoleDetails.BuilderinstanceProfileList(AwsIamInstanceProfile... instanceProfileList)The list of instance profiles that contain this role.AwsIamRoleDetails.BuildermaxSessionDuration(Integer maxSessionDuration)The maximum session duration (in seconds) that you want to set for the specified role.AwsIamRoleDetails.Builderpath(String path)The path to the role.default AwsIamRoleDetails.BuilderpermissionsBoundary(Consumer<AwsIamPermissionsBoundary.Builder> permissionsBoundary)Sets the value of the PermissionsBoundary property for this object.AwsIamRoleDetails.BuilderpermissionsBoundary(AwsIamPermissionsBoundary permissionsBoundary)Sets the value of the PermissionsBoundary property for this object.AwsIamRoleDetails.BuilderroleId(String roleId)The stable and unique string identifying the role.AwsIamRoleDetails.BuilderroleName(String roleName)The friendly name that identifies the role.AwsIamRoleDetails.BuilderrolePolicyList(Collection<AwsIamRolePolicy> rolePolicyList)The list of inline policies that are embedded in the role.AwsIamRoleDetails.BuilderrolePolicyList(Consumer<AwsIamRolePolicy.Builder>... rolePolicyList)The list of inline policies that are embedded in the role.AwsIamRoleDetails.BuilderrolePolicyList(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, sdkFieldNameToField, sdkFields
-
-
-
-
Method Detail
-
assumeRolePolicyDocument
AwsIamRoleDetails.Builder assumeRolePolicyDocument(String 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.Builderavoiding the need to create one manually viaAwsIamAttachedManagedPolicy.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#attachedManagedPolicies(List.) - 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:
#attachedManagedPolicies(java.util.Collection)
-
createDate
AwsIamRoleDetails.Builder createDate(String createDate)
Indicates when the role was created.
For more information about the validation and formatting of timestamp fields in Security Hub, see Timestamps.
- Parameters:
createDate- Indicates when the role was created.For more information about the validation and formatting of timestamp fields in Security Hub, see Timestamps.
- 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
AwsIamRoleDetails.Builder instanceProfileList(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
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.Builderavoiding the need to create one manually viaAwsIamInstanceProfile.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#instanceProfileList(List.) - 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:
#instanceProfileList(java.util.Collection)
-
permissionsBoundary
AwsIamRoleDetails.Builder permissionsBoundary(AwsIamPermissionsBoundary 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.Builderavoiding the need to create one manually viaAwsIamPermissionsBoundary.builder().When the
Consumercompletes,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:
permissionsBoundary(AwsIamPermissionsBoundary)
-
roleId
AwsIamRoleDetails.Builder roleId(String 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
AwsIamRoleDetails.Builder roleName(String 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
AwsIamRoleDetails.Builder rolePolicyList(Collection<AwsIamRolePolicy> 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
AwsIamRoleDetails.Builder rolePolicyList(AwsIamRolePolicy... 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
AwsIamRoleDetails.Builder rolePolicyList(Consumer<AwsIamRolePolicy.Builder>... rolePolicyList)
The list of inline policies that are embedded in the role.
This is a convenience method that creates an instance of theAwsIamRolePolicy.Builderavoiding the need to create one manually viaAwsIamRolePolicy.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#rolePolicyList(List.) - 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:
#rolePolicyList(java.util.Collection)
-
maxSessionDuration
AwsIamRoleDetails.Builder maxSessionDuration(Integer 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
AwsIamRoleDetails.Builder path(String 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.
-
-