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 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

      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

      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

      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

      The role associated with the instance profile.

      This is a convenience method that creates an instance of the Role.Builder avoiding the need to create one manually via Role.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to roles(List<Role>).

      Parameters:
      roles - a consumer that will call methods on Role.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 the Tag.Builder avoiding the need to create one manually via Tag.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to tags(List<Tag>).

      Parameters:
      tags - a consumer that will call methods on Tag.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also: