Class: AWSCDK::ConnectCampaignsv2::CfnCampaign::RestrictedPeriodProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::ConnectCampaignsv2::CfnCampaign::RestrictedPeriodProperty
- Defined in:
- connect_campaignsv2/cfn_campaign.rb
Overview
Contains information about a restricted period.
Instance Attribute Summary collapse
-
#end_date ⇒ String
readonly
The end date of the restricted period.
-
#name ⇒ String?
readonly
The name of the restricted period.
-
#start_date ⇒ String
readonly
The start date of the restricted period.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(end_date:, start_date:, name: nil) ⇒ RestrictedPeriodProperty
constructor
A new instance of RestrictedPeriodProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(end_date:, start_date:, name: nil) ⇒ RestrictedPeriodProperty
Returns a new instance of RestrictedPeriodProperty.
1432 1433 1434 1435 1436 1437 1438 1439 |
# File 'connect_campaignsv2/cfn_campaign.rb', line 1432 def initialize(end_date:, start_date:, name: nil) @end_date = end_date Jsii::Type.check_type(@end_date, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "endDate") @start_date = start_date Jsii::Type.check_type(@start_date, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "startDate") @name = name Jsii::Type.check_type(@name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "name") unless @name.nil? end |
Instance Attribute Details
#end_date ⇒ String (readonly)
The end date of the restricted period.
1445 1446 1447 |
# File 'connect_campaignsv2/cfn_campaign.rb', line 1445 def end_date @end_date end |
#name ⇒ String? (readonly)
The name of the restricted period.
1455 1456 1457 |
# File 'connect_campaignsv2/cfn_campaign.rb', line 1455 def name @name end |
#start_date ⇒ String (readonly)
The start date of the restricted period.
1450 1451 1452 |
# File 'connect_campaignsv2/cfn_campaign.rb', line 1450 def start_date @start_date end |
Class Method Details
.jsii_properties ⇒ Object
1457 1458 1459 1460 1461 1462 1463 |
# File 'connect_campaignsv2/cfn_campaign.rb', line 1457 def self.jsii_properties { :end_date => "endDate", :start_date => "startDate", :name => "name", } end |
Instance Method Details
#to_jsii ⇒ Object
1465 1466 1467 1468 1469 1470 1471 1472 1473 |
# File 'connect_campaignsv2/cfn_campaign.rb', line 1465 def to_jsii result = {} result.merge!({ "endDate" => @end_date, "startDate" => @start_date, "name" => @name, }) result.compact end |