public static interface InstanceProfile.Builder extends CopyableBuilder<InstanceProfile.Builder,InstanceProfile>
Modifier and Type | Method and Description |
---|---|
InstanceProfile.Builder |
arn(String arn)
The Amazon Resource Name (ARN) specifying the instance profile.
|
InstanceProfile.Builder |
createDate(Instant createDate)
The date when the instance profile was created.
|
InstanceProfile.Builder |
instanceProfileId(String instanceProfileId)
The stable and unique string identifying the instance profile.
|
InstanceProfile.Builder |
instanceProfileName(String instanceProfileName)
The name identifying the instance profile.
|
InstanceProfile.Builder |
path(String path)
The path to the instance profile.
|
InstanceProfile.Builder |
roles(Collection<Role> roles)
The role associated with the instance profile.
|
InstanceProfile.Builder |
roles(Consumer<Role.Builder>... roles)
The role associated with the instance profile.
|
InstanceProfile.Builder |
roles(Role... roles)
The role associated with the instance profile.
|
copy
applyMutation, build
InstanceProfile.Builder path(String path)
The path to the instance profile. For more information about paths, see IAM Identifiers in the Using IAM guide.
path
- The path to the instance profile. For more information about paths, see IAM Identifiers in
the Using IAM guide.InstanceProfile.Builder instanceProfileName(String instanceProfileName)
The name identifying the instance profile.
instanceProfileName
- The name identifying the instance profile.InstanceProfile.Builder instanceProfileId(String instanceProfileId)
The stable and unique string identifying the instance profile. For more information about IDs, see IAM Identifiers in the Using IAM guide.
instanceProfileId
- The stable and unique string identifying the instance profile. For more information about IDs, see IAM Identifiers in
the Using IAM guide.InstanceProfile.Builder arn(String arn)
The Amazon Resource Name (ARN) specifying the instance profile. For more information about ARNs and how to use them in policies, see IAM Identifiers in the Using IAM guide.
arn
- The Amazon Resource Name (ARN) specifying the instance profile. For more information about ARNs and
how to use them in policies, see IAM Identifiers in
the Using IAM guide.InstanceProfile.Builder createDate(Instant createDate)
The date when the instance profile was created.
createDate
- The date when the instance profile was created.InstanceProfile.Builder roles(Collection<Role> roles)
The role associated with the instance profile.
roles
- The role associated with the instance profile.InstanceProfile.Builder roles(Role... roles)
The role associated with the instance profile.
roles
- The role associated with the instance profile.InstanceProfile.Builder roles(Consumer<Role.Builder>... roles)
The role associated with the instance profile.
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 #roles(List)
.roles
- a consumer that will call methods on List.Builder
#roles(List)
Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.