Class CfnAnomalyMonitorMixinProps.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.ce.CfnAnomalyMonitorMixinProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnAnomalyMonitorMixinProps>
- Enclosing interface:
CfnAnomalyMonitorMixinProps
@Stability(Stable)
public static final class CfnAnomalyMonitorMixinProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnAnomalyMonitorMixinProps>
A builder for
CfnAnomalyMonitorMixinProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.monitorDimension(String monitorDimension) Sets the value ofCfnAnomalyMonitorMixinProps.getMonitorDimension()monitorName(String monitorName) Sets the value ofCfnAnomalyMonitorMixinProps.getMonitorName()monitorSpecification(String monitorSpecification) Sets the value ofCfnAnomalyMonitorMixinProps.getMonitorSpecification()monitorType(String monitorType) Sets the value ofCfnAnomalyMonitorMixinProps.getMonitorType()resourceTags(List<? extends CfnAnomalyMonitorPropsMixin.ResourceTagProperty> resourceTags) Sets the value ofCfnAnomalyMonitorMixinProps.getResourceTags()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
monitorDimension
@Stability(Stable) public CfnAnomalyMonitorMixinProps.Builder monitorDimension(String monitorDimension) Sets the value ofCfnAnomalyMonitorMixinProps.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
-
monitorName
Sets the value ofCfnAnomalyMonitorMixinProps.getMonitorName()- Parameters:
monitorName- The name of the monitor.- Returns:
this
-
monitorSpecification
@Stability(Stable) public CfnAnomalyMonitorMixinProps.Builder monitorSpecification(String monitorSpecification) Sets the value ofCfnAnomalyMonitorMixinProps.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
-
monitorType
Sets the value ofCfnAnomalyMonitorMixinProps.getMonitorType()- Parameters:
monitorType- The type of the monitor. 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
-
resourceTags
@Stability(Stable) public CfnAnomalyMonitorMixinProps.Builder resourceTags(List<? extends CfnAnomalyMonitorPropsMixin.ResourceTagProperty> resourceTags) Sets the value ofCfnAnomalyMonitorMixinProps.getResourceTags()- Parameters:
resourceTags- Tags to assign to monitor.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnAnomalyMonitorMixinProps>- Returns:
- a new instance of
CfnAnomalyMonitorMixinProps - Throws:
NullPointerException- if any required attribute was not provided
-