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