Class CfnGlobalTable.ContributorInsightsSpecificationProperty.Builder
java.lang.Object
software.amazon.awscdk.services.dynamodb.CfnGlobalTable.ContributorInsightsSpecificationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnGlobalTable.ContributorInsightsSpecificationProperty>
- Enclosing interface:
CfnGlobalTable.ContributorInsightsSpecificationProperty
@Stability(Stable)
public static final class CfnGlobalTable.ContributorInsightsSpecificationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnGlobalTable.ContributorInsightsSpecificationProperty>
A builder for
CfnGlobalTable.ContributorInsightsSpecificationProperty
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.Sets the value ofCfnGlobalTable.ContributorInsightsSpecificationProperty.getEnabled()
enabled
(IResolvable enabled) Sets the value ofCfnGlobalTable.ContributorInsightsSpecificationProperty.getEnabled()
Sets the value ofCfnGlobalTable.ContributorInsightsSpecificationProperty.getMode()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
enabled
@Stability(Stable) public CfnGlobalTable.ContributorInsightsSpecificationProperty.Builder enabled(Boolean enabled) Sets the value ofCfnGlobalTable.ContributorInsightsSpecificationProperty.getEnabled()
- Parameters:
enabled
- Indicates whether CloudWatch Contributor Insights are to be enabled (true) or disabled (false). This parameter is required.- Returns:
this
-
enabled
@Stability(Stable) public CfnGlobalTable.ContributorInsightsSpecificationProperty.Builder enabled(IResolvable enabled) Sets the value ofCfnGlobalTable.ContributorInsightsSpecificationProperty.getEnabled()
- Parameters:
enabled
- Indicates whether CloudWatch Contributor Insights are to be enabled (true) or disabled (false). This parameter is required.- Returns:
this
-
mode
@Stability(Stable) public CfnGlobalTable.ContributorInsightsSpecificationProperty.Builder mode(String mode) Sets the value ofCfnGlobalTable.ContributorInsightsSpecificationProperty.getMode()
- Parameters:
mode
- Specifies the CloudWatch Contributor Insights mode for a global table. Valid values areACCESSED_AND_THROTTLED_KEYS
(tracks all access and throttled events) orTHROTTLED_KEYS
(tracks only throttled events). This setting determines what type of contributor insights data is collected for the global table.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnGlobalTable.ContributorInsightsSpecificationProperty>
- Returns:
- a new instance of
CfnGlobalTable.ContributorInsightsSpecificationProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-