Class SchemaOptions.Builder

java.lang.Object
software.amazon.awscdk.services.dynamodb.SchemaOptions.Builder
All Implemented Interfaces:
software.amazon.jsii.Builder<SchemaOptions>
Enclosing interface:
SchemaOptions

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

    • Builder

      public Builder()
  • Method Details

    • partitionKey

      @Stability(Stable) public SchemaOptions.Builder partitionKey(Attribute partitionKey)
      Parameters:
      partitionKey - Partition key attribute definition. If a single field forms the partition key, you can use this field. Use the partitionKeys field if the partition key is a multi-attribute key (consists of multiple fields).
      Returns:
      this
    • sortKey

      @Stability(Stable) public SchemaOptions.Builder sortKey(Attribute sortKey)
      Sets the value of SchemaOptions.getSortKey()
      Parameters:
      sortKey - Sort key attribute definition. If a single field forms the sort key, you can use this field. Use the sortKeys field if the sort key is a multi-attribute key (consists of multiple fields).
      Returns:
      this
    • build

      @Stability(Stable) public SchemaOptions build()
      Builds the configured instance.
      Specified by:
      build in interface software.amazon.jsii.Builder<SchemaOptions>
      Returns:
      a new instance of SchemaOptions
      Throws:
      NullPointerException - if any required attribute was not provided