Class CfnCampaignPropsMixin.RestrictedPeriodProperty.Builder
java.lang.Object
software.amazon.awscdk.mixins.preview.services.connectcampaignsv2.mixins.CfnCampaignPropsMixin.RestrictedPeriodProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnCampaignPropsMixin.RestrictedPeriodProperty>
- Enclosing interface:
CfnCampaignPropsMixin.RestrictedPeriodProperty
@Stability(Stable)
public static final class CfnCampaignPropsMixin.RestrictedPeriodProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnCampaignPropsMixin.RestrictedPeriodProperty>
A builder for
CfnCampaignPropsMixin.RestrictedPeriodProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofCfnCampaignPropsMixin.RestrictedPeriodProperty.getEndDate()Sets the value ofCfnCampaignPropsMixin.RestrictedPeriodProperty.getName()Sets the value ofCfnCampaignPropsMixin.RestrictedPeriodProperty.getStartDate()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
endDate
@Stability(Stable) public CfnCampaignPropsMixin.RestrictedPeriodProperty.Builder endDate(String endDate) Sets the value ofCfnCampaignPropsMixin.RestrictedPeriodProperty.getEndDate()- Parameters:
endDate- The end date of the restricted period.- Returns:
this
-
name
Sets the value ofCfnCampaignPropsMixin.RestrictedPeriodProperty.getName()- Parameters:
name- The name of the restricted period.- Returns:
this
-
startDate
@Stability(Stable) public CfnCampaignPropsMixin.RestrictedPeriodProperty.Builder startDate(String startDate) Sets the value ofCfnCampaignPropsMixin.RestrictedPeriodProperty.getStartDate()- Parameters:
startDate- The start date of the restricted period.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnCampaignPropsMixin.RestrictedPeriodProperty>- Returns:
- a new instance of
CfnCampaignPropsMixin.RestrictedPeriodProperty - Throws:
NullPointerException- if any required attribute was not provided
-