public static interface RoleDetail.Builder extends 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 |
roleId(String roleId)
The stable and unique string identifying the role.
|
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.
|
copy
applyMutation, build
RoleDetail.Builder path(String path)
The path to the role. For more information about paths, see IAM Identifiers in the Using IAM guide.
path
- The path to the role. For more information about paths, see IAM Identifiers in
the Using IAM 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 Using IAM guide.
roleId
- The stable and unique string identifying the role. For more information about IDs, see IAM Identifiers in
the Using IAM 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)
Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.