Class CfnLegalHoldPropsMixin.DateRangeProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.backup.CfnLegalHoldPropsMixin.DateRangeProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnLegalHoldPropsMixin.DateRangeProperty>
- Enclosing interface:
CfnLegalHoldPropsMixin.DateRangeProperty
@Stability(Stable)
public static final class CfnLegalHoldPropsMixin.DateRangeProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnLegalHoldPropsMixin.DateRangeProperty>
A builder for
CfnLegalHoldPropsMixin.DateRangeProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofCfnLegalHoldPropsMixin.DateRangeProperty.getFromDate()Sets the value ofCfnLegalHoldPropsMixin.DateRangeProperty.getToDate()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
fromDate
@Stability(Stable) public CfnLegalHoldPropsMixin.DateRangeProperty.Builder fromDate(String fromDate) Sets the value ofCfnLegalHoldPropsMixin.DateRangeProperty.getFromDate()- Parameters:
fromDate- The beginning date, inclusive. ISO 8601 date-time.- Returns:
this
-
toDate
Sets the value ofCfnLegalHoldPropsMixin.DateRangeProperty.getToDate()- Parameters:
toDate- The end date, inclusive. ISO 8601 date-time.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnLegalHoldPropsMixin.DateRangeProperty>- Returns:
- a new instance of
CfnLegalHoldPropsMixin.DateRangeProperty - Throws:
NullPointerException- if any required attribute was not provided
-