{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DuplicateRecordFields #-}
{-# LANGUAGE NamedFieldPuns #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
{-# OPTIONS_GHC -fno-warn-unused-matches #-}

-- Derived from AWS service descriptions, licensed under Apache 2.0.

-- |
-- Module      : Amazonka.SSM.Types.MaintenanceWindowIdentity
-- Copyright   : (c) 2013-2023 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
module Amazonka.SSM.Types.MaintenanceWindowIdentity where

import qualified Amazonka.Core as Core
import qualified Amazonka.Core.Lens.Internal as Lens
import qualified Amazonka.Data as Data
import qualified Amazonka.Prelude as Prelude

-- | Information about the maintenance window.
--
-- /See:/ 'newMaintenanceWindowIdentity' smart constructor.
data MaintenanceWindowIdentity = MaintenanceWindowIdentity'
  { -- | The number of hours before the end of the maintenance window that Amazon
    -- Web Services Systems Manager stops scheduling new tasks for execution.
    MaintenanceWindowIdentity -> Maybe Natural
cutoff :: Prelude.Maybe Prelude.Natural,
    -- | A description of the maintenance window.
    MaintenanceWindowIdentity -> Maybe (Sensitive Text)
description :: Prelude.Maybe (Data.Sensitive Prelude.Text),
    -- | The duration of the maintenance window in hours.
    MaintenanceWindowIdentity -> Maybe Natural
duration :: Prelude.Maybe Prelude.Natural,
    -- | Indicates whether the maintenance window is enabled.
    MaintenanceWindowIdentity -> Maybe Bool
enabled :: Prelude.Maybe Prelude.Bool,
    -- | The date and time, in ISO-8601 Extended format, for when the maintenance
    -- window is scheduled to become inactive.
    MaintenanceWindowIdentity -> Maybe Text
endDate :: Prelude.Maybe Prelude.Text,
    -- | The name of the maintenance window.
    MaintenanceWindowIdentity -> Maybe Text
name :: Prelude.Maybe Prelude.Text,
    -- | The next time the maintenance window will actually run, taking into
    -- account any specified times for the maintenance window to become active
    -- or inactive.
    MaintenanceWindowIdentity -> Maybe Text
nextExecutionTime :: Prelude.Maybe Prelude.Text,
    -- | The schedule of the maintenance window in the form of a cron or rate
    -- expression.
    MaintenanceWindowIdentity -> Maybe Text
schedule :: Prelude.Maybe Prelude.Text,
    -- | The number of days to wait to run a maintenance window after the
    -- scheduled cron expression date and time.
    MaintenanceWindowIdentity -> Maybe Natural
scheduleOffset :: Prelude.Maybe Prelude.Natural,
    -- | The time zone that the scheduled maintenance window executions are based
    -- on, in Internet Assigned Numbers Authority (IANA) format.
    MaintenanceWindowIdentity -> Maybe Text
scheduleTimezone :: Prelude.Maybe Prelude.Text,
    -- | The date and time, in ISO-8601 Extended format, for when the maintenance
    -- window is scheduled to become active.
    MaintenanceWindowIdentity -> Maybe Text
startDate :: Prelude.Maybe Prelude.Text,
    -- | The ID of the maintenance window.
    MaintenanceWindowIdentity -> Maybe Text
windowId :: Prelude.Maybe Prelude.Text
  }
  deriving (MaintenanceWindowIdentity -> MaintenanceWindowIdentity -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: MaintenanceWindowIdentity -> MaintenanceWindowIdentity -> Bool
$c/= :: MaintenanceWindowIdentity -> MaintenanceWindowIdentity -> Bool
== :: MaintenanceWindowIdentity -> MaintenanceWindowIdentity -> Bool
$c== :: MaintenanceWindowIdentity -> MaintenanceWindowIdentity -> Bool
Prelude.Eq, Int -> MaintenanceWindowIdentity -> ShowS
[MaintenanceWindowIdentity] -> ShowS
MaintenanceWindowIdentity -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [MaintenanceWindowIdentity] -> ShowS
$cshowList :: [MaintenanceWindowIdentity] -> ShowS
show :: MaintenanceWindowIdentity -> String
$cshow :: MaintenanceWindowIdentity -> String
showsPrec :: Int -> MaintenanceWindowIdentity -> ShowS
$cshowsPrec :: Int -> MaintenanceWindowIdentity -> ShowS
Prelude.Show, forall x.
Rep MaintenanceWindowIdentity x -> MaintenanceWindowIdentity
forall x.
MaintenanceWindowIdentity -> Rep MaintenanceWindowIdentity x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep MaintenanceWindowIdentity x -> MaintenanceWindowIdentity
$cfrom :: forall x.
MaintenanceWindowIdentity -> Rep MaintenanceWindowIdentity x
Prelude.Generic)

-- |
-- Create a value of 'MaintenanceWindowIdentity' with all optional fields omitted.
--
-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.
--
-- The following record fields are available, with the corresponding lenses provided
-- for backwards compatibility:
--
-- 'cutoff', 'maintenanceWindowIdentity_cutoff' - The number of hours before the end of the maintenance window that Amazon
-- Web Services Systems Manager stops scheduling new tasks for execution.
--
-- 'description', 'maintenanceWindowIdentity_description' - A description of the maintenance window.
--
-- 'duration', 'maintenanceWindowIdentity_duration' - The duration of the maintenance window in hours.
--
-- 'enabled', 'maintenanceWindowIdentity_enabled' - Indicates whether the maintenance window is enabled.
--
-- 'endDate', 'maintenanceWindowIdentity_endDate' - The date and time, in ISO-8601 Extended format, for when the maintenance
-- window is scheduled to become inactive.
--
-- 'name', 'maintenanceWindowIdentity_name' - The name of the maintenance window.
--
-- 'nextExecutionTime', 'maintenanceWindowIdentity_nextExecutionTime' - The next time the maintenance window will actually run, taking into
-- account any specified times for the maintenance window to become active
-- or inactive.
--
-- 'schedule', 'maintenanceWindowIdentity_schedule' - The schedule of the maintenance window in the form of a cron or rate
-- expression.
--
-- 'scheduleOffset', 'maintenanceWindowIdentity_scheduleOffset' - The number of days to wait to run a maintenance window after the
-- scheduled cron expression date and time.
--
-- 'scheduleTimezone', 'maintenanceWindowIdentity_scheduleTimezone' - The time zone that the scheduled maintenance window executions are based
-- on, in Internet Assigned Numbers Authority (IANA) format.
--
-- 'startDate', 'maintenanceWindowIdentity_startDate' - The date and time, in ISO-8601 Extended format, for when the maintenance
-- window is scheduled to become active.
--
-- 'windowId', 'maintenanceWindowIdentity_windowId' - The ID of the maintenance window.
newMaintenanceWindowIdentity ::
  MaintenanceWindowIdentity
newMaintenanceWindowIdentity :: MaintenanceWindowIdentity
newMaintenanceWindowIdentity =
  MaintenanceWindowIdentity'
    { $sel:cutoff:MaintenanceWindowIdentity' :: Maybe Natural
cutoff =
        forall a. Maybe a
Prelude.Nothing,
      $sel:description:MaintenanceWindowIdentity' :: Maybe (Sensitive Text)
description = forall a. Maybe a
Prelude.Nothing,
      $sel:duration:MaintenanceWindowIdentity' :: Maybe Natural
duration = forall a. Maybe a
Prelude.Nothing,
      $sel:enabled:MaintenanceWindowIdentity' :: Maybe Bool
enabled = forall a. Maybe a
Prelude.Nothing,
      $sel:endDate:MaintenanceWindowIdentity' :: Maybe Text
endDate = forall a. Maybe a
Prelude.Nothing,
      $sel:name:MaintenanceWindowIdentity' :: Maybe Text
name = forall a. Maybe a
Prelude.Nothing,
      $sel:nextExecutionTime:MaintenanceWindowIdentity' :: Maybe Text
nextExecutionTime = forall a. Maybe a
Prelude.Nothing,
      $sel:schedule:MaintenanceWindowIdentity' :: Maybe Text
schedule = forall a. Maybe a
Prelude.Nothing,
      $sel:scheduleOffset:MaintenanceWindowIdentity' :: Maybe Natural
scheduleOffset = forall a. Maybe a
Prelude.Nothing,
      $sel:scheduleTimezone:MaintenanceWindowIdentity' :: Maybe Text
scheduleTimezone = forall a. Maybe a
Prelude.Nothing,
      $sel:startDate:MaintenanceWindowIdentity' :: Maybe Text
startDate = forall a. Maybe a
Prelude.Nothing,
      $sel:windowId:MaintenanceWindowIdentity' :: Maybe Text
windowId = forall a. Maybe a
Prelude.Nothing
    }

-- | The number of hours before the end of the maintenance window that Amazon
-- Web Services Systems Manager stops scheduling new tasks for execution.
maintenanceWindowIdentity_cutoff :: Lens.Lens' MaintenanceWindowIdentity (Prelude.Maybe Prelude.Natural)
maintenanceWindowIdentity_cutoff :: Lens' MaintenanceWindowIdentity (Maybe Natural)
maintenanceWindowIdentity_cutoff = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\MaintenanceWindowIdentity' {Maybe Natural
cutoff :: Maybe Natural
$sel:cutoff:MaintenanceWindowIdentity' :: MaintenanceWindowIdentity -> Maybe Natural
cutoff} -> Maybe Natural
cutoff) (\s :: MaintenanceWindowIdentity
s@MaintenanceWindowIdentity' {} Maybe Natural
a -> MaintenanceWindowIdentity
s {$sel:cutoff:MaintenanceWindowIdentity' :: Maybe Natural
cutoff = Maybe Natural
a} :: MaintenanceWindowIdentity)

-- | A description of the maintenance window.
maintenanceWindowIdentity_description :: Lens.Lens' MaintenanceWindowIdentity (Prelude.Maybe Prelude.Text)
maintenanceWindowIdentity_description :: Lens' MaintenanceWindowIdentity (Maybe Text)
maintenanceWindowIdentity_description = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\MaintenanceWindowIdentity' {Maybe (Sensitive Text)
description :: Maybe (Sensitive Text)
$sel:description:MaintenanceWindowIdentity' :: MaintenanceWindowIdentity -> Maybe (Sensitive Text)
description} -> Maybe (Sensitive Text)
description) (\s :: MaintenanceWindowIdentity
s@MaintenanceWindowIdentity' {} Maybe (Sensitive Text)
a -> MaintenanceWindowIdentity
s {$sel:description:MaintenanceWindowIdentity' :: Maybe (Sensitive Text)
description = Maybe (Sensitive Text)
a} :: MaintenanceWindowIdentity) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping forall a. Iso' (Sensitive a) a
Data._Sensitive

-- | The duration of the maintenance window in hours.
maintenanceWindowIdentity_duration :: Lens.Lens' MaintenanceWindowIdentity (Prelude.Maybe Prelude.Natural)
maintenanceWindowIdentity_duration :: Lens' MaintenanceWindowIdentity (Maybe Natural)
maintenanceWindowIdentity_duration = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\MaintenanceWindowIdentity' {Maybe Natural
duration :: Maybe Natural
$sel:duration:MaintenanceWindowIdentity' :: MaintenanceWindowIdentity -> Maybe Natural
duration} -> Maybe Natural
duration) (\s :: MaintenanceWindowIdentity
s@MaintenanceWindowIdentity' {} Maybe Natural
a -> MaintenanceWindowIdentity
s {$sel:duration:MaintenanceWindowIdentity' :: Maybe Natural
duration = Maybe Natural
a} :: MaintenanceWindowIdentity)

-- | Indicates whether the maintenance window is enabled.
maintenanceWindowIdentity_enabled :: Lens.Lens' MaintenanceWindowIdentity (Prelude.Maybe Prelude.Bool)
maintenanceWindowIdentity_enabled :: Lens' MaintenanceWindowIdentity (Maybe Bool)
maintenanceWindowIdentity_enabled = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\MaintenanceWindowIdentity' {Maybe Bool
enabled :: Maybe Bool
$sel:enabled:MaintenanceWindowIdentity' :: MaintenanceWindowIdentity -> Maybe Bool
enabled} -> Maybe Bool
enabled) (\s :: MaintenanceWindowIdentity
s@MaintenanceWindowIdentity' {} Maybe Bool
a -> MaintenanceWindowIdentity
s {$sel:enabled:MaintenanceWindowIdentity' :: Maybe Bool
enabled = Maybe Bool
a} :: MaintenanceWindowIdentity)

-- | The date and time, in ISO-8601 Extended format, for when the maintenance
-- window is scheduled to become inactive.
maintenanceWindowIdentity_endDate :: Lens.Lens' MaintenanceWindowIdentity (Prelude.Maybe Prelude.Text)
maintenanceWindowIdentity_endDate :: Lens' MaintenanceWindowIdentity (Maybe Text)
maintenanceWindowIdentity_endDate = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\MaintenanceWindowIdentity' {Maybe Text
endDate :: Maybe Text
$sel:endDate:MaintenanceWindowIdentity' :: MaintenanceWindowIdentity -> Maybe Text
endDate} -> Maybe Text
endDate) (\s :: MaintenanceWindowIdentity
s@MaintenanceWindowIdentity' {} Maybe Text
a -> MaintenanceWindowIdentity
s {$sel:endDate:MaintenanceWindowIdentity' :: Maybe Text
endDate = Maybe Text
a} :: MaintenanceWindowIdentity)

-- | The name of the maintenance window.
maintenanceWindowIdentity_name :: Lens.Lens' MaintenanceWindowIdentity (Prelude.Maybe Prelude.Text)
maintenanceWindowIdentity_name :: Lens' MaintenanceWindowIdentity (Maybe Text)
maintenanceWindowIdentity_name = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\MaintenanceWindowIdentity' {Maybe Text
name :: Maybe Text
$sel:name:MaintenanceWindowIdentity' :: MaintenanceWindowIdentity -> Maybe Text
name} -> Maybe Text
name) (\s :: MaintenanceWindowIdentity
s@MaintenanceWindowIdentity' {} Maybe Text
a -> MaintenanceWindowIdentity
s {$sel:name:MaintenanceWindowIdentity' :: Maybe Text
name = Maybe Text
a} :: MaintenanceWindowIdentity)

-- | The next time the maintenance window will actually run, taking into
-- account any specified times for the maintenance window to become active
-- or inactive.
maintenanceWindowIdentity_nextExecutionTime :: Lens.Lens' MaintenanceWindowIdentity (Prelude.Maybe Prelude.Text)
maintenanceWindowIdentity_nextExecutionTime :: Lens' MaintenanceWindowIdentity (Maybe Text)
maintenanceWindowIdentity_nextExecutionTime = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\MaintenanceWindowIdentity' {Maybe Text
nextExecutionTime :: Maybe Text
$sel:nextExecutionTime:MaintenanceWindowIdentity' :: MaintenanceWindowIdentity -> Maybe Text
nextExecutionTime} -> Maybe Text
nextExecutionTime) (\s :: MaintenanceWindowIdentity
s@MaintenanceWindowIdentity' {} Maybe Text
a -> MaintenanceWindowIdentity
s {$sel:nextExecutionTime:MaintenanceWindowIdentity' :: Maybe Text
nextExecutionTime = Maybe Text
a} :: MaintenanceWindowIdentity)

-- | The schedule of the maintenance window in the form of a cron or rate
-- expression.
maintenanceWindowIdentity_schedule :: Lens.Lens' MaintenanceWindowIdentity (Prelude.Maybe Prelude.Text)
maintenanceWindowIdentity_schedule :: Lens' MaintenanceWindowIdentity (Maybe Text)
maintenanceWindowIdentity_schedule = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\MaintenanceWindowIdentity' {Maybe Text
schedule :: Maybe Text
$sel:schedule:MaintenanceWindowIdentity' :: MaintenanceWindowIdentity -> Maybe Text
schedule} -> Maybe Text
schedule) (\s :: MaintenanceWindowIdentity
s@MaintenanceWindowIdentity' {} Maybe Text
a -> MaintenanceWindowIdentity
s {$sel:schedule:MaintenanceWindowIdentity' :: Maybe Text
schedule = Maybe Text
a} :: MaintenanceWindowIdentity)

-- | The number of days to wait to run a maintenance window after the
-- scheduled cron expression date and time.
maintenanceWindowIdentity_scheduleOffset :: Lens.Lens' MaintenanceWindowIdentity (Prelude.Maybe Prelude.Natural)
maintenanceWindowIdentity_scheduleOffset :: Lens' MaintenanceWindowIdentity (Maybe Natural)
maintenanceWindowIdentity_scheduleOffset = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\MaintenanceWindowIdentity' {Maybe Natural
scheduleOffset :: Maybe Natural
$sel:scheduleOffset:MaintenanceWindowIdentity' :: MaintenanceWindowIdentity -> Maybe Natural
scheduleOffset} -> Maybe Natural
scheduleOffset) (\s :: MaintenanceWindowIdentity
s@MaintenanceWindowIdentity' {} Maybe Natural
a -> MaintenanceWindowIdentity
s {$sel:scheduleOffset:MaintenanceWindowIdentity' :: Maybe Natural
scheduleOffset = Maybe Natural
a} :: MaintenanceWindowIdentity)

-- | The time zone that the scheduled maintenance window executions are based
-- on, in Internet Assigned Numbers Authority (IANA) format.
maintenanceWindowIdentity_scheduleTimezone :: Lens.Lens' MaintenanceWindowIdentity (Prelude.Maybe Prelude.Text)
maintenanceWindowIdentity_scheduleTimezone :: Lens' MaintenanceWindowIdentity (Maybe Text)
maintenanceWindowIdentity_scheduleTimezone = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\MaintenanceWindowIdentity' {Maybe Text
scheduleTimezone :: Maybe Text
$sel:scheduleTimezone:MaintenanceWindowIdentity' :: MaintenanceWindowIdentity -> Maybe Text
scheduleTimezone} -> Maybe Text
scheduleTimezone) (\s :: MaintenanceWindowIdentity
s@MaintenanceWindowIdentity' {} Maybe Text
a -> MaintenanceWindowIdentity
s {$sel:scheduleTimezone:MaintenanceWindowIdentity' :: Maybe Text
scheduleTimezone = Maybe Text
a} :: MaintenanceWindowIdentity)

-- | The date and time, in ISO-8601 Extended format, for when the maintenance
-- window is scheduled to become active.
maintenanceWindowIdentity_startDate :: Lens.Lens' MaintenanceWindowIdentity (Prelude.Maybe Prelude.Text)
maintenanceWindowIdentity_startDate :: Lens' MaintenanceWindowIdentity (Maybe Text)
maintenanceWindowIdentity_startDate = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\MaintenanceWindowIdentity' {Maybe Text
startDate :: Maybe Text
$sel:startDate:MaintenanceWindowIdentity' :: MaintenanceWindowIdentity -> Maybe Text
startDate} -> Maybe Text
startDate) (\s :: MaintenanceWindowIdentity
s@MaintenanceWindowIdentity' {} Maybe Text
a -> MaintenanceWindowIdentity
s {$sel:startDate:MaintenanceWindowIdentity' :: Maybe Text
startDate = Maybe Text
a} :: MaintenanceWindowIdentity)

-- | The ID of the maintenance window.
maintenanceWindowIdentity_windowId :: Lens.Lens' MaintenanceWindowIdentity (Prelude.Maybe Prelude.Text)
maintenanceWindowIdentity_windowId :: Lens' MaintenanceWindowIdentity (Maybe Text)
maintenanceWindowIdentity_windowId = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\MaintenanceWindowIdentity' {Maybe Text
windowId :: Maybe Text
$sel:windowId:MaintenanceWindowIdentity' :: MaintenanceWindowIdentity -> Maybe Text
windowId} -> Maybe Text
windowId) (\s :: MaintenanceWindowIdentity
s@MaintenanceWindowIdentity' {} Maybe Text
a -> MaintenanceWindowIdentity
s {$sel:windowId:MaintenanceWindowIdentity' :: Maybe Text
windowId = Maybe Text
a} :: MaintenanceWindowIdentity)

instance Data.FromJSON MaintenanceWindowIdentity where
  parseJSON :: Value -> Parser MaintenanceWindowIdentity
parseJSON =
    forall a. String -> (Object -> Parser a) -> Value -> Parser a
Data.withObject
      String
"MaintenanceWindowIdentity"
      ( \Object
x ->
          Maybe Natural
-> Maybe (Sensitive Text)
-> Maybe Natural
-> Maybe Bool
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Natural
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> MaintenanceWindowIdentity
MaintenanceWindowIdentity'
            forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"Cutoff")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"Description")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"Duration")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"Enabled")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"EndDate")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"Name")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"NextExecutionTime")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"Schedule")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"ScheduleOffset")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"ScheduleTimezone")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"StartDate")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"WindowId")
      )

instance Prelude.Hashable MaintenanceWindowIdentity where
  hashWithSalt :: Int -> MaintenanceWindowIdentity -> Int
hashWithSalt Int
_salt MaintenanceWindowIdentity' {Maybe Bool
Maybe Natural
Maybe Text
Maybe (Sensitive Text)
windowId :: Maybe Text
startDate :: Maybe Text
scheduleTimezone :: Maybe Text
scheduleOffset :: Maybe Natural
schedule :: Maybe Text
nextExecutionTime :: Maybe Text
name :: Maybe Text
endDate :: Maybe Text
enabled :: Maybe Bool
duration :: Maybe Natural
description :: Maybe (Sensitive Text)
cutoff :: Maybe Natural
$sel:windowId:MaintenanceWindowIdentity' :: MaintenanceWindowIdentity -> Maybe Text
$sel:startDate:MaintenanceWindowIdentity' :: MaintenanceWindowIdentity -> Maybe Text
$sel:scheduleTimezone:MaintenanceWindowIdentity' :: MaintenanceWindowIdentity -> Maybe Text
$sel:scheduleOffset:MaintenanceWindowIdentity' :: MaintenanceWindowIdentity -> Maybe Natural
$sel:schedule:MaintenanceWindowIdentity' :: MaintenanceWindowIdentity -> Maybe Text
$sel:nextExecutionTime:MaintenanceWindowIdentity' :: MaintenanceWindowIdentity -> Maybe Text
$sel:name:MaintenanceWindowIdentity' :: MaintenanceWindowIdentity -> Maybe Text
$sel:endDate:MaintenanceWindowIdentity' :: MaintenanceWindowIdentity -> Maybe Text
$sel:enabled:MaintenanceWindowIdentity' :: MaintenanceWindowIdentity -> Maybe Bool
$sel:duration:MaintenanceWindowIdentity' :: MaintenanceWindowIdentity -> Maybe Natural
$sel:description:MaintenanceWindowIdentity' :: MaintenanceWindowIdentity -> Maybe (Sensitive Text)
$sel:cutoff:MaintenanceWindowIdentity' :: MaintenanceWindowIdentity -> Maybe Natural
..} =
    Int
_salt
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Natural
cutoff
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe (Sensitive Text)
description
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Natural
duration
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Bool
enabled
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
endDate
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
name
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
nextExecutionTime
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
schedule
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Natural
scheduleOffset
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
scheduleTimezone
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
startDate
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
windowId

instance Prelude.NFData MaintenanceWindowIdentity where
  rnf :: MaintenanceWindowIdentity -> ()
rnf MaintenanceWindowIdentity' {Maybe Bool
Maybe Natural
Maybe Text
Maybe (Sensitive Text)
windowId :: Maybe Text
startDate :: Maybe Text
scheduleTimezone :: Maybe Text
scheduleOffset :: Maybe Natural
schedule :: Maybe Text
nextExecutionTime :: Maybe Text
name :: Maybe Text
endDate :: Maybe Text
enabled :: Maybe Bool
duration :: Maybe Natural
description :: Maybe (Sensitive Text)
cutoff :: Maybe Natural
$sel:windowId:MaintenanceWindowIdentity' :: MaintenanceWindowIdentity -> Maybe Text
$sel:startDate:MaintenanceWindowIdentity' :: MaintenanceWindowIdentity -> Maybe Text
$sel:scheduleTimezone:MaintenanceWindowIdentity' :: MaintenanceWindowIdentity -> Maybe Text
$sel:scheduleOffset:MaintenanceWindowIdentity' :: MaintenanceWindowIdentity -> Maybe Natural
$sel:schedule:MaintenanceWindowIdentity' :: MaintenanceWindowIdentity -> Maybe Text
$sel:nextExecutionTime:MaintenanceWindowIdentity' :: MaintenanceWindowIdentity -> Maybe Text
$sel:name:MaintenanceWindowIdentity' :: MaintenanceWindowIdentity -> Maybe Text
$sel:endDate:MaintenanceWindowIdentity' :: MaintenanceWindowIdentity -> Maybe Text
$sel:enabled:MaintenanceWindowIdentity' :: MaintenanceWindowIdentity -> Maybe Bool
$sel:duration:MaintenanceWindowIdentity' :: MaintenanceWindowIdentity -> Maybe Natural
$sel:description:MaintenanceWindowIdentity' :: MaintenanceWindowIdentity -> Maybe (Sensitive Text)
$sel:cutoff:MaintenanceWindowIdentity' :: MaintenanceWindowIdentity -> Maybe Natural
..} =
    forall a. NFData a => a -> ()
Prelude.rnf Maybe Natural
cutoff
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe (Sensitive Text)
description
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Natural
duration
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Bool
enabled
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
endDate
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
name
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
nextExecutionTime
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
schedule
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Natural
scheduleOffset
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
scheduleTimezone
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
startDate
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
windowId