Class: AWSCDK::Connect::CfnHoursOfOperation::RecurrencePatternProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Connect::CfnHoursOfOperation::RecurrencePatternProperty
- Defined in:
- connect/cfn_hours_of_operation.rb
Overview
Pattern for recurring hours of operation overrides.
Instance Attribute Summary collapse
-
#by_month ⇒ Array<Numeric>, ...
readonly
List of months (1-12) for recurrence pattern.
-
#by_month_day ⇒ Array<Numeric>, ...
readonly
List of month days (-1 to 31) for recurrence pattern.
- #by_weekday_occurrence ⇒ Array<Numeric>, ... readonly
-
#frequency ⇒ String?
readonly
The frequency of recurrence for hours of operation overrides.
- #interval ⇒ Numeric? readonly
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(by_month: nil, by_month_day: nil, by_weekday_occurrence: nil, frequency: nil, interval: nil) ⇒ RecurrencePatternProperty
constructor
A new instance of RecurrencePatternProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(by_month: nil, by_month_day: nil, by_weekday_occurrence: nil, frequency: nil, interval: nil) ⇒ RecurrencePatternProperty
Returns a new instance of RecurrencePatternProperty.
996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 |
# File 'connect/cfn_hours_of_operation.rb', line 996 def initialize(by_month: nil, by_month_day: nil, by_weekday_occurrence: nil, frequency: nil, interval: nil) @by_month = by_month Jsii::Type.check_type(@by_month, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siY29sbGVjdGlvbiI6eyJlbGVtZW50dHlwZSI6eyJwcmltaXRpdmUiOiJudW1iZXIifSwia2luZCI6ImFycmF5In19LHsiZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifV19fQ==")), "byMonth") unless @by_month.nil? @by_month_day = by_month_day Jsii::Type.check_type(@by_month_day, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siY29sbGVjdGlvbiI6eyJlbGVtZW50dHlwZSI6eyJwcmltaXRpdmUiOiJudW1iZXIifSwia2luZCI6ImFycmF5In19LHsiZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifV19fQ==")), "byMonthDay") unless @by_month_day.nil? @by_weekday_occurrence = by_weekday_occurrence Jsii::Type.check_type(@by_weekday_occurrence, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siY29sbGVjdGlvbiI6eyJlbGVtZW50dHlwZSI6eyJwcmltaXRpdmUiOiJudW1iZXIifSwia2luZCI6ImFycmF5In19LHsiZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifV19fQ==")), "byWeekdayOccurrence") unless @by_weekday_occurrence.nil? @frequency = frequency Jsii::Type.check_type(@frequency, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "frequency") unless @frequency.nil? @interval = interval Jsii::Type.check_type(@interval, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "interval") unless @interval.nil? end |
Instance Attribute Details
#by_month ⇒ Array<Numeric>, ... (readonly)
List of months (1-12) for recurrence pattern.
1013 1014 1015 |
# File 'connect/cfn_hours_of_operation.rb', line 1013 def by_month @by_month end |
#by_month_day ⇒ Array<Numeric>, ... (readonly)
List of month days (-1 to 31) for recurrence pattern.
1018 1019 1020 |
# File 'connect/cfn_hours_of_operation.rb', line 1018 def by_month_day @by_month_day end |
#by_weekday_occurrence ⇒ Array<Numeric>, ... (readonly)
1021 1022 1023 |
# File 'connect/cfn_hours_of_operation.rb', line 1021 def by_weekday_occurrence @by_weekday_occurrence end |
#frequency ⇒ String? (readonly)
The frequency of recurrence for hours of operation overrides.
1026 1027 1028 |
# File 'connect/cfn_hours_of_operation.rb', line 1026 def frequency @frequency end |
#interval ⇒ Numeric? (readonly)
1029 1030 1031 |
# File 'connect/cfn_hours_of_operation.rb', line 1029 def interval @interval end |
Class Method Details
.jsii_properties ⇒ Object
1031 1032 1033 1034 1035 1036 1037 1038 1039 |
# File 'connect/cfn_hours_of_operation.rb', line 1031 def self.jsii_properties { :by_month => "byMonth", :by_month_day => "byMonthDay", :by_weekday_occurrence => "byWeekdayOccurrence", :frequency => "frequency", :interval => "interval", } end |
Instance Method Details
#to_jsii ⇒ Object
1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 |
# File 'connect/cfn_hours_of_operation.rb', line 1041 def to_jsii result = {} result.merge!({ "byMonth" => @by_month, "byMonthDay" => @by_month_day, "byWeekdayOccurrence" => @by_weekday_occurrence, "frequency" => @frequency, "interval" => @interval, }) result.compact end |