Interface ImportKeyPairResponse.Builder

    • Method Detail

      • keyFingerprint

        ImportKeyPairResponse.Builder keyFingerprint​(String keyFingerprint)
        • For RSA key pairs, the key fingerprint is the MD5 public key fingerprint as specified in section 4 of RFC 4716.

        • For ED25519 key pairs, the key fingerprint is the base64-encoded SHA-256 digest, which is the default for OpenSSH, starting with OpenSSH 6.8.

        Parameters:
        keyFingerprint -
      • For RSA key pairs, the key fingerprint is the MD5 public key fingerprint as specified in section 4 of RFC 4716.

      • For ED25519 key pairs, the key fingerprint is the base64-encoded SHA-256 digest, which is the default for OpenSSH, starting with OpenSSH 6.8.

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

        ImportKeyPairResponse.Builder keyName​(String keyName)

        The key pair name that you provided.

        Parameters:
        keyName - The key pair name that you provided.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • keyPairId

        ImportKeyPairResponse.Builder keyPairId​(String keyPairId)

        The ID of the resulting key pair.

        Parameters:
        keyPairId - The ID of the resulting key pair.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • tags

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

        The tags applied to the imported key pair.

        Parameters:
        tags - The tags applied to the imported key pair.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • tags

        ImportKeyPairResponse.Builder tags​(Tag... tags)

        The tags applied to the imported key pair.

        Parameters:
        tags - The tags applied to the imported key pair.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • tags

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

        The tags applied to the imported key pair.

        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)