Class CfnAnomalyMonitorProps.Builder
java.lang.Object
software.amazon.awscdk.services.ce.CfnAnomalyMonitorProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnAnomalyMonitorProps>
- Enclosing interface:
CfnAnomalyMonitorProps
@Stability(Stable)
public static final class CfnAnomalyMonitorProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnAnomalyMonitorProps>
A builder for
CfnAnomalyMonitorProps
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.monitorDimension
(String monitorDimension) Sets the value ofCfnAnomalyMonitorProps.getMonitorDimension()
monitorName
(String monitorName) Sets the value ofCfnAnomalyMonitorProps.getMonitorName()
monitorSpecification
(String monitorSpecification) Sets the value ofCfnAnomalyMonitorProps.getMonitorSpecification()
monitorType
(String monitorType) Sets the value ofCfnAnomalyMonitorProps.getMonitorType()
resourceTags
(List<? extends Object> resourceTags) Sets the value ofCfnAnomalyMonitorProps.getResourceTags()
resourceTags
(IResolvable resourceTags) Sets the value ofCfnAnomalyMonitorProps.getResourceTags()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
monitorName
Sets the value ofCfnAnomalyMonitorProps.getMonitorName()
- Parameters:
monitorName
- The name of the monitor. This parameter is required.- Returns:
this
-
monitorType
Sets the value ofCfnAnomalyMonitorProps.getMonitorType()
- Parameters:
monitorType
- The possible type values. This parameter is required.- Returns:
this
-
monitorDimension
Sets the value ofCfnAnomalyMonitorProps.getMonitorDimension()
- Parameters:
monitorDimension
- The dimensions to evaluate.- Returns:
this
-
monitorSpecification
@Stability(Stable) public CfnAnomalyMonitorProps.Builder monitorSpecification(String monitorSpecification) Sets the value ofCfnAnomalyMonitorProps.getMonitorSpecification()
- Parameters:
monitorSpecification
- The array ofMonitorSpecification
in JSON array format. For instance, you can useMonitorSpecification
to specify a tag, Cost Category, or linked account for your custom anomaly monitor. For further information, see the Examples section of this page.- Returns:
this
-
resourceTags
Sets the value ofCfnAnomalyMonitorProps.getResourceTags()
- Parameters:
resourceTags
- Tags to assign to monitor.- Returns:
this
-
resourceTags
@Stability(Stable) public CfnAnomalyMonitorProps.Builder resourceTags(List<? extends Object> resourceTags) Sets the value ofCfnAnomalyMonitorProps.getResourceTags()
- Parameters:
resourceTags
- Tags to assign to monitor.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnAnomalyMonitorProps>
- Returns:
- a new instance of
CfnAnomalyMonitorProps
- Throws:
NullPointerException
- if any required attribute was not provided
-