{-# 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.BatchGetObjectInformation where
import Amazonka.CloudDirectory.Types.ObjectReference
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 BatchGetObjectInformation = BatchGetObjectInformation'
{
BatchGetObjectInformation -> ObjectReference
objectReference :: ObjectReference
}
deriving (BatchGetObjectInformation -> BatchGetObjectInformation -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: BatchGetObjectInformation -> BatchGetObjectInformation -> Bool
$c/= :: BatchGetObjectInformation -> BatchGetObjectInformation -> Bool
== :: BatchGetObjectInformation -> BatchGetObjectInformation -> Bool
$c== :: BatchGetObjectInformation -> BatchGetObjectInformation -> Bool
Prelude.Eq, ReadPrec [BatchGetObjectInformation]
ReadPrec BatchGetObjectInformation
Int -> ReadS BatchGetObjectInformation
ReadS [BatchGetObjectInformation]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [BatchGetObjectInformation]
$creadListPrec :: ReadPrec [BatchGetObjectInformation]
readPrec :: ReadPrec BatchGetObjectInformation
$creadPrec :: ReadPrec BatchGetObjectInformation
readList :: ReadS [BatchGetObjectInformation]
$creadList :: ReadS [BatchGetObjectInformation]
readsPrec :: Int -> ReadS BatchGetObjectInformation
$creadsPrec :: Int -> ReadS BatchGetObjectInformation
Prelude.Read, Int -> BatchGetObjectInformation -> ShowS
[BatchGetObjectInformation] -> ShowS
BatchGetObjectInformation -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [BatchGetObjectInformation] -> ShowS
$cshowList :: [BatchGetObjectInformation] -> ShowS
show :: BatchGetObjectInformation -> String
$cshow :: BatchGetObjectInformation -> String
showsPrec :: Int -> BatchGetObjectInformation -> ShowS
$cshowsPrec :: Int -> BatchGetObjectInformation -> ShowS
Prelude.Show, forall x.
Rep BatchGetObjectInformation x -> BatchGetObjectInformation
forall x.
BatchGetObjectInformation -> Rep BatchGetObjectInformation x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep BatchGetObjectInformation x -> BatchGetObjectInformation
$cfrom :: forall x.
BatchGetObjectInformation -> Rep BatchGetObjectInformation x
Prelude.Generic)
newBatchGetObjectInformation ::
ObjectReference ->
BatchGetObjectInformation
newBatchGetObjectInformation :: ObjectReference -> BatchGetObjectInformation
newBatchGetObjectInformation ObjectReference
pObjectReference_ =
BatchGetObjectInformation'
{ $sel:objectReference:BatchGetObjectInformation' :: ObjectReference
objectReference =
ObjectReference
pObjectReference_
}
batchGetObjectInformation_objectReference :: Lens.Lens' BatchGetObjectInformation ObjectReference
batchGetObjectInformation_objectReference :: Lens' BatchGetObjectInformation ObjectReference
batchGetObjectInformation_objectReference = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\BatchGetObjectInformation' {ObjectReference
objectReference :: ObjectReference
$sel:objectReference:BatchGetObjectInformation' :: BatchGetObjectInformation -> ObjectReference
objectReference} -> ObjectReference
objectReference) (\s :: BatchGetObjectInformation
s@BatchGetObjectInformation' {} ObjectReference
a -> BatchGetObjectInformation
s {$sel:objectReference:BatchGetObjectInformation' :: ObjectReference
objectReference = ObjectReference
a} :: BatchGetObjectInformation)
instance Prelude.Hashable BatchGetObjectInformation where
hashWithSalt :: Int -> BatchGetObjectInformation -> Int
hashWithSalt Int
_salt BatchGetObjectInformation' {ObjectReference
objectReference :: ObjectReference
$sel:objectReference:BatchGetObjectInformation' :: BatchGetObjectInformation -> ObjectReference
..} =
Int
_salt forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` ObjectReference
objectReference
instance Prelude.NFData BatchGetObjectInformation where
rnf :: BatchGetObjectInformation -> ()
rnf BatchGetObjectInformation' {ObjectReference
objectReference :: ObjectReference
$sel:objectReference:BatchGetObjectInformation' :: BatchGetObjectInformation -> ObjectReference
..} =
forall a. NFData a => a -> ()
Prelude.rnf ObjectReference
objectReference
instance Data.ToJSON BatchGetObjectInformation where
toJSON :: BatchGetObjectInformation -> Value
toJSON BatchGetObjectInformation' {ObjectReference
objectReference :: ObjectReference
$sel:objectReference:BatchGetObjectInformation' :: BatchGetObjectInformation -> ObjectReference
..} =
[Pair] -> Value
Data.object
( forall a. [Maybe a] -> [a]
Prelude.catMaybes
[ forall a. a -> Maybe a
Prelude.Just
(Key
"ObjectReference" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..= ObjectReference
objectReference)
]
)