Interface MetricPolicy.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<MetricPolicy.Builder,
,MetricPolicy> SdkBuilder<MetricPolicy.Builder,
,MetricPolicy> SdkPojo
- Enclosing class:
MetricPolicy
-
Method Summary
Modifier and TypeMethodDescriptioncontainerLevelMetrics
(String containerLevelMetrics) A setting to enable or disable metrics at the container level.containerLevelMetrics
(ContainerLevelMetrics containerLevelMetrics) A setting to enable or disable metrics at the container level.metricPolicyRules
(Collection<MetricPolicyRule> metricPolicyRules) A parameter that holds an array of rules that enable metrics at the object level.metricPolicyRules
(Consumer<MetricPolicyRule.Builder>... metricPolicyRules) A parameter that holds an array of rules that enable metrics at the object level.metricPolicyRules
(MetricPolicyRule... metricPolicyRules) A parameter that holds an array of rules that enable metrics at the object level.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
containerLevelMetrics
A setting to enable or disable metrics at the container level.
- Parameters:
containerLevelMetrics
- A setting to enable or disable metrics at the container level.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
containerLevelMetrics
A setting to enable or disable metrics at the container level.
- Parameters:
containerLevelMetrics
- A setting to enable or disable metrics at the container level.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
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.
- 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:
- Returns a reference to this object so that method calls can be chained together.
-
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.
- 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:
- Returns a reference to this object so that method calls can be chained together.
-
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.
This is a convenience method that creates an instance of theMetricPolicyRule.Builder
avoiding the need to create one manually viaMetricPolicyRule.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tometricPolicyRules(List<MetricPolicyRule>)
.- Parameters:
metricPolicyRules
- a consumer that will call methods onMetricPolicyRule.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-