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