Class: AWSCDK::Connect::CfnHoursOfOperation::HoursOfOperationConfigProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
connect/cfn_hours_of_operation.rb

Overview

Contains information about the hours of operation.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(day:, end_time:, start_time:) ⇒ HoursOfOperationConfigProperty

Returns a new instance of HoursOfOperationConfigProperty.

Parameters:



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

#dayString (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

Class Method Details

.jsii_propertiesObject



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_jsiiObject



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