Class: AWSCDK::ConnectCampaignsv2::CfnCampaign::TimeWindowProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::ConnectCampaignsv2::CfnCampaign::TimeWindowProperty
- Defined in:
- connect_campaignsv2/cfn_campaign.rb
Overview
Contains information about a time window.
Instance Attribute Summary collapse
-
#open_hours ⇒ AWSCDK::IResolvable, AWSCDK::ConnectCampaignsv2::CfnCampaign::OpenHoursProperty
readonly
The open hours configuration.
-
#restricted_periods ⇒ AWSCDK::IResolvable, ...
readonly
The restricted periods configuration.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(open_hours:, restricted_periods: nil) ⇒ TimeWindowProperty
constructor
A new instance of TimeWindowProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(open_hours:, restricted_periods: nil) ⇒ TimeWindowProperty
Returns a new instance of TimeWindowProperty.
1976 1977 1978 1979 1980 1981 |
# File 'connect_campaignsv2/cfn_campaign.rb', line 1976 def initialize(open_hours:, restricted_periods: nil) @open_hours = open_hours.is_a?(Hash) ? ::AWSCDK::ConnectCampaignsv2::CfnCampaign::OpenHoursProperty.new(**open_hours.transform_keys(&:to_sym)) : open_hours Jsii::Type.check_type(@open_hours, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19jb25uZWN0Y2FtcGFpZ25zdjIuQ2ZuQ2FtcGFpZ24uT3BlbkhvdXJzUHJvcGVydHkifV19fQ==")), "openHours") @restricted_periods = restricted_periods.is_a?(Hash) ? ::AWSCDK::ConnectCampaignsv2::CfnCampaign::RestrictedPeriodsProperty.new(**restricted_periods.transform_keys(&:to_sym)) : restricted_periods Jsii::Type.check_type(@restricted_periods, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19jb25uZWN0Y2FtcGFpZ25zdjIuQ2ZuQ2FtcGFpZ24uUmVzdHJpY3RlZFBlcmlvZHNQcm9wZXJ0eSJ9XX19")), "restrictedPeriods") unless @restricted_periods.nil? end |
Instance Attribute Details
#open_hours ⇒ AWSCDK::IResolvable, AWSCDK::ConnectCampaignsv2::CfnCampaign::OpenHoursProperty (readonly)
The open hours configuration.
1987 1988 1989 |
# File 'connect_campaignsv2/cfn_campaign.rb', line 1987 def open_hours @open_hours end |
#restricted_periods ⇒ AWSCDK::IResolvable, ... (readonly)
The restricted periods configuration.
1992 1993 1994 |
# File 'connect_campaignsv2/cfn_campaign.rb', line 1992 def restricted_periods @restricted_periods end |
Class Method Details
.jsii_properties ⇒ Object
1994 1995 1996 1997 1998 1999 |
# File 'connect_campaignsv2/cfn_campaign.rb', line 1994 def self.jsii_properties { :open_hours => "openHours", :restricted_periods => "restrictedPeriods", } end |
Instance Method Details
#to_jsii ⇒ Object
2001 2002 2003 2004 2005 2006 2007 2008 |
# File 'connect_campaignsv2/cfn_campaign.rb', line 2001 def to_jsii result = {} result.merge!({ "openHours" => @open_hours, "restrictedPeriods" => @restricted_periods, }) result.compact end |