Class CfnTopic.TopicRelativeDateFilterProperty.Builder
java.lang.Object
software.amazon.awscdk.services.quicksight.CfnTopic.TopicRelativeDateFilterProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnTopic.TopicRelativeDateFilterProperty>
- Enclosing interface:
CfnTopic.TopicRelativeDateFilterProperty
@Stability(Stable)
public static final class CfnTopic.TopicRelativeDateFilterProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnTopic.TopicRelativeDateFilterProperty>
A builder for
CfnTopic.TopicRelativeDateFilterProperty
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.constant
(IResolvable constant) Sets the value ofCfnTopic.TopicRelativeDateFilterProperty.getConstant()
Sets the value ofCfnTopic.TopicRelativeDateFilterProperty.getConstant()
relativeDateFilterFunction
(String relativeDateFilterFunction) Sets the value ofCfnTopic.TopicRelativeDateFilterProperty.getRelativeDateFilterFunction()
timeGranularity
(String timeGranularity) Sets the value ofCfnTopic.TopicRelativeDateFilterProperty.getTimeGranularity()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
constant
@Stability(Stable) public CfnTopic.TopicRelativeDateFilterProperty.Builder constant(IResolvable constant) Sets the value ofCfnTopic.TopicRelativeDateFilterProperty.getConstant()
- Parameters:
constant
- The constant used in a relative date filter.- Returns:
this
-
constant
@Stability(Stable) public CfnTopic.TopicRelativeDateFilterProperty.Builder constant(CfnTopic.TopicSingularFilterConstantProperty constant) Sets the value ofCfnTopic.TopicRelativeDateFilterProperty.getConstant()
- Parameters:
constant
- The constant used in a relative date filter.- Returns:
this
-
relativeDateFilterFunction
@Stability(Stable) public CfnTopic.TopicRelativeDateFilterProperty.Builder relativeDateFilterFunction(String relativeDateFilterFunction) Sets the value ofCfnTopic.TopicRelativeDateFilterProperty.getRelativeDateFilterFunction()
- Parameters:
relativeDateFilterFunction
- The function to be used in a relative date filter to determine the range of dates to include in the results. Valid values for this structure areBEFORE
,AFTER
, andBETWEEN
.- Returns:
this
-
timeGranularity
@Stability(Stable) public CfnTopic.TopicRelativeDateFilterProperty.Builder timeGranularity(String timeGranularity) Sets the value ofCfnTopic.TopicRelativeDateFilterProperty.getTimeGranularity()
- Parameters:
timeGranularity
- The level of time precision that is used to aggregateDateTime
values.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnTopic.TopicRelativeDateFilterProperty>
- Returns:
- a new instance of
CfnTopic.TopicRelativeDateFilterProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-