Class PublicKey.Builder

java.lang.Object
software.amazon.awscdk.services.cloudfront.PublicKey.Builder
All Implemented Interfaces:
software.amazon.jsii.Builder<PublicKey>
Enclosing class:
PublicKey

@Stability(Stable) public static final class PublicKey.Builder extends Object implements software.amazon.jsii.Builder<PublicKey>
A fluent builder for PublicKey.
  • Method Details

    • create

      @Stability(Stable) public static PublicKey.Builder create(software.constructs.Construct scope, String id)
      Parameters:
      scope - This parameter is required.
      id - This parameter is required.
      Returns:
      a new instance of PublicKey.Builder.
    • encodedKey

      @Stability(Stable) public PublicKey.Builder encodedKey(String encodedKey)
      The public key that you can use with signed URLs and signed cookies, or with field-level encryption.

      The encodedKey parameter must include -----BEGIN PUBLIC KEY----- and -----END PUBLIC KEY----- lines.

      Parameters:
      encodedKey - The public key that you can use with signed URLs and signed cookies, or with field-level encryption. This parameter is required.
      Returns:
      this
      See Also:
    • comment

      @Stability(Stable) public PublicKey.Builder comment(String comment)
      A comment to describe the public key.

      Default: - no comment

      Parameters:
      comment - A comment to describe the public key. This parameter is required.
      Returns:
      this
    • publicKeyName

      @Stability(Stable) public PublicKey.Builder publicKeyName(String publicKeyName)
      A name to identify the public key.

      Default: - generated from the `id`

      Parameters:
      publicKeyName - A name to identify the public key. This parameter is required.
      Returns:
      this
    • build

      @Stability(Stable) public PublicKey build()
      Specified by:
      build in interface software.amazon.jsii.Builder<PublicKey>
      Returns:
      a newly built instance of PublicKey.