Class CfnGlobalTablePropsMixin.GlobalSecondaryIndexProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.dynamodb.CfnGlobalTablePropsMixin.GlobalSecondaryIndexProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnGlobalTablePropsMixin.GlobalSecondaryIndexProperty>
- Enclosing interface:
CfnGlobalTablePropsMixin.GlobalSecondaryIndexProperty
@Stability(Stable)
public static final class CfnGlobalTablePropsMixin.GlobalSecondaryIndexProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnGlobalTablePropsMixin.GlobalSecondaryIndexProperty>
A builder for
CfnGlobalTablePropsMixin.GlobalSecondaryIndexProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofCfnGlobalTablePropsMixin.GlobalSecondaryIndexProperty.getIndexName()Sets the value ofCfnGlobalTablePropsMixin.GlobalSecondaryIndexProperty.getKeySchema()keySchema(IResolvable keySchema) Sets the value ofCfnGlobalTablePropsMixin.GlobalSecondaryIndexProperty.getKeySchema()Sets the value ofCfnGlobalTablePropsMixin.GlobalSecondaryIndexProperty.getProjection()projection(IResolvable projection) Sets the value ofCfnGlobalTablePropsMixin.GlobalSecondaryIndexProperty.getProjection()readOnDemandThroughputSettings(CfnGlobalTablePropsMixin.ReadOnDemandThroughputSettingsProperty readOnDemandThroughputSettings) readOnDemandThroughputSettings(IResolvable readOnDemandThroughputSettings) readProvisionedThroughputSettings(CfnGlobalTablePropsMixin.GlobalReadProvisionedThroughputSettingsProperty readProvisionedThroughputSettings) readProvisionedThroughputSettings(IResolvable readProvisionedThroughputSettings) warmThroughput(CfnGlobalTablePropsMixin.WarmThroughputProperty warmThroughput) warmThroughput(IResolvable warmThroughput) writeOnDemandThroughputSettings(CfnGlobalTablePropsMixin.WriteOnDemandThroughputSettingsProperty writeOnDemandThroughputSettings) writeOnDemandThroughputSettings(IResolvable writeOnDemandThroughputSettings) writeProvisionedThroughputSettings(CfnGlobalTablePropsMixin.WriteProvisionedThroughputSettingsProperty writeProvisionedThroughputSettings) writeProvisionedThroughputSettings(IResolvable writeProvisionedThroughputSettings)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
indexName
@Stability(Stable) public CfnGlobalTablePropsMixin.GlobalSecondaryIndexProperty.Builder indexName(String indexName) Sets the value ofCfnGlobalTablePropsMixin.GlobalSecondaryIndexProperty.getIndexName()- Parameters:
indexName- The name of the global secondary index. The name must be unique among all other indexes on this table.- Returns:
this
-
keySchema
@Stability(Stable) public CfnGlobalTablePropsMixin.GlobalSecondaryIndexProperty.Builder keySchema(IResolvable keySchema) Sets the value ofCfnGlobalTablePropsMixin.GlobalSecondaryIndexProperty.getKeySchema()- Parameters:
keySchema- The complete key schema for a global secondary index, which consists of one or more pairs of attribute names and key types: -HASH- partition key -RANGE- sort key > The partition key of an item is also known as its hash attribute . The term "hash attribute" derives from DynamoDB's usage of an internal hash function to evenly distribute data items across partitions, based on their partition key values.The sort key of an item is also known as its range attribute . The term "range attribute" derives from the way DynamoDB stores items with the same partition key physically close together, in sorted order by the sort key value.
- Returns:
this
-
keySchema
@Stability(Stable) public CfnGlobalTablePropsMixin.GlobalSecondaryIndexProperty.Builder keySchema(List<? extends Object> keySchema) Sets the value ofCfnGlobalTablePropsMixin.GlobalSecondaryIndexProperty.getKeySchema()- Parameters:
keySchema- The complete key schema for a global secondary index, which consists of one or more pairs of attribute names and key types: -HASH- partition key -RANGE- sort key > The partition key of an item is also known as its hash attribute . The term "hash attribute" derives from DynamoDB's usage of an internal hash function to evenly distribute data items across partitions, based on their partition key values.The sort key of an item is also known as its range attribute . The term "range attribute" derives from the way DynamoDB stores items with the same partition key physically close together, in sorted order by the sort key value.
- Returns:
this
-
projection
@Stability(Stable) public CfnGlobalTablePropsMixin.GlobalSecondaryIndexProperty.Builder projection(IResolvable projection) Sets the value ofCfnGlobalTablePropsMixin.GlobalSecondaryIndexProperty.getProjection()- Parameters:
projection- Represents attributes that are copied (projected) from the table into the global secondary index. These are in addition to the primary key attributes and index key attributes, which are automatically projected.- Returns:
this
-
projection
@Stability(Stable) public CfnGlobalTablePropsMixin.GlobalSecondaryIndexProperty.Builder projection(CfnGlobalTablePropsMixin.ProjectionProperty projection) Sets the value ofCfnGlobalTablePropsMixin.GlobalSecondaryIndexProperty.getProjection()- Parameters:
projection- Represents attributes that are copied (projected) from the table into the global secondary index. These are in addition to the primary key attributes and index key attributes, which are automatically projected.- Returns:
this
-
readOnDemandThroughputSettings
@Stability(Stable) public CfnGlobalTablePropsMixin.GlobalSecondaryIndexProperty.Builder readOnDemandThroughputSettings(IResolvable readOnDemandThroughputSettings) Sets the value ofCfnGlobalTablePropsMixin.GlobalSecondaryIndexProperty.getReadOnDemandThroughputSettings()- Parameters:
readOnDemandThroughputSettings- the value to be set.- Returns:
this
-
readOnDemandThroughputSettings
@Stability(Stable) public CfnGlobalTablePropsMixin.GlobalSecondaryIndexProperty.Builder readOnDemandThroughputSettings(CfnGlobalTablePropsMixin.ReadOnDemandThroughputSettingsProperty readOnDemandThroughputSettings) Sets the value ofCfnGlobalTablePropsMixin.GlobalSecondaryIndexProperty.getReadOnDemandThroughputSettings()- Parameters:
readOnDemandThroughputSettings- the value to be set.- Returns:
this
-
readProvisionedThroughputSettings
@Stability(Stable) public CfnGlobalTablePropsMixin.GlobalSecondaryIndexProperty.Builder readProvisionedThroughputSettings(IResolvable readProvisionedThroughputSettings) Sets the value ofCfnGlobalTablePropsMixin.GlobalSecondaryIndexProperty.getReadProvisionedThroughputSettings()- Parameters:
readProvisionedThroughputSettings- the value to be set.- Returns:
this
-
readProvisionedThroughputSettings
@Stability(Stable) public CfnGlobalTablePropsMixin.GlobalSecondaryIndexProperty.Builder readProvisionedThroughputSettings(CfnGlobalTablePropsMixin.GlobalReadProvisionedThroughputSettingsProperty readProvisionedThroughputSettings) Sets the value ofCfnGlobalTablePropsMixin.GlobalSecondaryIndexProperty.getReadProvisionedThroughputSettings()- Parameters:
readProvisionedThroughputSettings- the value to be set.- Returns:
this
-
warmThroughput
@Stability(Stable) public CfnGlobalTablePropsMixin.GlobalSecondaryIndexProperty.Builder warmThroughput(IResolvable warmThroughput) - Parameters:
warmThroughput- Represents the warm throughput value (in read units per second and write units per second) for the specified secondary index. If you use this parameter, you must specifyReadUnitsPerSecond,WriteUnitsPerSecond, or both.- Returns:
this
-
warmThroughput
@Stability(Stable) public CfnGlobalTablePropsMixin.GlobalSecondaryIndexProperty.Builder warmThroughput(CfnGlobalTablePropsMixin.WarmThroughputProperty warmThroughput) - Parameters:
warmThroughput- Represents the warm throughput value (in read units per second and write units per second) for the specified secondary index. If you use this parameter, you must specifyReadUnitsPerSecond,WriteUnitsPerSecond, or both.- Returns:
this
-
writeOnDemandThroughputSettings
@Stability(Stable) public CfnGlobalTablePropsMixin.GlobalSecondaryIndexProperty.Builder writeOnDemandThroughputSettings(IResolvable writeOnDemandThroughputSettings) Sets the value ofCfnGlobalTablePropsMixin.GlobalSecondaryIndexProperty.getWriteOnDemandThroughputSettings()- Parameters:
writeOnDemandThroughputSettings- Sets the write request settings for a global table or a global secondary index. You can only specify this setting if your resource uses thePAY_PER_REQUESTBillingMode.- Returns:
this
-
writeOnDemandThroughputSettings
@Stability(Stable) public CfnGlobalTablePropsMixin.GlobalSecondaryIndexProperty.Builder writeOnDemandThroughputSettings(CfnGlobalTablePropsMixin.WriteOnDemandThroughputSettingsProperty writeOnDemandThroughputSettings) Sets the value ofCfnGlobalTablePropsMixin.GlobalSecondaryIndexProperty.getWriteOnDemandThroughputSettings()- Parameters:
writeOnDemandThroughputSettings- Sets the write request settings for a global table or a global secondary index. You can only specify this setting if your resource uses thePAY_PER_REQUESTBillingMode.- Returns:
this
-
writeProvisionedThroughputSettings
@Stability(Stable) public CfnGlobalTablePropsMixin.GlobalSecondaryIndexProperty.Builder writeProvisionedThroughputSettings(IResolvable writeProvisionedThroughputSettings) Sets the value ofCfnGlobalTablePropsMixin.GlobalSecondaryIndexProperty.getWriteProvisionedThroughputSettings()- Parameters:
writeProvisionedThroughputSettings- Defines write capacity settings for the global secondary index. You must specify a value for this property if the table'sBillingModeisPROVISIONED. All replicas will have the same write capacity settings for this global secondary index.- Returns:
this
-
writeProvisionedThroughputSettings
@Stability(Stable) public CfnGlobalTablePropsMixin.GlobalSecondaryIndexProperty.Builder writeProvisionedThroughputSettings(CfnGlobalTablePropsMixin.WriteProvisionedThroughputSettingsProperty writeProvisionedThroughputSettings) Sets the value ofCfnGlobalTablePropsMixin.GlobalSecondaryIndexProperty.getWriteProvisionedThroughputSettings()- Parameters:
writeProvisionedThroughputSettings- Defines write capacity settings for the global secondary index. You must specify a value for this property if the table'sBillingModeisPROVISIONED. All replicas will have the same write capacity settings for this global secondary index.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnGlobalTablePropsMixin.GlobalSecondaryIndexProperty>- Returns:
- a new instance of
CfnGlobalTablePropsMixin.GlobalSecondaryIndexProperty - Throws:
NullPointerException- if any required attribute was not provided
-