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