Class KeyValueStore.Builder

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

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

    • create

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

      @Stability(Stable) public KeyValueStore.Builder comment(String comment)
      A comment for the Key Value Store.

      Default: No comment will be specified

      Parameters:
      comment - A comment for the Key Value Store. This parameter is required.
      Returns:
      this
    • keyValueStoreName

      @Stability(Stable) public KeyValueStore.Builder keyValueStoreName(String keyValueStoreName)
      The unique name of the Key Value Store.

      Default: A generated name

      Parameters:
      keyValueStoreName - The unique name of the Key Value Store. This parameter is required.
      Returns:
      this
    • source

      @Stability(Stable) public KeyValueStore.Builder source(ImportSource source)
      The import source for the Key Value Store.

      This will populate the initial items in the Key Value Store. The source data must be in a valid JSON format.

      Default: No data will be imported to the store

      Parameters:
      source - The import source for the Key Value Store. This parameter is required.
      Returns:
      this
    • build

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