Class CfnContainer.MetricPolicyProperty.Builder
java.lang.Object
software.amazon.awscdk.services.mediastore.CfnContainer.MetricPolicyProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnContainer.MetricPolicyProperty>
- Enclosing interface:
- CfnContainer.MetricPolicyProperty
@Stability(Stable)
public static final class CfnContainer.MetricPolicyProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnContainer.MetricPolicyProperty>
A builder for
CfnContainer.MetricPolicyProperty
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.containerLevelMetrics
(String containerLevelMetrics) Sets the value ofCfnContainer.MetricPolicyProperty.getContainerLevelMetrics()
metricPolicyRules
(List<? extends Object> metricPolicyRules) Sets the value ofCfnContainer.MetricPolicyProperty.getMetricPolicyRules()
metricPolicyRules
(IResolvable metricPolicyRules) Sets the value ofCfnContainer.MetricPolicyProperty.getMetricPolicyRules()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
containerLevelMetrics
@Stability(Stable) public CfnContainer.MetricPolicyProperty.Builder containerLevelMetrics(String containerLevelMetrics) Sets the value ofCfnContainer.MetricPolicyProperty.getContainerLevelMetrics()
- Parameters:
containerLevelMetrics
- A setting to enable or disable metrics at the container level. This parameter is required.- Returns:
this
-
metricPolicyRules
@Stability(Stable) public CfnContainer.MetricPolicyProperty.Builder metricPolicyRules(IResolvable metricPolicyRules) Sets the value ofCfnContainer.MetricPolicyProperty.getMetricPolicyRules()
- Parameters:
metricPolicyRules
- A parameter that holds an array of rules that enable metrics at the object level. This parameter is optional, but if you choose to include it, you must also include at least one rule. By default, you can include up to five rules. You can also request a quota increase to allow up to 300 rules per policy.- Returns:
this
-
metricPolicyRules
@Stability(Stable) public CfnContainer.MetricPolicyProperty.Builder metricPolicyRules(List<? extends Object> metricPolicyRules) Sets the value ofCfnContainer.MetricPolicyProperty.getMetricPolicyRules()
- Parameters:
metricPolicyRules
- A parameter that holds an array of rules that enable metrics at the object level. This parameter is optional, but if you choose to include it, you must also include at least one rule. By default, you can include up to five rules. You can also request a quota increase to allow up to 300 rules per policy.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnContainer.MetricPolicyProperty>
- Returns:
- a new instance of
CfnContainer.MetricPolicyProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-