{-# 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 #-}
module Amazonka.EC2.Types.ScheduledInstancesMonitoring where
import qualified Amazonka.Core as Core
import qualified Amazonka.Core.Lens.Internal as Lens
import qualified Amazonka.Data as Data
import Amazonka.EC2.Internal
import qualified Amazonka.Prelude as Prelude
data ScheduledInstancesMonitoring = ScheduledInstancesMonitoring'
{
ScheduledInstancesMonitoring -> Maybe Bool
enabled :: Prelude.Maybe Prelude.Bool
}
deriving (ScheduledInstancesMonitoring
-> ScheduledInstancesMonitoring -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ScheduledInstancesMonitoring
-> ScheduledInstancesMonitoring -> Bool
$c/= :: ScheduledInstancesMonitoring
-> ScheduledInstancesMonitoring -> Bool
== :: ScheduledInstancesMonitoring
-> ScheduledInstancesMonitoring -> Bool
$c== :: ScheduledInstancesMonitoring
-> ScheduledInstancesMonitoring -> Bool
Prelude.Eq, ReadPrec [ScheduledInstancesMonitoring]
ReadPrec ScheduledInstancesMonitoring
Int -> ReadS ScheduledInstancesMonitoring
ReadS [ScheduledInstancesMonitoring]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ScheduledInstancesMonitoring]
$creadListPrec :: ReadPrec [ScheduledInstancesMonitoring]
readPrec :: ReadPrec ScheduledInstancesMonitoring
$creadPrec :: ReadPrec ScheduledInstancesMonitoring
readList :: ReadS [ScheduledInstancesMonitoring]
$creadList :: ReadS [ScheduledInstancesMonitoring]
readsPrec :: Int -> ReadS ScheduledInstancesMonitoring
$creadsPrec :: Int -> ReadS ScheduledInstancesMonitoring
Prelude.Read, Int -> ScheduledInstancesMonitoring -> ShowS
[ScheduledInstancesMonitoring] -> ShowS
ScheduledInstancesMonitoring -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ScheduledInstancesMonitoring] -> ShowS
$cshowList :: [ScheduledInstancesMonitoring] -> ShowS
show :: ScheduledInstancesMonitoring -> String
$cshow :: ScheduledInstancesMonitoring -> String
showsPrec :: Int -> ScheduledInstancesMonitoring -> ShowS
$cshowsPrec :: Int -> ScheduledInstancesMonitoring -> ShowS
Prelude.Show, forall x.
Rep ScheduledInstancesMonitoring x -> ScheduledInstancesMonitoring
forall x.
ScheduledInstancesMonitoring -> Rep ScheduledInstancesMonitoring x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ScheduledInstancesMonitoring x -> ScheduledInstancesMonitoring
$cfrom :: forall x.
ScheduledInstancesMonitoring -> Rep ScheduledInstancesMonitoring x
Prelude.Generic)
newScheduledInstancesMonitoring ::
ScheduledInstancesMonitoring
newScheduledInstancesMonitoring :: ScheduledInstancesMonitoring
newScheduledInstancesMonitoring =
ScheduledInstancesMonitoring'
{ $sel:enabled:ScheduledInstancesMonitoring' :: Maybe Bool
enabled =
forall a. Maybe a
Prelude.Nothing
}
scheduledInstancesMonitoring_enabled :: Lens.Lens' ScheduledInstancesMonitoring (Prelude.Maybe Prelude.Bool)
scheduledInstancesMonitoring_enabled :: Lens' ScheduledInstancesMonitoring (Maybe Bool)
scheduledInstancesMonitoring_enabled = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ScheduledInstancesMonitoring' {Maybe Bool
enabled :: Maybe Bool
$sel:enabled:ScheduledInstancesMonitoring' :: ScheduledInstancesMonitoring -> Maybe Bool
enabled} -> Maybe Bool
enabled) (\s :: ScheduledInstancesMonitoring
s@ScheduledInstancesMonitoring' {} Maybe Bool
a -> ScheduledInstancesMonitoring
s {$sel:enabled:ScheduledInstancesMonitoring' :: Maybe Bool
enabled = Maybe Bool
a} :: ScheduledInstancesMonitoring)
instance
Prelude.Hashable
ScheduledInstancesMonitoring
where
hashWithSalt :: Int -> ScheduledInstancesMonitoring -> Int
hashWithSalt Int
_salt ScheduledInstancesMonitoring' {Maybe Bool
enabled :: Maybe Bool
$sel:enabled:ScheduledInstancesMonitoring' :: ScheduledInstancesMonitoring -> Maybe Bool
..} =
Int
_salt forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Bool
enabled
instance Prelude.NFData ScheduledInstancesMonitoring where
rnf :: ScheduledInstancesMonitoring -> ()
rnf ScheduledInstancesMonitoring' {Maybe Bool
enabled :: Maybe Bool
$sel:enabled:ScheduledInstancesMonitoring' :: ScheduledInstancesMonitoring -> Maybe Bool
..} =
forall a. NFData a => a -> ()
Prelude.rnf Maybe Bool
enabled
instance Data.ToQuery ScheduledInstancesMonitoring where
toQuery :: ScheduledInstancesMonitoring -> QueryString
toQuery ScheduledInstancesMonitoring' {Maybe Bool
enabled :: Maybe Bool
$sel:enabled:ScheduledInstancesMonitoring' :: ScheduledInstancesMonitoring -> Maybe Bool
..} =
forall a. Monoid a => [a] -> a
Prelude.mconcat [ByteString
"Enabled" forall a. ToQuery a => ByteString -> a -> QueryString
Data.=: Maybe Bool
enabled]