Class: AWSCDK::OpenSearchService::WindowStartTime

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
open_search_service/window_start_time.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(hours:, minutes:) ⇒ WindowStartTime

Returns a new instance of WindowStartTime.

Parameters:

  • hours (Numeric)

    The start hour of the window in Coordinated Universal Time (UTC), using 24-hour time.

  • minutes (Numeric)

    The start minute of the window, in UTC.



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

#hoursNumeric (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.

Returns:

  • (Numeric)


21
22
23
# File 'open_search_service/window_start_time.rb', line 21

def hours
  @hours
end

#minutesNumeric (readonly)

Note:

Default: - 0

The start minute of the window, in UTC.

Returns:

  • (Numeric)


26
27
28
# File 'open_search_service/window_start_time.rb', line 26

def minutes
  @minutes
end

Class Method Details

.jsii_propertiesObject



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_jsiiObject



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