{-# 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.CloudDirectory.Types.BatchGetObjectAttributesResponse where
import Amazonka.CloudDirectory.Types.AttributeKeyAndValue
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
data BatchGetObjectAttributesResponse = BatchGetObjectAttributesResponse'
{
BatchGetObjectAttributesResponse -> Maybe [AttributeKeyAndValue]
attributes :: Prelude.Maybe [AttributeKeyAndValue]
}
deriving (BatchGetObjectAttributesResponse
-> BatchGetObjectAttributesResponse -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: BatchGetObjectAttributesResponse
-> BatchGetObjectAttributesResponse -> Bool
$c/= :: BatchGetObjectAttributesResponse
-> BatchGetObjectAttributesResponse -> Bool
== :: BatchGetObjectAttributesResponse
-> BatchGetObjectAttributesResponse -> Bool
$c== :: BatchGetObjectAttributesResponse
-> BatchGetObjectAttributesResponse -> Bool
Prelude.Eq, ReadPrec [BatchGetObjectAttributesResponse]
ReadPrec BatchGetObjectAttributesResponse
Int -> ReadS BatchGetObjectAttributesResponse
ReadS [BatchGetObjectAttributesResponse]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [BatchGetObjectAttributesResponse]
$creadListPrec :: ReadPrec [BatchGetObjectAttributesResponse]
readPrec :: ReadPrec BatchGetObjectAttributesResponse
$creadPrec :: ReadPrec BatchGetObjectAttributesResponse
readList :: ReadS [BatchGetObjectAttributesResponse]
$creadList :: ReadS [BatchGetObjectAttributesResponse]
readsPrec :: Int -> ReadS BatchGetObjectAttributesResponse
$creadsPrec :: Int -> ReadS BatchGetObjectAttributesResponse
Prelude.Read, Int -> BatchGetObjectAttributesResponse -> ShowS
[BatchGetObjectAttributesResponse] -> ShowS
BatchGetObjectAttributesResponse -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [BatchGetObjectAttributesResponse] -> ShowS
$cshowList :: [BatchGetObjectAttributesResponse] -> ShowS
show :: BatchGetObjectAttributesResponse -> String
$cshow :: BatchGetObjectAttributesResponse -> String
showsPrec :: Int -> BatchGetObjectAttributesResponse -> ShowS
$cshowsPrec :: Int -> BatchGetObjectAttributesResponse -> ShowS
Prelude.Show, forall x.
Rep BatchGetObjectAttributesResponse x
-> BatchGetObjectAttributesResponse
forall x.
BatchGetObjectAttributesResponse
-> Rep BatchGetObjectAttributesResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep BatchGetObjectAttributesResponse x
-> BatchGetObjectAttributesResponse
$cfrom :: forall x.
BatchGetObjectAttributesResponse
-> Rep BatchGetObjectAttributesResponse x
Prelude.Generic)
newBatchGetObjectAttributesResponse ::
BatchGetObjectAttributesResponse
newBatchGetObjectAttributesResponse :: BatchGetObjectAttributesResponse
newBatchGetObjectAttributesResponse =
BatchGetObjectAttributesResponse'
{ $sel:attributes:BatchGetObjectAttributesResponse' :: Maybe [AttributeKeyAndValue]
attributes =
forall a. Maybe a
Prelude.Nothing
}
batchGetObjectAttributesResponse_attributes :: Lens.Lens' BatchGetObjectAttributesResponse (Prelude.Maybe [AttributeKeyAndValue])
batchGetObjectAttributesResponse_attributes :: Lens'
BatchGetObjectAttributesResponse (Maybe [AttributeKeyAndValue])
batchGetObjectAttributesResponse_attributes = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\BatchGetObjectAttributesResponse' {Maybe [AttributeKeyAndValue]
attributes :: Maybe [AttributeKeyAndValue]
$sel:attributes:BatchGetObjectAttributesResponse' :: BatchGetObjectAttributesResponse -> Maybe [AttributeKeyAndValue]
attributes} -> Maybe [AttributeKeyAndValue]
attributes) (\s :: BatchGetObjectAttributesResponse
s@BatchGetObjectAttributesResponse' {} Maybe [AttributeKeyAndValue]
a -> BatchGetObjectAttributesResponse
s {$sel:attributes:BatchGetObjectAttributesResponse' :: Maybe [AttributeKeyAndValue]
attributes = Maybe [AttributeKeyAndValue]
a} :: BatchGetObjectAttributesResponse) 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
instance
Data.FromJSON
BatchGetObjectAttributesResponse
where
parseJSON :: Value -> Parser BatchGetObjectAttributesResponse
parseJSON =
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Data.withObject
String
"BatchGetObjectAttributesResponse"
( \Object
x ->
Maybe [AttributeKeyAndValue] -> BatchGetObjectAttributesResponse
BatchGetObjectAttributesResponse'
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
"Attributes" forall a. Parser (Maybe a) -> a -> Parser a
Data..!= forall a. Monoid a => a
Prelude.mempty)
)
instance
Prelude.Hashable
BatchGetObjectAttributesResponse
where
hashWithSalt :: Int -> BatchGetObjectAttributesResponse -> Int
hashWithSalt
Int
_salt
BatchGetObjectAttributesResponse' {Maybe [AttributeKeyAndValue]
attributes :: Maybe [AttributeKeyAndValue]
$sel:attributes:BatchGetObjectAttributesResponse' :: BatchGetObjectAttributesResponse -> Maybe [AttributeKeyAndValue]
..} =
Int
_salt forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe [AttributeKeyAndValue]
attributes
instance
Prelude.NFData
BatchGetObjectAttributesResponse
where
rnf :: BatchGetObjectAttributesResponse -> ()
rnf BatchGetObjectAttributesResponse' {Maybe [AttributeKeyAndValue]
attributes :: Maybe [AttributeKeyAndValue]
$sel:attributes:BatchGetObjectAttributesResponse' :: BatchGetObjectAttributesResponse -> Maybe [AttributeKeyAndValue]
..} =
forall a. NFData a => a -> ()
Prelude.rnf Maybe [AttributeKeyAndValue]
attributes