Interface CreateKeyPairRequest.Builder

    • Method Detail

      • keyPairName

        CreateKeyPairRequest.Builder keyPairName​(String keyPairName)

        The name for your new key pair.

        Parameters:
        keyPairName - The name for your new key pair.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • tags

        CreateKeyPairRequest.Builder tags​(Collection<Tag> tags)

        The tag keys and optional values to add to the resource during create.

        Use the TagResource action to tag a resource after it's created.

        Parameters:
        tags - The tag keys and optional values to add to the resource during create.

        Use the TagResource action to tag a resource after it's created.

        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • tags

        CreateKeyPairRequest.Builder tags​(Tag... tags)

        The tag keys and optional values to add to the resource during create.

        Use the TagResource action to tag a resource after it's created.

        Parameters:
        tags - The tag keys and optional values to add to the resource during create.

        Use the TagResource action to tag a resource after it's created.

        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • tags

        CreateKeyPairRequest.Builder tags​(Consumer<Tag.Builder>... tags)

        The tag keys and optional values to add to the resource during create.

        Use the TagResource action to tag a resource after it's created.

        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)