Interface AnomalyMonitor.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<AnomalyMonitor.Builder,,AnomalyMonitor> SdkBuilder<AnomalyMonitor.Builder,,AnomalyMonitor> SdkPojo
- Enclosing class:
AnomalyMonitor
-
Method Summary
Modifier and TypeMethodDescriptioncreationDate(String creationDate) The date when the monitor was created.dimensionalValueCount(Integer dimensionalValueCount) The value for evaluated dimensions.lastEvaluatedDate(String lastEvaluatedDate) The date when the monitor last evaluated for anomalies.lastUpdatedDate(String lastUpdatedDate) The date when the monitor was last updated.monitorArn(String monitorArn) The Amazon Resource Name (ARN) value.monitorDimension(String monitorDimension) For customer managed monitors, do not specify this field.monitorDimension(MonitorDimension monitorDimension) For customer managed monitors, do not specify this field.monitorName(String monitorName) The name of the monitor.default AnomalyMonitor.BuildermonitorSpecification(Consumer<Expression.Builder> monitorSpecification) An Expression object used to control what costs the monitor analyzes for anomalies.monitorSpecification(Expression monitorSpecification) An Expression object used to control what costs the monitor analyzes for anomalies.monitorType(String monitorType) The type of the monitor.monitorType(MonitorType monitorType) The type of the monitor.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
monitorArn
The Amazon Resource Name (ARN) value.
- Parameters:
monitorArn- The Amazon Resource Name (ARN) value.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
monitorName
The name of the monitor.
- Parameters:
monitorName- The name of the monitor.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
creationDate
The date when the monitor was created.
- Parameters:
creationDate- The date when the monitor was created.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
lastUpdatedDate
The date when the monitor was last updated.
- Parameters:
lastUpdatedDate- The date when the monitor was last updated.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
lastEvaluatedDate
The date when the monitor last evaluated for anomalies.
- Parameters:
lastEvaluatedDate- The date when the monitor last evaluated for anomalies.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
monitorType
The type of the monitor.
Set this to
DIMENSIONALfor an Amazon Web Services managed monitor. Amazon Web Services 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 Amazon Web Services 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.
- Parameters:
monitorType- The type of the monitor.Set this to
DIMENSIONALfor an Amazon Web Services managed monitor. Amazon Web Services 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 Amazon Web Services 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:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
monitorType
The type of the monitor.
Set this to
DIMENSIONALfor an Amazon Web Services managed monitor. Amazon Web Services 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 Amazon Web Services 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.
- Parameters:
monitorType- The type of the monitor.Set this to
DIMENSIONALfor an Amazon Web Services managed monitor. Amazon Web Services 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 Amazon Web Services 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:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
monitorDimension
For customer managed monitors, do not specify this field.
For Amazon Web Services managed monitors, this field controls which cost dimension is automatically analyzed by the monitor. For
TAGandCOST_CATEGORYdimensions, you must also specify MonitorSpecification to configure the specific tag or cost category key to analyze.- Parameters:
monitorDimension- For customer managed monitors, do not specify this field.For Amazon Web Services managed monitors, this field controls which cost dimension is automatically analyzed by the monitor. For
TAGandCOST_CATEGORYdimensions, you must also specify MonitorSpecification to configure the specific tag or cost category key to analyze.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
monitorDimension
For customer managed monitors, do not specify this field.
For Amazon Web Services managed monitors, this field controls which cost dimension is automatically analyzed by the monitor. For
TAGandCOST_CATEGORYdimensions, you must also specify MonitorSpecification to configure the specific tag or cost category key to analyze.- Parameters:
monitorDimension- For customer managed monitors, do not specify this field.For Amazon Web Services managed monitors, this field controls which cost dimension is automatically analyzed by the monitor. For
TAGandCOST_CATEGORYdimensions, you must also specify MonitorSpecification to configure the specific tag or cost category key to analyze.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
monitorSpecification
An Expression object used to control what costs the monitor analyzes for anomalies.
For Amazon Web Services managed monitors:
-
If MonitorDimension is
SERVICEorLINKED_ACCOUNT, do not specify this field -
If MonitorDimension is
TAG, set this field to{ "Tags": { "Key": "your tag key" } } -
If MonitorDimension is
COST_CATEGORY, set this field to{ "CostCategories": { "Key": "your cost category key" } }
For customer managed monitors:
-
To track linked accounts, set this field to
{ "Dimensions": { "Key": "LINKED_ACCOUNT", "Values": [ "your list of up to 10 account IDs" ] } } -
To track cost allocation tags, set this field to
{ "Tags": { "Key": "your tag key", "Values": [ "your list of up to 10 tag values" ] } } -
To track cost categories, set this field to
{ "CostCategories": { "Key": "your cost category key", "Values": [ "your cost category value" ] } }
- Parameters:
monitorSpecification- An Expression object used to control what costs the monitor analyzes for anomalies.For Amazon Web Services managed monitors:
-
If MonitorDimension is
SERVICEorLINKED_ACCOUNT, do not specify this field -
If MonitorDimension is
TAG, set this field to{ "Tags": { "Key": "your tag key" } } -
If MonitorDimension is
COST_CATEGORY, set this field to{ "CostCategories": { "Key": "your cost category key" } }
For customer managed monitors:
-
To track linked accounts, set this field to
{ "Dimensions": { "Key": "LINKED_ACCOUNT", "Values": [ "your list of up to 10 account IDs" ] } } -
To track cost allocation tags, set this field to
{ "Tags": { "Key": "your tag key", "Values": [ "your list of up to 10 tag values" ] } } -
To track cost categories, set this field to
{ "CostCategories": { "Key": "your cost category key", "Values": [ "your cost category value" ] } }
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-
monitorSpecification
default AnomalyMonitor.Builder monitorSpecification(Consumer<Expression.Builder> monitorSpecification) An Expression object used to control what costs the monitor analyzes for anomalies.
For Amazon Web Services managed monitors:
-
If MonitorDimension is
SERVICEorLINKED_ACCOUNT, do not specify this field -
If MonitorDimension is
TAG, set this field to{ "Tags": { "Key": "your tag key" } } -
If MonitorDimension is
COST_CATEGORY, set this field to{ "CostCategories": { "Key": "your cost category key" } }
For customer managed monitors:
-
To track linked accounts, set this field to
{ "Dimensions": { "Key": "LINKED_ACCOUNT", "Values": [ "your list of up to 10 account IDs" ] } } -
To track cost allocation tags, set this field to
{ "Tags": { "Key": "your tag key", "Values": [ "your list of up to 10 tag values" ] } } -
To track cost categories, set this field to
{ "CostCategories": { "Key": "your cost category key", "Values": [ "your cost category value" ] } }
Expression.Builderavoiding the need to create one manually viaExpression.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tomonitorSpecification(Expression).- Parameters:
monitorSpecification- a consumer that will call methods onExpression.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
-
dimensionalValueCount
The value for evaluated dimensions.
- Parameters:
dimensionalValueCount- The value for evaluated dimensions.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-