Interface CreateKeyPairRequest.Builder

    • Method Detail

      • keyName

        CreateKeyPairRequest.Builder keyName​(String keyName)

        A unique name for the key pair.

        Constraints: Up to 255 ASCII characters

        Parameters:
        keyName - A unique name for the key pair.

        Constraints: Up to 255 ASCII characters

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

        CreateKeyPairRequest.Builder dryRun​(Boolean dryRun)

        Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

        Parameters:
        dryRun - Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • keyType

        CreateKeyPairRequest.Builder keyType​(String keyType)

        The type of key pair. Note that ED25519 keys are not supported for Windows instances.

        Default: rsa

        Parameters:
        keyType - The type of key pair. Note that ED25519 keys are not supported for Windows instances.

        Default: rsa

        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        KeyType, KeyType
      • keyType

        CreateKeyPairRequest.Builder keyType​(KeyType keyType)

        The type of key pair. Note that ED25519 keys are not supported for Windows instances.

        Default: rsa

        Parameters:
        keyType - The type of key pair. Note that ED25519 keys are not supported for Windows instances.

        Default: rsa

        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        KeyType, KeyType
      • tagSpecifications

        CreateKeyPairRequest.Builder tagSpecifications​(Collection<TagSpecification> tagSpecifications)

        The tags to apply to the new key pair.

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

        CreateKeyPairRequest.Builder tagSpecifications​(TagSpecification... tagSpecifications)

        The tags to apply to the new key pair.

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

        CreateKeyPairRequest.Builder keyFormat​(String keyFormat)

        The format of the key pair.

        Default: pem

        Parameters:
        keyFormat - The format of the key pair.

        Default: pem

        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        KeyFormat, KeyFormat
      • keyFormat

        CreateKeyPairRequest.Builder keyFormat​(KeyFormat keyFormat)

        The format of the key pair.

        Default: pem

        Parameters:
        keyFormat - The format of the key pair.

        Default: pem

        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        KeyFormat, KeyFormat