{-# 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.IoTEventsData.Types.ResetActionConfiguration where
import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
data ResetActionConfiguration = ResetActionConfiguration'
{
ResetActionConfiguration -> Maybe Text
note :: Prelude.Maybe Prelude.Text
}
deriving (ResetActionConfiguration -> ResetActionConfiguration -> Bool
(ResetActionConfiguration -> ResetActionConfiguration -> Bool)
-> (ResetActionConfiguration -> ResetActionConfiguration -> Bool)
-> Eq ResetActionConfiguration
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ResetActionConfiguration -> ResetActionConfiguration -> Bool
$c/= :: ResetActionConfiguration -> ResetActionConfiguration -> Bool
== :: ResetActionConfiguration -> ResetActionConfiguration -> Bool
$c== :: ResetActionConfiguration -> ResetActionConfiguration -> Bool
Prelude.Eq, ReadPrec [ResetActionConfiguration]
ReadPrec ResetActionConfiguration
Int -> ReadS ResetActionConfiguration
ReadS [ResetActionConfiguration]
(Int -> ReadS ResetActionConfiguration)
-> ReadS [ResetActionConfiguration]
-> ReadPrec ResetActionConfiguration
-> ReadPrec [ResetActionConfiguration]
-> Read ResetActionConfiguration
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ResetActionConfiguration]
$creadListPrec :: ReadPrec [ResetActionConfiguration]
readPrec :: ReadPrec ResetActionConfiguration
$creadPrec :: ReadPrec ResetActionConfiguration
readList :: ReadS [ResetActionConfiguration]
$creadList :: ReadS [ResetActionConfiguration]
readsPrec :: Int -> ReadS ResetActionConfiguration
$creadsPrec :: Int -> ReadS ResetActionConfiguration
Prelude.Read, Int -> ResetActionConfiguration -> ShowS
[ResetActionConfiguration] -> ShowS
ResetActionConfiguration -> String
(Int -> ResetActionConfiguration -> ShowS)
-> (ResetActionConfiguration -> String)
-> ([ResetActionConfiguration] -> ShowS)
-> Show ResetActionConfiguration
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ResetActionConfiguration] -> ShowS
$cshowList :: [ResetActionConfiguration] -> ShowS
show :: ResetActionConfiguration -> String
$cshow :: ResetActionConfiguration -> String
showsPrec :: Int -> ResetActionConfiguration -> ShowS
$cshowsPrec :: Int -> ResetActionConfiguration -> ShowS
Prelude.Show, (forall x.
ResetActionConfiguration -> Rep ResetActionConfiguration x)
-> (forall x.
Rep ResetActionConfiguration x -> ResetActionConfiguration)
-> Generic ResetActionConfiguration
forall x.
Rep ResetActionConfiguration x -> ResetActionConfiguration
forall x.
ResetActionConfiguration -> Rep ResetActionConfiguration x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ResetActionConfiguration x -> ResetActionConfiguration
$cfrom :: forall x.
ResetActionConfiguration -> Rep ResetActionConfiguration x
Prelude.Generic)
newResetActionConfiguration ::
ResetActionConfiguration
newResetActionConfiguration :: ResetActionConfiguration
newResetActionConfiguration =
ResetActionConfiguration' :: Maybe Text -> ResetActionConfiguration
ResetActionConfiguration' {$sel:note:ResetActionConfiguration' :: Maybe Text
note = Maybe Text
forall a. Maybe a
Prelude.Nothing}
resetActionConfiguration_note :: Lens.Lens' ResetActionConfiguration (Prelude.Maybe Prelude.Text)
resetActionConfiguration_note :: (Maybe Text -> f (Maybe Text))
-> ResetActionConfiguration -> f ResetActionConfiguration
resetActionConfiguration_note = (ResetActionConfiguration -> Maybe Text)
-> (ResetActionConfiguration
-> Maybe Text -> ResetActionConfiguration)
-> Lens
ResetActionConfiguration
ResetActionConfiguration
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ResetActionConfiguration' {Maybe Text
note :: Maybe Text
$sel:note:ResetActionConfiguration' :: ResetActionConfiguration -> Maybe Text
note} -> Maybe Text
note) (\s :: ResetActionConfiguration
s@ResetActionConfiguration' {} Maybe Text
a -> ResetActionConfiguration
s {$sel:note:ResetActionConfiguration' :: Maybe Text
note = Maybe Text
a} :: ResetActionConfiguration)
instance Core.FromJSON ResetActionConfiguration where
parseJSON :: Value -> Parser ResetActionConfiguration
parseJSON =
String
-> (Object -> Parser ResetActionConfiguration)
-> Value
-> Parser ResetActionConfiguration
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Core.withObject
String
"ResetActionConfiguration"
( \Object
x ->
Maybe Text -> ResetActionConfiguration
ResetActionConfiguration'
(Maybe Text -> ResetActionConfiguration)
-> Parser (Maybe Text) -> Parser ResetActionConfiguration
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"note")
)
instance Prelude.Hashable ResetActionConfiguration
instance Prelude.NFData ResetActionConfiguration