Class CfnAutomationRuleV2PropsMixin.DateRangeProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.securityhub.CfnAutomationRuleV2PropsMixin.DateRangeProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnAutomationRuleV2PropsMixin.DateRangeProperty>
- Enclosing interface:
CfnAutomationRuleV2PropsMixin.DateRangeProperty
@Stability(Stable)
public static final class CfnAutomationRuleV2PropsMixin.DateRangeProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnAutomationRuleV2PropsMixin.DateRangeProperty>
A builder for
CfnAutomationRuleV2PropsMixin.DateRangeProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofCfnAutomationRuleV2PropsMixin.DateRangeProperty.getUnit()Sets the value ofCfnAutomationRuleV2PropsMixin.DateRangeProperty.getValue()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
unit
Sets the value ofCfnAutomationRuleV2PropsMixin.DateRangeProperty.getUnit()- Parameters:
unit- A date range unit for the date filter.- Returns:
this
-
value
@Stability(Stable) public CfnAutomationRuleV2PropsMixin.DateRangeProperty.Builder value(Number value) Sets the value ofCfnAutomationRuleV2PropsMixin.DateRangeProperty.getValue()- Parameters:
value- A date range value for the date filter.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnAutomationRuleV2PropsMixin.DateRangeProperty>- Returns:
- a new instance of
CfnAutomationRuleV2PropsMixin.DateRangeProperty - Throws:
NullPointerException- if any required attribute was not provided
-