Class TableLimits.Builder

  • Enclosing class:
    TableLimits

    public static class TableLimits.Builder
    extends Object
    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • maxReadUnits

        public TableLimits.Builder maxReadUnits​(Integer maxReadUnits)
        Maximum sustained read throughput limit for the table.
        Parameters:
        maxReadUnits - the value to set
        Returns:
        this builder
      • maxWriteUnits

        public TableLimits.Builder maxWriteUnits​(Integer maxWriteUnits)
        Maximum sustained write throughput limit for the table.
        Parameters:
        maxWriteUnits - the value to set
        Returns:
        this builder
      • maxStorageInGBs

        public TableLimits.Builder maxStorageInGBs​(Integer maxStorageInGBs)
        Maximum size of storage used by the table.
        Parameters:
        maxStorageInGBs - the value to set
        Returns:
        this builder
      • capacityMode

        public TableLimits.Builder capacityMode​(TableLimits.CapacityMode capacityMode)
        The capacity mode of the table.

        If capacityMode = ON_DEMAND, maxReadUnits and maxWriteUnits are not used, and both will have the value of zero.

        Parameters:
        capacityMode - the value to set
        Returns:
        this builder