Interface InstanceProfile.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<InstanceProfile.Builder,
,InstanceProfile> SdkBuilder<InstanceProfile.Builder,
,InstanceProfile> SdkPojo
- Enclosing class:
InstanceProfile
-
Method Summary
Modifier and TypeMethodDescriptionThe Amazon Resource Name (ARN) specifying the instance profile.createDate
(Instant createDate) The date when the instance profile was created.instanceProfileId
(String instanceProfileId) The stable and unique string identifying the instance profile.instanceProfileName
(String instanceProfileName) The name identifying the instance profile.The path to the instance profile.roles
(Collection<Role> roles) The role associated with the instance profile.roles
(Consumer<Role.Builder>... roles) The role associated with the instance profile.The role associated with the instance profile.tags
(Collection<Tag> tags) A list of tags that are attached to the instance profile.tags
(Consumer<Tag.Builder>... tags) A list of tags that are attached to the instance profile.A list of tags that are attached to the instance profile.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
-
path
The path to the instance profile. For more information about paths, see IAM identifiers in the IAM User Guide.
- Parameters:
path
- The path to the instance profile. For more information about paths, see IAM identifiers in the IAM User Guide.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
instanceProfileName
The name identifying the instance profile.
- Parameters:
instanceProfileName
- The name identifying the instance profile.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
instanceProfileId
The stable and unique string identifying the instance profile. For more information about IDs, see IAM identifiers in the IAM User Guide.
- Parameters:
instanceProfileId
- The stable and unique string identifying the instance profile. For more information about IDs, see IAM identifiers in the IAM User Guide.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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 IAM User Guide.
- Parameters:
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 IAM User Guide.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
createDate
The date when the instance profile was created.
- Parameters:
createDate
- The date when the instance profile was created.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
roles
The role associated with the instance profile.
- Parameters:
roles
- The role associated with the instance profile.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
roles
The role associated with the instance profile.
- Parameters:
roles
- The role associated with the instance profile.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
roles
The role associated with the instance profile.
This is a convenience method that creates an instance of theRole.Builder
avoiding the need to create one manually viaRole.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toroles(List<Role>)
.- Parameters:
roles
- a consumer that will call methods onRole.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
tags
A list of tags that are attached to the instance profile. For more information about tagging, see Tagging IAM resources in the IAM User Guide.
- Parameters:
tags
- A list of tags that are attached to the instance profile. For more information about tagging, see Tagging IAM resources in the IAM User Guide.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
A list of tags that are attached to the instance profile. For more information about tagging, see Tagging IAM resources in the IAM User Guide.
- Parameters:
tags
- A list of tags that are attached to the instance profile. For more information about tagging, see Tagging IAM resources in the IAM User Guide.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
A list of tags that are attached to the instance profile. For more information about tagging, see Tagging IAM resources in the IAM User Guide.
This is a convenience method that creates an instance of theTag.Builder
avoiding the need to create one manually viaTag.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed totags(List<Tag>)
.- Parameters:
tags
- a consumer that will call methods onTag.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-