Class CfnDashboardPropsMixin.CostAndUsageQueryProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.bcm.CfnDashboardPropsMixin.CostAndUsageQueryProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnDashboardPropsMixin.CostAndUsageQueryProperty>
- Enclosing interface:
CfnDashboardPropsMixin.CostAndUsageQueryProperty
@Stability(Stable)
public static final class CfnDashboardPropsMixin.CostAndUsageQueryProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnDashboardPropsMixin.CostAndUsageQueryProperty>
A builder for
CfnDashboardPropsMixin.CostAndUsageQueryProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofCfnDashboardPropsMixin.CostAndUsageQueryProperty.getFilter()filter(IResolvable filter) Sets the value ofCfnDashboardPropsMixin.CostAndUsageQueryProperty.getFilter()granularity(String granularity) Sets the value ofCfnDashboardPropsMixin.CostAndUsageQueryProperty.getGranularity()Sets the value ofCfnDashboardPropsMixin.CostAndUsageQueryProperty.getGroupBy()groupBy(IResolvable groupBy) Sets the value ofCfnDashboardPropsMixin.CostAndUsageQueryProperty.getGroupBy()Sets the value ofCfnDashboardPropsMixin.CostAndUsageQueryProperty.getMetrics()Sets the value ofCfnDashboardPropsMixin.CostAndUsageQueryProperty.getTimeRange()timeRange(IResolvable timeRange) Sets the value ofCfnDashboardPropsMixin.CostAndUsageQueryProperty.getTimeRange()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
filter
@Stability(Stable) public CfnDashboardPropsMixin.CostAndUsageQueryProperty.Builder filter(IResolvable filter) Sets the value ofCfnDashboardPropsMixin.CostAndUsageQueryProperty.getFilter()- Parameters:
filter- the value to be set.- Returns:
this
-
filter
@Stability(Stable) public CfnDashboardPropsMixin.CostAndUsageQueryProperty.Builder filter(CfnDashboardPropsMixin.CostAndUsageExpressionProperty filter) Sets the value ofCfnDashboardPropsMixin.CostAndUsageQueryProperty.getFilter()- Parameters:
filter- the value to be set.- Returns:
this
-
granularity
@Stability(Stable) public CfnDashboardPropsMixin.CostAndUsageQueryProperty.Builder granularity(String granularity) Sets the value ofCfnDashboardPropsMixin.CostAndUsageQueryProperty.getGranularity()- Parameters:
granularity- the value to be set.- Returns:
this
-
groupBy
@Stability(Stable) public CfnDashboardPropsMixin.CostAndUsageQueryProperty.Builder groupBy(IResolvable groupBy) Sets the value ofCfnDashboardPropsMixin.CostAndUsageQueryProperty.getGroupBy()- Parameters:
groupBy- the value to be set.- Returns:
this
-
groupBy
@Stability(Stable) public CfnDashboardPropsMixin.CostAndUsageQueryProperty.Builder groupBy(List<? extends Object> groupBy) Sets the value ofCfnDashboardPropsMixin.CostAndUsageQueryProperty.getGroupBy()- Parameters:
groupBy- the value to be set.- Returns:
this
-
metrics
@Stability(Stable) public CfnDashboardPropsMixin.CostAndUsageQueryProperty.Builder metrics(List<String> metrics) Sets the value ofCfnDashboardPropsMixin.CostAndUsageQueryProperty.getMetrics()- Parameters:
metrics- the value to be set.- Returns:
this
-
timeRange
@Stability(Stable) public CfnDashboardPropsMixin.CostAndUsageQueryProperty.Builder timeRange(IResolvable timeRange) Sets the value ofCfnDashboardPropsMixin.CostAndUsageQueryProperty.getTimeRange()- Parameters:
timeRange- the value to be set.- Returns:
this
-
timeRange
@Stability(Stable) public CfnDashboardPropsMixin.CostAndUsageQueryProperty.Builder timeRange(CfnDashboardPropsMixin.DateTimeRangeProperty timeRange) Sets the value ofCfnDashboardPropsMixin.CostAndUsageQueryProperty.getTimeRange()- Parameters:
timeRange- the value to be set.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnDashboardPropsMixin.CostAndUsageQueryProperty>- Returns:
- a new instance of
CfnDashboardPropsMixin.CostAndUsageQueryProperty - Throws:
NullPointerException- if any required attribute was not provided
-