Interface InstanceProfile.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<InstanceProfile.Builder,InstanceProfile>,SdkBuilder<InstanceProfile.Builder,InstanceProfile>,SdkPojo
- Enclosing class:
- InstanceProfile
public static interface InstanceProfile.Builder extends SdkPojo, CopyableBuilder<InstanceProfile.Builder,InstanceProfile>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description InstanceProfile.Builderarn(String arn)The Amazon Resource Name (ARN) specifying the instance profile.InstanceProfile.BuildercreateDate(Instant createDate)The date when the instance profile was created.InstanceProfile.BuilderinstanceProfileId(String instanceProfileId)The stable and unique string identifying the instance profile.InstanceProfile.BuilderinstanceProfileName(String instanceProfileName)The name identifying the instance profile.InstanceProfile.Builderpath(String path)The path to the instance profile.InstanceProfile.Builderroles(Collection<Role> roles)The role associated with the instance profile.InstanceProfile.Builderroles(Consumer<Role.Builder>... roles)The role associated with the instance profile.InstanceProfile.Builderroles(Role... roles)The role associated with the instance profile.InstanceProfile.Buildertags(Collection<Tag> tags)A list of tags that are attached to the instance profile.InstanceProfile.Buildertags(Consumer<Tag.Builder>... tags)A list of tags that are attached to the instance profile.InstanceProfile.Buildertags(Tag... tags)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 Detail
-
path
InstanceProfile.Builder path(String 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
InstanceProfile.Builder instanceProfileName(String 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
InstanceProfile.Builder instanceProfileId(String 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
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 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
InstanceProfile.Builder createDate(Instant 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
InstanceProfile.Builder roles(Collection<Role> 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
InstanceProfile.Builder roles(Role... 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
InstanceProfile.Builder roles(Consumer<Role.Builder>... roles)
The role associated with the instance profile.
This is a convenience method that creates an instance of theRole.Builderavoiding the need to create one manually viaRole.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#roles(List.) - 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:
#roles(java.util.Collection)
-
tags
InstanceProfile.Builder tags(Collection<Tag> 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
InstanceProfile.Builder tags(Tag... 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
InstanceProfile.Builder tags(Consumer<Tag.Builder>... 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.Builderavoiding the need to create one manually viaTag.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#tags(List.) - 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:
#tags(java.util.Collection)
-
-