Class CfnDashboard.PeriodToDateComputationProperty.Builder
java.lang.Object
software.amazon.awscdk.services.quicksight.CfnDashboard.PeriodToDateComputationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnDashboard.PeriodToDateComputationProperty>
- Enclosing interface:
CfnDashboard.PeriodToDateComputationProperty
@Stability(Stable)
public static final class CfnDashboard.PeriodToDateComputationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnDashboard.PeriodToDateComputationProperty>
A builder for
CfnDashboard.PeriodToDateComputationProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.computationId
(String computationId) Sets the value ofCfnDashboard.PeriodToDateComputationProperty.getComputationId()
Sets the value ofCfnDashboard.PeriodToDateComputationProperty.getName()
periodTimeGranularity
(String periodTimeGranularity) Sets the value ofCfnDashboard.PeriodToDateComputationProperty.getPeriodTimeGranularity()
time
(IResolvable time) Sets the value ofCfnDashboard.PeriodToDateComputationProperty.getTime()
Sets the value ofCfnDashboard.PeriodToDateComputationProperty.getTime()
value
(IResolvable value) Sets the value ofCfnDashboard.PeriodToDateComputationProperty.getValue()
Sets the value ofCfnDashboard.PeriodToDateComputationProperty.getValue()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
computationId
@Stability(Stable) public CfnDashboard.PeriodToDateComputationProperty.Builder computationId(String computationId) Sets the value ofCfnDashboard.PeriodToDateComputationProperty.getComputationId()
- Parameters:
computationId
- The ID for a computation. This parameter is required.- Returns:
this
-
name
Sets the value ofCfnDashboard.PeriodToDateComputationProperty.getName()
- Parameters:
name
- The name of a computation.- Returns:
this
-
periodTimeGranularity
@Stability(Stable) public CfnDashboard.PeriodToDateComputationProperty.Builder periodTimeGranularity(String periodTimeGranularity) Sets the value ofCfnDashboard.PeriodToDateComputationProperty.getPeriodTimeGranularity()
- 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 CfnDashboard.PeriodToDateComputationProperty.Builder time(IResolvable time) Sets the value ofCfnDashboard.PeriodToDateComputationProperty.getTime()
- Parameters:
time
- The time field that is used in a computation.- Returns:
this
-
time
@Stability(Stable) public CfnDashboard.PeriodToDateComputationProperty.Builder time(CfnDashboard.DimensionFieldProperty time) Sets the value ofCfnDashboard.PeriodToDateComputationProperty.getTime()
- Parameters:
time
- The time field that is used in a computation.- Returns:
this
-
value
@Stability(Stable) public CfnDashboard.PeriodToDateComputationProperty.Builder value(IResolvable value) Sets the value ofCfnDashboard.PeriodToDateComputationProperty.getValue()
- Parameters:
value
- The value field that is used in a computation.- Returns:
this
-
value
@Stability(Stable) public CfnDashboard.PeriodToDateComputationProperty.Builder value(CfnDashboard.MeasureFieldProperty value) Sets the value ofCfnDashboard.PeriodToDateComputationProperty.getValue()
- Parameters:
value
- The value field that is used in a computation.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnDashboard.PeriodToDateComputationProperty>
- Returns:
- a new instance of
CfnDashboard.PeriodToDateComputationProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-