Class CfnTemplate.ExcludePeriodConfigurationProperty.Builder
java.lang.Object
software.amazon.awscdk.services.quicksight.CfnTemplate.ExcludePeriodConfigurationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnTemplate.ExcludePeriodConfigurationProperty>
- Enclosing interface:
CfnTemplate.ExcludePeriodConfigurationProperty
@Stability(Stable)
public static final class CfnTemplate.ExcludePeriodConfigurationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnTemplate.ExcludePeriodConfigurationProperty>
A builder for
CfnTemplate.ExcludePeriodConfigurationProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionSets the value ofCfnTemplate.ExcludePeriodConfigurationProperty.getAmount()build()Builds the configured instance.granularity(String granularity) Sets the value ofCfnTemplate.ExcludePeriodConfigurationProperty.getGranularity()Sets the value ofCfnTemplate.ExcludePeriodConfigurationProperty.getStatus()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
amount
@Stability(Stable) public CfnTemplate.ExcludePeriodConfigurationProperty.Builder amount(Number amount) Sets the value ofCfnTemplate.ExcludePeriodConfigurationProperty.getAmount()- Parameters:
amount- The amount or number of the exclude period. This parameter is required.- Returns:
this
-
granularity
@Stability(Stable) public CfnTemplate.ExcludePeriodConfigurationProperty.Builder granularity(String granularity) Sets the value ofCfnTemplate.ExcludePeriodConfigurationProperty.getGranularity()- Parameters:
granularity- The granularity or unit (day, month, year) of the exclude period. This parameter is required.- Returns:
this
-
status
@Stability(Stable) public CfnTemplate.ExcludePeriodConfigurationProperty.Builder status(String status) Sets the value ofCfnTemplate.ExcludePeriodConfigurationProperty.getStatus()- Parameters:
status- The status of the exclude period. Choose from the following options:.ENABLEDDISABLED
- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnTemplate.ExcludePeriodConfigurationProperty>- Returns:
- a new instance of
CfnTemplate.ExcludePeriodConfigurationProperty - Throws:
NullPointerException- if any required attribute was not provided
-