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
Constructors -
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 CfnAnomalyMonitor.ResourceTagProperty> 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 type of the monitor. This parameter is required. Set this toDIMENSIONALfor an AWS managed monitor. AWS managed monitors automatically track up to the top 5,000 values by cost within a dimension of your choosing. Each dimension value is evaluated independently. If you start incurring cost in a new value of your chosen dimension, it will automatically be analyzed by an AWS managed monitor.Set this to
CUSTOMfor a customer managed monitor. Customer managed monitors let you select specific dimension values that get monitored in aggregate.For more information about monitor types, see Monitor types in the Billing and Cost Management User Guide .
- Returns:
this
-
monitorDimension
Sets the value ofCfnAnomalyMonitorProps.getMonitorDimension()- Parameters:
monitorDimension- For customer managed monitors, do not specify this field. For AWS managed monitors, this field controls which cost dimension is automatically analyzed by the monitor. ForTAGandCOST_CATEGORYdimensions, you must also specify MonitorSpecification to configure the specific tag or cost category key to analyze.- Returns:
this
-
monitorSpecification
@Stability(Stable) public CfnAnomalyMonitorProps.Builder monitorSpecification(String monitorSpecification) Sets the value ofCfnAnomalyMonitorProps.getMonitorSpecification()- Parameters:
monitorSpecification- The array ofMonitorSpecificationin JSON array format. For instance, you can useMonitorSpecificationto 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
@Stability(Stable) public CfnAnomalyMonitorProps.Builder resourceTags(List<? extends CfnAnomalyMonitor.ResourceTagProperty> resourceTags) Sets the value ofCfnAnomalyMonitorProps.getResourceTags()- Parameters:
resourceTags- Tags to assign to monitor.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnAnomalyMonitorProps>- Returns:
- a new instance of
CfnAnomalyMonitorProps - Throws:
NullPointerException- if any required attribute was not provided
-