Class: AWSCDK::FSX::LustreMaintenanceTimeProps
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::FSX::LustreMaintenanceTimeProps
- Defined in:
- fsx/lustre_maintenance_time_props.rb
Overview
Properties required for setting up a weekly maintenance time.
Instance Attribute Summary collapse
-
#day ⇒ AWSCDK::FSX::Weekday
readonly
The day of the week for maintenance to be performed.
-
#hour ⇒ Numeric
readonly
The hour of the day (from 0-23) for maintenance to be performed.
-
#minute ⇒ Numeric
readonly
The minute of the hour (from 0-59) for maintenance to be performed.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(day:, hour:, minute:) ⇒ LustreMaintenanceTimeProps
constructor
A new instance of LustreMaintenanceTimeProps.
- #to_jsii ⇒ Object
Constructor Details
#initialize(day:, hour:, minute:) ⇒ LustreMaintenanceTimeProps
Returns a new instance of LustreMaintenanceTimeProps.
10 11 12 13 14 15 16 17 |
# File 'fsx/lustre_maintenance_time_props.rb', line 10 def initialize(day:, hour:, minute:) @day = day Jsii::Type.check_type(@day, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfZnN4LldlZWtkYXkifQ==")), "day") @hour = hour Jsii::Type.check_type(@hour, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "hour") @minute = minute Jsii::Type.check_type(@minute, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "minute") end |
Instance Attribute Details
#day ⇒ AWSCDK::FSX::Weekday (readonly)
The day of the week for maintenance to be performed.
22 23 24 |
# File 'fsx/lustre_maintenance_time_props.rb', line 22 def day @day end |
#hour ⇒ Numeric (readonly)
The hour of the day (from 0-23) for maintenance to be performed.
26 27 28 |
# File 'fsx/lustre_maintenance_time_props.rb', line 26 def hour @hour end |
#minute ⇒ Numeric (readonly)
The minute of the hour (from 0-59) for maintenance to be performed.
30 31 32 |
# File 'fsx/lustre_maintenance_time_props.rb', line 30 def minute @minute end |
Class Method Details
.jsii_properties ⇒ Object
32 33 34 35 36 37 38 |
# File 'fsx/lustre_maintenance_time_props.rb', line 32 def self.jsii_properties { :day => "day", :hour => "hour", :minute => "minute", } end |
Instance Method Details
#to_jsii ⇒ Object
40 41 42 43 44 45 46 47 48 |
# File 'fsx/lustre_maintenance_time_props.rb', line 40 def to_jsii result = {} result.merge!({ "day" => @day, "hour" => @hour, "minute" => @minute, }) result.compact end |