Class: AWSCDK::OpenSearchService::WindowStartTime
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::OpenSearchService::WindowStartTime
- Defined in:
- open_search_service/window_start_time.rb
Instance Attribute Summary collapse
-
#hours ⇒ Numeric
readonly
The start hour of the window in Coordinated Universal Time (UTC), using 24-hour time.
-
#minutes ⇒ Numeric
readonly
The start minute of the window, in UTC.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(hours:, minutes:) ⇒ WindowStartTime
constructor
A new instance of WindowStartTime.
- #to_jsii ⇒ Object
Constructor Details
#initialize(hours:, minutes:) ⇒ WindowStartTime
Returns a new instance of WindowStartTime.
8 9 10 11 12 13 |
# File 'open_search_service/window_start_time.rb', line 8 def initialize(hours:, minutes:) @hours = hours Jsii::Type.check_type(@hours, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "hours") @minutes = minutes Jsii::Type.check_type(@minutes, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "minutes") end |
Instance Attribute Details
#hours ⇒ Numeric (readonly)
Note:
Default: - 22
The start hour of the window in Coordinated Universal Time (UTC), using 24-hour time.
For example, 17 refers to 5:00 P.M. UTC.
21 22 23 |
# File 'open_search_service/window_start_time.rb', line 21 def hours @hours end |
#minutes ⇒ Numeric (readonly)
Note:
Default: - 0
The start minute of the window, in UTC.
26 27 28 |
# File 'open_search_service/window_start_time.rb', line 26 def minutes @minutes end |
Class Method Details
.jsii_properties ⇒ Object
28 29 30 31 32 33 |
# File 'open_search_service/window_start_time.rb', line 28 def self.jsii_properties { :hours => "hours", :minutes => "minutes", } end |
Instance Method Details
#to_jsii ⇒ Object
35 36 37 38 39 40 41 42 |
# File 'open_search_service/window_start_time.rb', line 35 def to_jsii result = {} result.merge!({ "hours" => @hours, "minutes" => @minutes, }) result.compact end |