Class CfnFleetMetricMixinProps.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.iot.CfnFleetMetricMixinProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnFleetMetricMixinProps>
- Enclosing interface:
CfnFleetMetricMixinProps
@Stability(Stable)
public static final class CfnFleetMetricMixinProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnFleetMetricMixinProps>
A builder for
CfnFleetMetricMixinProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaggregationField(String aggregationField) Sets the value ofCfnFleetMetricMixinProps.getAggregationField()aggregationType(CfnFleetMetricPropsMixin.AggregationTypeProperty aggregationType) Sets the value ofCfnFleetMetricMixinProps.getAggregationType()aggregationType(IResolvable aggregationType) Sets the value ofCfnFleetMetricMixinProps.getAggregationType()build()Builds the configured instance.description(String description) Sets the value ofCfnFleetMetricMixinProps.getDescription()Sets the value ofCfnFleetMetricMixinProps.getIndexName()metricName(String metricName) Sets the value ofCfnFleetMetricMixinProps.getMetricName()Sets the value ofCfnFleetMetricMixinProps.getPeriod()queryString(String queryString) Sets the value ofCfnFleetMetricMixinProps.getQueryString()queryVersion(String queryVersion) Sets the value ofCfnFleetMetricMixinProps.getQueryVersion()Sets the value ofCfnFleetMetricMixinProps.getTags()Sets the value ofCfnFleetMetricMixinProps.getUnit()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
aggregationField
@Stability(Stable) public CfnFleetMetricMixinProps.Builder aggregationField(String aggregationField) Sets the value ofCfnFleetMetricMixinProps.getAggregationField()- Parameters:
aggregationField- The field to aggregate.- Returns:
this
-
aggregationType
@Stability(Stable) public CfnFleetMetricMixinProps.Builder aggregationType(IResolvable aggregationType) Sets the value ofCfnFleetMetricMixinProps.getAggregationType()- Parameters:
aggregationType- The type of the aggregation query.- Returns:
this
-
aggregationType
@Stability(Stable) public CfnFleetMetricMixinProps.Builder aggregationType(CfnFleetMetricPropsMixin.AggregationTypeProperty aggregationType) Sets the value ofCfnFleetMetricMixinProps.getAggregationType()- Parameters:
aggregationType- The type of the aggregation query.- Returns:
this
-
description
Sets the value ofCfnFleetMetricMixinProps.getDescription()- Parameters:
description- The fleet metric description.- Returns:
this
-
indexName
Sets the value ofCfnFleetMetricMixinProps.getIndexName()- Parameters:
indexName- The name of the index to search.- Returns:
this
-
metricName
Sets the value ofCfnFleetMetricMixinProps.getMetricName()- Parameters:
metricName- The name of the fleet metric to create.- Returns:
this
-
period
Sets the value ofCfnFleetMetricMixinProps.getPeriod()- Parameters:
period- The time in seconds between fleet metric emissions. Range [60(1 min), 86400(1 day)] and must be multiple of 60.- Returns:
this
-
queryString
Sets the value ofCfnFleetMetricMixinProps.getQueryString()- Parameters:
queryString- The search query string.- Returns:
this
-
queryVersion
Sets the value ofCfnFleetMetricMixinProps.getQueryVersion()- Parameters:
queryVersion- The query version.- Returns:
this
-
tags
Sets the value ofCfnFleetMetricMixinProps.getTags()- Parameters:
tags- Metadata which can be used to manage the fleet metric.- Returns:
this
-
unit
Sets the value ofCfnFleetMetricMixinProps.getUnit()- Parameters:
unit- Used to support unit transformation such as milliseconds to seconds. Must be a unit supported by CW metric. Default to null.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnFleetMetricMixinProps>- Returns:
- a new instance of
CfnFleetMetricMixinProps - Throws:
NullPointerException- if any required attribute was not provided
-