Interface KeyPair.Builder

    • Method Detail

      • 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

        KeyPair.Builder arn​(String 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.
      • 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, ResourceType
      • 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:
        ResourceType, ResourceType
      • 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

        KeyPair.Builder tags​(Consumer<Tag.Builder>... 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).

        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:
        #tags(java.util.Collection)
      • 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.