Class CfnCampaignPropsMixin.TimeWindowProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.connectcampaignsv2.CfnCampaignPropsMixin.TimeWindowProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnCampaignPropsMixin.TimeWindowProperty>
- Enclosing interface:
CfnCampaignPropsMixin.TimeWindowProperty
@Stability(Stable)
public static final class CfnCampaignPropsMixin.TimeWindowProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnCampaignPropsMixin.TimeWindowProperty>
A builder for
CfnCampaignPropsMixin.TimeWindowProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.openHours(CfnCampaignPropsMixin.OpenHoursProperty openHours) Sets the value ofCfnCampaignPropsMixin.TimeWindowProperty.getOpenHours()openHours(IResolvable openHours) Sets the value ofCfnCampaignPropsMixin.TimeWindowProperty.getOpenHours()restrictedPeriods(CfnCampaignPropsMixin.RestrictedPeriodsProperty restrictedPeriods) Sets the value ofCfnCampaignPropsMixin.TimeWindowProperty.getRestrictedPeriods()restrictedPeriods(IResolvable restrictedPeriods) Sets the value ofCfnCampaignPropsMixin.TimeWindowProperty.getRestrictedPeriods()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
openHours
@Stability(Stable) public CfnCampaignPropsMixin.TimeWindowProperty.Builder openHours(IResolvable openHours) Sets the value ofCfnCampaignPropsMixin.TimeWindowProperty.getOpenHours()- Parameters:
openHours- The open hours configuration.- Returns:
this
-
openHours
@Stability(Stable) public CfnCampaignPropsMixin.TimeWindowProperty.Builder openHours(CfnCampaignPropsMixin.OpenHoursProperty openHours) Sets the value ofCfnCampaignPropsMixin.TimeWindowProperty.getOpenHours()- Parameters:
openHours- The open hours configuration.- Returns:
this
-
restrictedPeriods
@Stability(Stable) public CfnCampaignPropsMixin.TimeWindowProperty.Builder restrictedPeriods(IResolvable restrictedPeriods) Sets the value ofCfnCampaignPropsMixin.TimeWindowProperty.getRestrictedPeriods()- Parameters:
restrictedPeriods- The restricted periods configuration.- Returns:
this
-
restrictedPeriods
@Stability(Stable) public CfnCampaignPropsMixin.TimeWindowProperty.Builder restrictedPeriods(CfnCampaignPropsMixin.RestrictedPeriodsProperty restrictedPeriods) Sets the value ofCfnCampaignPropsMixin.TimeWindowProperty.getRestrictedPeriods()- Parameters:
restrictedPeriods- The restricted periods configuration.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnCampaignPropsMixin.TimeWindowProperty>- Returns:
- a new instance of
CfnCampaignPropsMixin.TimeWindowProperty - Throws:
NullPointerException- if any required attribute was not provided
-