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