Class CfnDashboardPropsMixin.PeriodToDateComputationProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.quicksight.CfnDashboardPropsMixin.PeriodToDateComputationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnDashboardPropsMixin.PeriodToDateComputationProperty>
- Enclosing interface:
CfnDashboardPropsMixin.PeriodToDateComputationProperty
@Stability(Stable)
public static final class CfnDashboardPropsMixin.PeriodToDateComputationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnDashboardPropsMixin.PeriodToDateComputationProperty>
A builder for
CfnDashboardPropsMixin.PeriodToDateComputationProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.computationId(String computationId) Sets the value ofCfnDashboardPropsMixin.PeriodToDateComputationProperty.getName()periodTimeGranularity(String periodTimeGranularity) Sets the value ofCfnDashboardPropsMixin.PeriodToDateComputationProperty.getTime()time(IResolvable time) Sets the value ofCfnDashboardPropsMixin.PeriodToDateComputationProperty.getTime()Sets the value ofCfnDashboardPropsMixin.PeriodToDateComputationProperty.getValue()value(IResolvable value) Sets the value ofCfnDashboardPropsMixin.PeriodToDateComputationProperty.getValue()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
computationId
@Stability(Stable) public CfnDashboardPropsMixin.PeriodToDateComputationProperty.Builder computationId(String computationId) - Parameters:
computationId- The ID for a computation.- Returns:
this
-
name
@Stability(Stable) public CfnDashboardPropsMixin.PeriodToDateComputationProperty.Builder name(String name) Sets the value ofCfnDashboardPropsMixin.PeriodToDateComputationProperty.getName()- Parameters:
name- The name of a computation.- Returns:
this
-
periodTimeGranularity
@Stability(Stable) public CfnDashboardPropsMixin.PeriodToDateComputationProperty.Builder periodTimeGranularity(String periodTimeGranularity) - Parameters:
periodTimeGranularity- The time granularity setup of period to date computation. Choose from the following options:.- YEAR: Year to date.
- MONTH: Month to date.
- Returns:
this
-
time
@Stability(Stable) public CfnDashboardPropsMixin.PeriodToDateComputationProperty.Builder time(IResolvable time) Sets the value ofCfnDashboardPropsMixin.PeriodToDateComputationProperty.getTime()- Parameters:
time- The time field that is used in a computation.- Returns:
this
-
time
@Stability(Stable) public CfnDashboardPropsMixin.PeriodToDateComputationProperty.Builder time(CfnDashboardPropsMixin.DimensionFieldProperty time) Sets the value ofCfnDashboardPropsMixin.PeriodToDateComputationProperty.getTime()- Parameters:
time- The time field that is used in a computation.- Returns:
this
-
value
@Stability(Stable) public CfnDashboardPropsMixin.PeriodToDateComputationProperty.Builder value(IResolvable value) Sets the value ofCfnDashboardPropsMixin.PeriodToDateComputationProperty.getValue()- Parameters:
value- The value field that is used in a computation.- Returns:
this
-
value
@Stability(Stable) public CfnDashboardPropsMixin.PeriodToDateComputationProperty.Builder value(CfnDashboardPropsMixin.MeasureFieldProperty value) Sets the value ofCfnDashboardPropsMixin.PeriodToDateComputationProperty.getValue()- Parameters:
value- The value field that is used in a computation.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnDashboardPropsMixin.PeriodToDateComputationProperty>- Returns:
- a new instance of
CfnDashboardPropsMixin.PeriodToDateComputationProperty - Throws:
NullPointerException- if any required attribute was not provided
-