public static interface RoleDetail.Builder extends SdkPojo, CopyableBuilder<RoleDetail.Builder,RoleDetail>
Modifier and Type | Method and Description |
---|---|
RoleDetail.Builder |
arn(String arn)
Sets the value of the Arn property for this object.
|
RoleDetail.Builder |
assumeRolePolicyDocument(String assumeRolePolicyDocument)
The trust policy that grants permission to assume the role.
|
RoleDetail.Builder |
attachedManagedPolicies(AttachedPolicy... attachedManagedPolicies)
A list of managed policies attached to the role.
|
RoleDetail.Builder |
attachedManagedPolicies(Collection<AttachedPolicy> attachedManagedPolicies)
A list of managed policies attached to the role.
|
RoleDetail.Builder |
attachedManagedPolicies(Consumer<AttachedPolicy.Builder>... attachedManagedPolicies)
A list of managed policies attached to the role.
|
RoleDetail.Builder |
createDate(Instant createDate)
The date and time, in ISO 8601 date-time format, when the role
was created.
|
RoleDetail.Builder |
instanceProfileList(Collection<InstanceProfile> instanceProfileList)
A list of instance profiles that contain this role.
|
RoleDetail.Builder |
instanceProfileList(Consumer<InstanceProfile.Builder>... instanceProfileList)
A list of instance profiles that contain this role.
|
RoleDetail.Builder |
instanceProfileList(InstanceProfile... instanceProfileList)
A list of instance profiles that contain this role.
|
RoleDetail.Builder |
path(String path)
The path to the role.
|
RoleDetail.Builder |
permissionsBoundary(AttachedPermissionsBoundary permissionsBoundary)
The ARN of the policy used to set the permissions boundary for the role.
|
default RoleDetail.Builder |
permissionsBoundary(Consumer<AttachedPermissionsBoundary.Builder> permissionsBoundary)
The ARN of the policy used to set the permissions boundary for the role.
|
RoleDetail.Builder |
roleId(String roleId)
The stable and unique string identifying the role.
|
default RoleDetail.Builder |
roleLastUsed(Consumer<RoleLastUsed.Builder> roleLastUsed)
Contains information about the last time that an IAM role was used.
|
RoleDetail.Builder |
roleLastUsed(RoleLastUsed roleLastUsed)
Contains information about the last time that an IAM role was used.
|
RoleDetail.Builder |
roleName(String roleName)
The friendly name that identifies the role.
|
RoleDetail.Builder |
rolePolicyList(Collection<PolicyDetail> rolePolicyList)
A list of inline policies embedded in the role.
|
RoleDetail.Builder |
rolePolicyList(Consumer<PolicyDetail.Builder>... rolePolicyList)
A list of inline policies embedded in the role.
|
RoleDetail.Builder |
rolePolicyList(PolicyDetail... rolePolicyList)
A list of inline policies embedded in the role.
|
RoleDetail.Builder |
tags(Collection<Tag> tags)
A list of tags that are attached to the role.
|
RoleDetail.Builder |
tags(Consumer<Tag.Builder>... tags)
A list of tags that are attached to the role.
|
RoleDetail.Builder |
tags(Tag... tags)
A list of tags that are attached to the role.
|
equalsBySdkFields, sdkFields
copy
applyMutation, build
RoleDetail.Builder path(String path)
The path to the role. For more information about paths, see IAM identifiers in the IAM User Guide.
path
- The path to the role. For more information about paths, see IAM identifiers in
the IAM User Guide.RoleDetail.Builder roleName(String roleName)
The friendly name that identifies the role.
roleName
- The friendly name that identifies the role.RoleDetail.Builder roleId(String roleId)
The stable and unique string identifying the role. For more information about IDs, see IAM identifiers in the IAM User Guide.
roleId
- The stable and unique string identifying the role. For more information about IDs, see IAM identifiers in
the IAM User Guide.RoleDetail.Builder arn(String arn)
arn
- The new value for the Arn property for this object.RoleDetail.Builder createDate(Instant createDate)
The date and time, in ISO 8601 date-time format, when the role was created.
createDate
- The date and time, in ISO 8601 date-time format, when the
role was created.RoleDetail.Builder assumeRolePolicyDocument(String assumeRolePolicyDocument)
The trust policy that grants permission to assume the role.
assumeRolePolicyDocument
- The trust policy that grants permission to assume the role.RoleDetail.Builder instanceProfileList(Collection<InstanceProfile> instanceProfileList)
A list of instance profiles that contain this role.
instanceProfileList
- A list of instance profiles that contain this role.RoleDetail.Builder instanceProfileList(InstanceProfile... instanceProfileList)
A list of instance profiles that contain this role.
instanceProfileList
- A list of instance profiles that contain this role.RoleDetail.Builder instanceProfileList(Consumer<InstanceProfile.Builder>... instanceProfileList)
A list of instance profiles that contain this role.
This is a convenience that creates an instance of theList.Builder
avoiding the need
to create one manually via List#builder()
.
When the Consumer
completes, List.Builder#build()
is called immediately and
its result is passed to #instanceProfileList(List)
.instanceProfileList
- a consumer that will call methods on List.Builder
#instanceProfileList(List)
RoleDetail.Builder rolePolicyList(Collection<PolicyDetail> rolePolicyList)
A list of inline policies embedded in the role. These policies are the role's access (permissions) policies.
rolePolicyList
- A list of inline policies embedded in the role. These policies are the role's access (permissions)
policies.RoleDetail.Builder rolePolicyList(PolicyDetail... rolePolicyList)
A list of inline policies embedded in the role. These policies are the role's access (permissions) policies.
rolePolicyList
- A list of inline policies embedded in the role. These policies are the role's access (permissions)
policies.RoleDetail.Builder rolePolicyList(Consumer<PolicyDetail.Builder>... rolePolicyList)
A list of inline policies embedded in the role. These policies are the role's access (permissions) policies.
This is a convenience that creates an instance of theList.Builder
avoiding the need to
create one manually via List#builder()
.
When the Consumer
completes, List.Builder#build()
is called immediately and its
result is passed to #rolePolicyList(List)
.rolePolicyList
- a consumer that will call methods on List.Builder
#rolePolicyList(List)
RoleDetail.Builder attachedManagedPolicies(Collection<AttachedPolicy> attachedManagedPolicies)
A list of managed policies attached to the role. These policies are the role's access (permissions) policies.
attachedManagedPolicies
- A list of managed policies attached to the role. These policies are the role's access (permissions)
policies.RoleDetail.Builder attachedManagedPolicies(AttachedPolicy... attachedManagedPolicies)
A list of managed policies attached to the role. These policies are the role's access (permissions) policies.
attachedManagedPolicies
- A list of managed policies attached to the role. These policies are the role's access (permissions)
policies.RoleDetail.Builder attachedManagedPolicies(Consumer<AttachedPolicy.Builder>... attachedManagedPolicies)
A list of managed policies attached to the role. These policies are the role's access (permissions) policies.
This is a convenience that creates an instance of theList.Builder
avoiding the need
to create one manually via List#builder()
.
When the Consumer
completes, List.Builder#build()
is called immediately and
its result is passed to #attachedManagedPolicies(List)
.attachedManagedPolicies
- a consumer that will call methods on List.Builder
#attachedManagedPolicies(List)
RoleDetail.Builder permissionsBoundary(AttachedPermissionsBoundary permissionsBoundary)
The ARN of the policy used to set the permissions boundary for the role.
For more information about permissions boundaries, see Permissions boundaries for IAM identities in the IAM User Guide.
permissionsBoundary
- The ARN of the policy used to set the permissions boundary for the role.
For more information about permissions boundaries, see Permissions boundaries for IAM identities in the IAM User Guide.
default RoleDetail.Builder permissionsBoundary(Consumer<AttachedPermissionsBoundary.Builder> permissionsBoundary)
The ARN of the policy used to set the permissions boundary for the role.
For more information about permissions boundaries, see Permissions boundaries for IAM identities in the IAM User Guide.
This is a convenience that creates an instance of theAttachedPermissionsBoundary.Builder
avoiding
the need to create one manually via AttachedPermissionsBoundary.builder()
.
When the Consumer
completes, SdkBuilder.build()
is called
immediately and its result is passed to permissionsBoundary(AttachedPermissionsBoundary)
.permissionsBoundary
- a consumer that will call methods on AttachedPermissionsBoundary.Builder
permissionsBoundary(AttachedPermissionsBoundary)
RoleDetail.Builder tags(Collection<Tag> tags)
A list of tags that are attached to the role. For more information about tagging, see Tagging IAM resources in the IAM User Guide.
tags
- A list of tags that are attached to the role. For more information about tagging, see Tagging IAM resources in the
IAM User Guide.RoleDetail.Builder tags(Tag... tags)
A list of tags that are attached to the role. For more information about tagging, see Tagging IAM resources in the IAM User Guide.
tags
- A list of tags that are attached to the role. For more information about tagging, see Tagging IAM resources in the
IAM User Guide.RoleDetail.Builder tags(Consumer<Tag.Builder>... tags)
A list of tags that are attached to the role. For more information about tagging, see Tagging IAM resources in the IAM User Guide.
This is a convenience that creates an instance of theList.Builder
avoiding the need to create
one manually via List#builder()
.
When the Consumer
completes, List.Builder#build()
is called immediately and its result
is passed to #tags(List)
.tags
- a consumer that will call methods on List.Builder
#tags(List)
RoleDetail.Builder roleLastUsed(RoleLastUsed roleLastUsed)
Contains information about the last time that an IAM role was used. This includes the date and time and the Region in which the role was last used. Activity is only reported for the trailing 400 days. This period can be shorter if your Region began supporting these features within the last year. The role might have been used more than 400 days ago. For more information, see Regions where data is tracked in the IAM User Guide.
roleLastUsed
- Contains information about the last time that an IAM role was used. This includes the date and time
and the Region in which the role was last used. Activity is only reported for the trailing 400 days.
This period can be shorter if your Region began supporting these features within the last year. The
role might have been used more than 400 days ago. For more information, see Regions where data is tracked in the IAM User Guide.default RoleDetail.Builder roleLastUsed(Consumer<RoleLastUsed.Builder> roleLastUsed)
Contains information about the last time that an IAM role was used. This includes the date and time and the Region in which the role was last used. Activity is only reported for the trailing 400 days. This period can be shorter if your Region began supporting these features within the last year. The role might have been used more than 400 days ago. For more information, see Regions where data is tracked in the IAM User Guide.
This is a convenience that creates an instance of theRoleLastUsed.Builder
avoiding the need to
create one manually via RoleLastUsed.builder()
.
When the Consumer
completes, SdkBuilder.build()
is called immediately and its
result is passed to roleLastUsed(RoleLastUsed)
.roleLastUsed
- a consumer that will call methods on RoleLastUsed.Builder
roleLastUsed(RoleLastUsed)
Copyright © 2021. All rights reserved.