Interface ImportKeyPairRequest.Builder

    • Method Detail

      • dryRun

        ImportKeyPairRequest.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.
      • keyName

        ImportKeyPairRequest.Builder keyName​(String keyName)

        A unique name for the key pair.

        Parameters:
        keyName - A unique name for the key pair.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • publicKeyMaterial

        ImportKeyPairRequest.Builder publicKeyMaterial​(SdkBytes publicKeyMaterial)

        The public key. For API calls, the text must be base64-encoded. For command line tools, base64 encoding is performed for you.

        Parameters:
        publicKeyMaterial - The public key. For API calls, the text must be base64-encoded. For command line tools, base64 encoding is performed for you.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • tagSpecifications

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

        The tags to apply to the imported key pair.

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

        ImportKeyPairRequest.Builder tagSpecifications​(TagSpecification... tagSpecifications)

        The tags to apply to the imported key pair.

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