Interface KeyPair.Builder

All Superinterfaces:
Buildable, CopyableBuilder<KeyPair.Builder,KeyPair>, SdkBuilder<KeyPair.Builder,KeyPair>, SdkPojo
Enclosing class:
KeyPair

public static interface KeyPair.Builder extends SdkPojo, CopyableBuilder<KeyPair.Builder,KeyPair>
  • Method Details

    • name

      KeyPair.Builder name(String name)

      The friendly name of the SSH key pair.

      Parameters:
      name - The friendly name of the SSH key pair.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • arn

      The Amazon Resource Name (ARN) of the key pair ( arn:aws:lightsail:us-east-2:123456789101:KeyPair/05859e3d-331d-48ba-9034-12345EXAMPLE).

      Parameters:
      arn - The Amazon Resource Name (ARN) of the key pair ( arn:aws:lightsail:us-east-2:123456789101:KeyPair/05859e3d-331d-48ba-9034-12345EXAMPLE).
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • supportCode

      KeyPair.Builder supportCode(String supportCode)

      The support code. Include this code in your email to support when you have questions about an instance or another resource in Lightsail. This code enables our support team to look up your Lightsail information more easily.

      Parameters:
      supportCode - The support code. Include this code in your email to support when you have questions about an instance or another resource in Lightsail. This code enables our support team to look up your Lightsail information more easily.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • createdAt

      KeyPair.Builder createdAt(Instant createdAt)

      The timestamp when the key pair was created (1479816991.349).

      Parameters:
      createdAt - The timestamp when the key pair was created (1479816991.349).
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • location

      KeyPair.Builder location(ResourceLocation location)

      The region name and Availability Zone where the key pair was created.

      Parameters:
      location - The region name and Availability Zone where the key pair was created.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • location

      default KeyPair.Builder location(Consumer<ResourceLocation.Builder> location)

      The region name and Availability Zone where the key pair was created.

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

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to location(ResourceLocation).

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

      KeyPair.Builder resourceType(String resourceType)

      The resource type (usually KeyPair).

      Parameters:
      resourceType - The resource type (usually KeyPair).
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • resourceType

      KeyPair.Builder resourceType(ResourceType resourceType)

      The resource type (usually KeyPair).

      Parameters:
      resourceType - The resource type (usually KeyPair).
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • tags

      The tag keys and optional values for the resource. For more information about tags in Lightsail, see the Amazon Lightsail Developer Guide.

      Parameters:
      tags - The tag keys and optional values for the resource. For more information about tags in Lightsail, see the Amazon Lightsail Developer Guide.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • tags

      KeyPair.Builder tags(Tag... tags)

      The tag keys and optional values for the resource. For more information about tags in Lightsail, see the Amazon Lightsail Developer Guide.

      Parameters:
      tags - The tag keys and optional values for the resource. For more information about tags in Lightsail, see the Amazon Lightsail Developer Guide.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • tags

      The tag keys and optional values for the resource. For more information about tags in Lightsail, see the Amazon Lightsail Developer 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:
    • fingerprint

      KeyPair.Builder fingerprint(String fingerprint)

      The RSA fingerprint of the key pair.

      Parameters:
      fingerprint - The RSA fingerprint of the key pair.
      Returns:
      Returns a reference to this object so that method calls can be chained together.