{-# 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.MemoryDb.Types.ACLsUpdateStatus
-- 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.MemoryDb.Types.ACLsUpdateStatus 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

-- | The status of the ACL update
--
-- /See:/ 'newACLsUpdateStatus' smart constructor.
data ACLsUpdateStatus = ACLsUpdateStatus'
  { -- | A list of ACLs pending to be applied.
    ACLsUpdateStatus -> Maybe Text
aCLToApply :: Prelude.Maybe Prelude.Text
  }
  deriving (ACLsUpdateStatus -> ACLsUpdateStatus -> Bool
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]
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
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. 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)

-- |
-- Create a value of 'ACLsUpdateStatus' 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:
--
-- 'aCLToApply', 'aCLsUpdateStatus_aCLToApply' - A list of ACLs pending to be applied.
newACLsUpdateStatus ::
  ACLsUpdateStatus
newACLsUpdateStatus :: ACLsUpdateStatus
newACLsUpdateStatus =
  ACLsUpdateStatus' {$sel:aCLToApply:ACLsUpdateStatus' :: Maybe Text
aCLToApply = forall a. Maybe a
Prelude.Nothing}

-- | A list of ACLs pending to be applied.
aCLsUpdateStatus_aCLToApply :: Lens.Lens' ACLsUpdateStatus (Prelude.Maybe Prelude.Text)
aCLsUpdateStatus_aCLToApply :: Lens' ACLsUpdateStatus (Maybe Text)
aCLsUpdateStatus_aCLToApply = 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 Data.FromJSON ACLsUpdateStatus where
  parseJSON :: Value -> Parser ACLsUpdateStatus
parseJSON =
    forall a. String -> (Object -> Parser a) -> Value -> Parser a
Data.withObject
      String
"ACLsUpdateStatus"
      ( \Object
x ->
          Maybe Text -> ACLsUpdateStatus
ACLsUpdateStatus'
            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
"ACLToApply")
      )

instance Prelude.Hashable ACLsUpdateStatus where
  hashWithSalt :: Int -> ACLsUpdateStatus -> Int
hashWithSalt Int
_salt ACLsUpdateStatus' {Maybe Text
aCLToApply :: Maybe Text
$sel:aCLToApply:ACLsUpdateStatus' :: ACLsUpdateStatus -> Maybe Text
..} =
    Int
_salt forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
aCLToApply

instance Prelude.NFData ACLsUpdateStatus where
  rnf :: ACLsUpdateStatus -> ()
rnf ACLsUpdateStatus' {Maybe Text
aCLToApply :: Maybe Text
$sel:aCLToApply:ACLsUpdateStatus' :: ACLsUpdateStatus -> Maybe Text
..} = forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
aCLToApply