Class: AWSCDK::Connect::CfnHoursOfOperation::HoursOfOperationConfigProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Connect::CfnHoursOfOperation::HoursOfOperationConfigProperty
- Defined in:
- connect/cfn_hours_of_operation.rb
Overview
Contains information about the hours of operation.
Instance Attribute Summary collapse
-
#day ⇒ String
readonly
The day that the hours of operation applies to.
-
#end_time ⇒ AWSCDK::IResolvable, AWSCDK::Connect::CfnHoursOfOperation::HoursOfOperationTimeSliceProperty
readonly
The end time that your contact center closes.
-
#start_time ⇒ AWSCDK::IResolvable, AWSCDK::Connect::CfnHoursOfOperation::HoursOfOperationTimeSliceProperty
readonly
The start time that your contact center opens.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(day:, end_time:, start_time:) ⇒ HoursOfOperationConfigProperty
constructor
A new instance of HoursOfOperationConfigProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(day:, end_time:, start_time:) ⇒ HoursOfOperationConfigProperty
Returns a new instance of HoursOfOperationConfigProperty.
623 624 625 626 627 628 629 630 |
# File 'connect/cfn_hours_of_operation.rb', line 623 def initialize(day:, end_time:, start_time:) @day = day Jsii::Type.check_type(@day, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "day") @end_time = end_time.is_a?(Hash) ? ::AWSCDK::Connect::CfnHoursOfOperation::HoursOfOperationTimeSliceProperty.new(**end_time.transform_keys(&:to_sym)) : end_time Jsii::Type.check_type(@end_time, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19jb25uZWN0LkNmbkhvdXJzT2ZPcGVyYXRpb24uSG91cnNPZk9wZXJhdGlvblRpbWVTbGljZVByb3BlcnR5In1dfX0=")), "endTime") @start_time = start_time.is_a?(Hash) ? ::AWSCDK::Connect::CfnHoursOfOperation::HoursOfOperationTimeSliceProperty.new(**start_time.transform_keys(&:to_sym)) : start_time Jsii::Type.check_type(@start_time, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19jb25uZWN0LkNmbkhvdXJzT2ZPcGVyYXRpb24uSG91cnNPZk9wZXJhdGlvblRpbWVTbGljZVByb3BlcnR5In1dfX0=")), "startTime") end |
Instance Attribute Details
#day ⇒ String (readonly)
The day that the hours of operation applies to.
636 637 638 |
# File 'connect/cfn_hours_of_operation.rb', line 636 def day @day end |
#end_time ⇒ AWSCDK::IResolvable, AWSCDK::Connect::CfnHoursOfOperation::HoursOfOperationTimeSliceProperty (readonly)
The end time that your contact center closes.
641 642 643 |
# File 'connect/cfn_hours_of_operation.rb', line 641 def end_time @end_time end |
#start_time ⇒ AWSCDK::IResolvable, AWSCDK::Connect::CfnHoursOfOperation::HoursOfOperationTimeSliceProperty (readonly)
The start time that your contact center opens.
646 647 648 |
# File 'connect/cfn_hours_of_operation.rb', line 646 def start_time @start_time end |
Class Method Details
.jsii_properties ⇒ Object
648 649 650 651 652 653 654 |
# File 'connect/cfn_hours_of_operation.rb', line 648 def self.jsii_properties { :day => "day", :end_time => "endTime", :start_time => "startTime", } end |
Instance Method Details
#to_jsii ⇒ Object
656 657 658 659 660 661 662 663 664 |
# File 'connect/cfn_hours_of_operation.rb', line 656 def to_jsii result = {} result.merge!({ "day" => @day, "endTime" => @end_time, "startTime" => @start_time, }) result.compact end |