{-# 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.Neptune.Types.DBClusterSnapshotAttributesResult where
import qualified Amazonka.Core as Core
import qualified Amazonka.Core.Lens.Internal as Lens
import qualified Amazonka.Data as Data
import Amazonka.Neptune.Types.DBClusterSnapshotAttribute
import qualified Amazonka.Prelude as Prelude
data DBClusterSnapshotAttributesResult = DBClusterSnapshotAttributesResult'
{
DBClusterSnapshotAttributesResult
-> Maybe [DBClusterSnapshotAttribute]
dbClusterSnapshotAttributes :: Prelude.Maybe [DBClusterSnapshotAttribute],
DBClusterSnapshotAttributesResult -> Maybe Text
dbClusterSnapshotIdentifier :: Prelude.Maybe Prelude.Text
}
deriving (DBClusterSnapshotAttributesResult
-> DBClusterSnapshotAttributesResult -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DBClusterSnapshotAttributesResult
-> DBClusterSnapshotAttributesResult -> Bool
$c/= :: DBClusterSnapshotAttributesResult
-> DBClusterSnapshotAttributesResult -> Bool
== :: DBClusterSnapshotAttributesResult
-> DBClusterSnapshotAttributesResult -> Bool
$c== :: DBClusterSnapshotAttributesResult
-> DBClusterSnapshotAttributesResult -> Bool
Prelude.Eq, ReadPrec [DBClusterSnapshotAttributesResult]
ReadPrec DBClusterSnapshotAttributesResult
Int -> ReadS DBClusterSnapshotAttributesResult
ReadS [DBClusterSnapshotAttributesResult]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DBClusterSnapshotAttributesResult]
$creadListPrec :: ReadPrec [DBClusterSnapshotAttributesResult]
readPrec :: ReadPrec DBClusterSnapshotAttributesResult
$creadPrec :: ReadPrec DBClusterSnapshotAttributesResult
readList :: ReadS [DBClusterSnapshotAttributesResult]
$creadList :: ReadS [DBClusterSnapshotAttributesResult]
readsPrec :: Int -> ReadS DBClusterSnapshotAttributesResult
$creadsPrec :: Int -> ReadS DBClusterSnapshotAttributesResult
Prelude.Read, Int -> DBClusterSnapshotAttributesResult -> ShowS
[DBClusterSnapshotAttributesResult] -> ShowS
DBClusterSnapshotAttributesResult -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DBClusterSnapshotAttributesResult] -> ShowS
$cshowList :: [DBClusterSnapshotAttributesResult] -> ShowS
show :: DBClusterSnapshotAttributesResult -> String
$cshow :: DBClusterSnapshotAttributesResult -> String
showsPrec :: Int -> DBClusterSnapshotAttributesResult -> ShowS
$cshowsPrec :: Int -> DBClusterSnapshotAttributesResult -> ShowS
Prelude.Show, forall x.
Rep DBClusterSnapshotAttributesResult x
-> DBClusterSnapshotAttributesResult
forall x.
DBClusterSnapshotAttributesResult
-> Rep DBClusterSnapshotAttributesResult x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep DBClusterSnapshotAttributesResult x
-> DBClusterSnapshotAttributesResult
$cfrom :: forall x.
DBClusterSnapshotAttributesResult
-> Rep DBClusterSnapshotAttributesResult x
Prelude.Generic)
newDBClusterSnapshotAttributesResult ::
DBClusterSnapshotAttributesResult
newDBClusterSnapshotAttributesResult :: DBClusterSnapshotAttributesResult
newDBClusterSnapshotAttributesResult =
DBClusterSnapshotAttributesResult'
{ $sel:dbClusterSnapshotAttributes:DBClusterSnapshotAttributesResult' :: Maybe [DBClusterSnapshotAttribute]
dbClusterSnapshotAttributes =
forall a. Maybe a
Prelude.Nothing,
$sel:dbClusterSnapshotIdentifier:DBClusterSnapshotAttributesResult' :: Maybe Text
dbClusterSnapshotIdentifier =
forall a. Maybe a
Prelude.Nothing
}
dbClusterSnapshotAttributesResult_dbClusterSnapshotAttributes :: Lens.Lens' DBClusterSnapshotAttributesResult (Prelude.Maybe [DBClusterSnapshotAttribute])
dbClusterSnapshotAttributesResult_dbClusterSnapshotAttributes :: Lens'
DBClusterSnapshotAttributesResult
(Maybe [DBClusterSnapshotAttribute])
dbClusterSnapshotAttributesResult_dbClusterSnapshotAttributes = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DBClusterSnapshotAttributesResult' {Maybe [DBClusterSnapshotAttribute]
dbClusterSnapshotAttributes :: Maybe [DBClusterSnapshotAttribute]
$sel:dbClusterSnapshotAttributes:DBClusterSnapshotAttributesResult' :: DBClusterSnapshotAttributesResult
-> Maybe [DBClusterSnapshotAttribute]
dbClusterSnapshotAttributes} -> Maybe [DBClusterSnapshotAttribute]
dbClusterSnapshotAttributes) (\s :: DBClusterSnapshotAttributesResult
s@DBClusterSnapshotAttributesResult' {} Maybe [DBClusterSnapshotAttribute]
a -> DBClusterSnapshotAttributesResult
s {$sel:dbClusterSnapshotAttributes:DBClusterSnapshotAttributesResult' :: Maybe [DBClusterSnapshotAttribute]
dbClusterSnapshotAttributes = Maybe [DBClusterSnapshotAttribute]
a} :: DBClusterSnapshotAttributesResult) 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 s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
dbClusterSnapshotAttributesResult_dbClusterSnapshotIdentifier :: Lens.Lens' DBClusterSnapshotAttributesResult (Prelude.Maybe Prelude.Text)
dbClusterSnapshotAttributesResult_dbClusterSnapshotIdentifier :: Lens' DBClusterSnapshotAttributesResult (Maybe Text)
dbClusterSnapshotAttributesResult_dbClusterSnapshotIdentifier = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DBClusterSnapshotAttributesResult' {Maybe Text
dbClusterSnapshotIdentifier :: Maybe Text
$sel:dbClusterSnapshotIdentifier:DBClusterSnapshotAttributesResult' :: DBClusterSnapshotAttributesResult -> Maybe Text
dbClusterSnapshotIdentifier} -> Maybe Text
dbClusterSnapshotIdentifier) (\s :: DBClusterSnapshotAttributesResult
s@DBClusterSnapshotAttributesResult' {} Maybe Text
a -> DBClusterSnapshotAttributesResult
s {$sel:dbClusterSnapshotIdentifier:DBClusterSnapshotAttributesResult' :: Maybe Text
dbClusterSnapshotIdentifier = Maybe Text
a} :: DBClusterSnapshotAttributesResult)
instance
Data.FromXML
DBClusterSnapshotAttributesResult
where
parseXML :: [Node] -> Either String DBClusterSnapshotAttributesResult
parseXML [Node]
x =
Maybe [DBClusterSnapshotAttribute]
-> Maybe Text -> DBClusterSnapshotAttributesResult
DBClusterSnapshotAttributesResult'
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> ( [Node]
x
forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Data..@? Text
"DBClusterSnapshotAttributes"
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ forall a. Monoid a => a
Prelude.mempty
forall (m :: * -> *) a b. Monad m => m a -> (a -> m b) -> m b
Prelude.>>= forall (f :: * -> *) a b.
Applicative f =>
([a] -> f b) -> [a] -> f (Maybe b)
Core.may
(forall a. FromXML a => Text -> [Node] -> Either String [a]
Data.parseXMLList Text
"DBClusterSnapshotAttribute")
)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ([Node]
x forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Data..@? Text
"DBClusterSnapshotIdentifier")
instance
Prelude.Hashable
DBClusterSnapshotAttributesResult
where
hashWithSalt :: Int -> DBClusterSnapshotAttributesResult -> Int
hashWithSalt
Int
_salt
DBClusterSnapshotAttributesResult' {Maybe [DBClusterSnapshotAttribute]
Maybe Text
dbClusterSnapshotIdentifier :: Maybe Text
dbClusterSnapshotAttributes :: Maybe [DBClusterSnapshotAttribute]
$sel:dbClusterSnapshotIdentifier:DBClusterSnapshotAttributesResult' :: DBClusterSnapshotAttributesResult -> Maybe Text
$sel:dbClusterSnapshotAttributes:DBClusterSnapshotAttributesResult' :: DBClusterSnapshotAttributesResult
-> Maybe [DBClusterSnapshotAttribute]
..} =
Int
_salt
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe [DBClusterSnapshotAttribute]
dbClusterSnapshotAttributes
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
dbClusterSnapshotIdentifier
instance
Prelude.NFData
DBClusterSnapshotAttributesResult
where
rnf :: DBClusterSnapshotAttributesResult -> ()
rnf DBClusterSnapshotAttributesResult' {Maybe [DBClusterSnapshotAttribute]
Maybe Text
dbClusterSnapshotIdentifier :: Maybe Text
dbClusterSnapshotAttributes :: Maybe [DBClusterSnapshotAttribute]
$sel:dbClusterSnapshotIdentifier:DBClusterSnapshotAttributesResult' :: DBClusterSnapshotAttributesResult -> Maybe Text
$sel:dbClusterSnapshotAttributes:DBClusterSnapshotAttributesResult' :: DBClusterSnapshotAttributesResult
-> Maybe [DBClusterSnapshotAttribute]
..} =
forall a. NFData a => a -> ()
Prelude.rnf Maybe [DBClusterSnapshotAttribute]
dbClusterSnapshotAttributes
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
dbClusterSnapshotIdentifier