{-# 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.BatchReadOperation where
import Amazonka.CloudDirectory.Types.BatchGetLinkAttributes
import Amazonka.CloudDirectory.Types.BatchGetObjectAttributes
import Amazonka.CloudDirectory.Types.BatchGetObjectInformation
import Amazonka.CloudDirectory.Types.BatchListAttachedIndices
import Amazonka.CloudDirectory.Types.BatchListIncomingTypedLinks
import Amazonka.CloudDirectory.Types.BatchListIndex
import Amazonka.CloudDirectory.Types.BatchListObjectAttributes
import Amazonka.CloudDirectory.Types.BatchListObjectChildren
import Amazonka.CloudDirectory.Types.BatchListObjectParentPaths
import Amazonka.CloudDirectory.Types.BatchListObjectParents
import Amazonka.CloudDirectory.Types.BatchListObjectPolicies
import Amazonka.CloudDirectory.Types.BatchListOutgoingTypedLinks
import Amazonka.CloudDirectory.Types.BatchListPolicyAttachments
import Amazonka.CloudDirectory.Types.BatchLookupPolicy
import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
data BatchReadOperation = BatchReadOperation'
{
BatchReadOperation -> Maybe BatchListIndex
listIndex :: Prelude.Maybe BatchListIndex,
BatchReadOperation -> Maybe BatchGetObjectInformation
getObjectInformation :: Prelude.Maybe BatchGetObjectInformation,
BatchReadOperation -> Maybe BatchListAttachedIndices
listAttachedIndices :: Prelude.Maybe BatchListAttachedIndices,
BatchReadOperation -> Maybe BatchLookupPolicy
lookupPolicy :: Prelude.Maybe BatchLookupPolicy,
BatchReadOperation -> Maybe BatchListObjectParentPaths
listObjectParentPaths :: Prelude.Maybe BatchListObjectParentPaths,
BatchReadOperation -> Maybe BatchListObjectAttributes
listObjectAttributes :: Prelude.Maybe BatchListObjectAttributes,
BatchReadOperation -> Maybe BatchListIncomingTypedLinks
listIncomingTypedLinks :: Prelude.Maybe BatchListIncomingTypedLinks,
BatchReadOperation -> Maybe BatchGetLinkAttributes
getLinkAttributes :: Prelude.Maybe BatchGetLinkAttributes,
BatchReadOperation -> Maybe BatchGetObjectAttributes
getObjectAttributes :: Prelude.Maybe BatchGetObjectAttributes,
BatchReadOperation -> Maybe BatchListObjectChildren
listObjectChildren :: Prelude.Maybe BatchListObjectChildren,
BatchReadOperation -> Maybe BatchListObjectParents
listObjectParents :: Prelude.Maybe BatchListObjectParents,
BatchReadOperation -> Maybe BatchListPolicyAttachments
listPolicyAttachments :: Prelude.Maybe BatchListPolicyAttachments,
BatchReadOperation -> Maybe BatchListOutgoingTypedLinks
listOutgoingTypedLinks :: Prelude.Maybe BatchListOutgoingTypedLinks,
BatchReadOperation -> Maybe BatchListObjectPolicies
listObjectPolicies :: Prelude.Maybe BatchListObjectPolicies
}
deriving (BatchReadOperation -> BatchReadOperation -> Bool
(BatchReadOperation -> BatchReadOperation -> Bool)
-> (BatchReadOperation -> BatchReadOperation -> Bool)
-> Eq BatchReadOperation
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: BatchReadOperation -> BatchReadOperation -> Bool
$c/= :: BatchReadOperation -> BatchReadOperation -> Bool
== :: BatchReadOperation -> BatchReadOperation -> Bool
$c== :: BatchReadOperation -> BatchReadOperation -> Bool
Prelude.Eq, ReadPrec [BatchReadOperation]
ReadPrec BatchReadOperation
Int -> ReadS BatchReadOperation
ReadS [BatchReadOperation]
(Int -> ReadS BatchReadOperation)
-> ReadS [BatchReadOperation]
-> ReadPrec BatchReadOperation
-> ReadPrec [BatchReadOperation]
-> Read BatchReadOperation
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [BatchReadOperation]
$creadListPrec :: ReadPrec [BatchReadOperation]
readPrec :: ReadPrec BatchReadOperation
$creadPrec :: ReadPrec BatchReadOperation
readList :: ReadS [BatchReadOperation]
$creadList :: ReadS [BatchReadOperation]
readsPrec :: Int -> ReadS BatchReadOperation
$creadsPrec :: Int -> ReadS BatchReadOperation
Prelude.Read, Int -> BatchReadOperation -> ShowS
[BatchReadOperation] -> ShowS
BatchReadOperation -> String
(Int -> BatchReadOperation -> ShowS)
-> (BatchReadOperation -> String)
-> ([BatchReadOperation] -> ShowS)
-> Show BatchReadOperation
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [BatchReadOperation] -> ShowS
$cshowList :: [BatchReadOperation] -> ShowS
show :: BatchReadOperation -> String
$cshow :: BatchReadOperation -> String
showsPrec :: Int -> BatchReadOperation -> ShowS
$cshowsPrec :: Int -> BatchReadOperation -> ShowS
Prelude.Show, (forall x. BatchReadOperation -> Rep BatchReadOperation x)
-> (forall x. Rep BatchReadOperation x -> BatchReadOperation)
-> Generic BatchReadOperation
forall x. Rep BatchReadOperation x -> BatchReadOperation
forall x. BatchReadOperation -> Rep BatchReadOperation x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep BatchReadOperation x -> BatchReadOperation
$cfrom :: forall x. BatchReadOperation -> Rep BatchReadOperation x
Prelude.Generic)
newBatchReadOperation ::
BatchReadOperation
newBatchReadOperation :: BatchReadOperation
newBatchReadOperation =
BatchReadOperation' :: Maybe BatchListIndex
-> Maybe BatchGetObjectInformation
-> Maybe BatchListAttachedIndices
-> Maybe BatchLookupPolicy
-> Maybe BatchListObjectParentPaths
-> Maybe BatchListObjectAttributes
-> Maybe BatchListIncomingTypedLinks
-> Maybe BatchGetLinkAttributes
-> Maybe BatchGetObjectAttributes
-> Maybe BatchListObjectChildren
-> Maybe BatchListObjectParents
-> Maybe BatchListPolicyAttachments
-> Maybe BatchListOutgoingTypedLinks
-> Maybe BatchListObjectPolicies
-> BatchReadOperation
BatchReadOperation'
{ $sel:listIndex:BatchReadOperation' :: Maybe BatchListIndex
listIndex = Maybe BatchListIndex
forall a. Maybe a
Prelude.Nothing,
$sel:getObjectInformation:BatchReadOperation' :: Maybe BatchGetObjectInformation
getObjectInformation = Maybe BatchGetObjectInformation
forall a. Maybe a
Prelude.Nothing,
$sel:listAttachedIndices:BatchReadOperation' :: Maybe BatchListAttachedIndices
listAttachedIndices = Maybe BatchListAttachedIndices
forall a. Maybe a
Prelude.Nothing,
$sel:lookupPolicy:BatchReadOperation' :: Maybe BatchLookupPolicy
lookupPolicy = Maybe BatchLookupPolicy
forall a. Maybe a
Prelude.Nothing,
$sel:listObjectParentPaths:BatchReadOperation' :: Maybe BatchListObjectParentPaths
listObjectParentPaths = Maybe BatchListObjectParentPaths
forall a. Maybe a
Prelude.Nothing,
$sel:listObjectAttributes:BatchReadOperation' :: Maybe BatchListObjectAttributes
listObjectAttributes = Maybe BatchListObjectAttributes
forall a. Maybe a
Prelude.Nothing,
$sel:listIncomingTypedLinks:BatchReadOperation' :: Maybe BatchListIncomingTypedLinks
listIncomingTypedLinks = Maybe BatchListIncomingTypedLinks
forall a. Maybe a
Prelude.Nothing,
$sel:getLinkAttributes:BatchReadOperation' :: Maybe BatchGetLinkAttributes
getLinkAttributes = Maybe BatchGetLinkAttributes
forall a. Maybe a
Prelude.Nothing,
$sel:getObjectAttributes:BatchReadOperation' :: Maybe BatchGetObjectAttributes
getObjectAttributes = Maybe BatchGetObjectAttributes
forall a. Maybe a
Prelude.Nothing,
$sel:listObjectChildren:BatchReadOperation' :: Maybe BatchListObjectChildren
listObjectChildren = Maybe BatchListObjectChildren
forall a. Maybe a
Prelude.Nothing,
$sel:listObjectParents:BatchReadOperation' :: Maybe BatchListObjectParents
listObjectParents = Maybe BatchListObjectParents
forall a. Maybe a
Prelude.Nothing,
$sel:listPolicyAttachments:BatchReadOperation' :: Maybe BatchListPolicyAttachments
listPolicyAttachments = Maybe BatchListPolicyAttachments
forall a. Maybe a
Prelude.Nothing,
$sel:listOutgoingTypedLinks:BatchReadOperation' :: Maybe BatchListOutgoingTypedLinks
listOutgoingTypedLinks = Maybe BatchListOutgoingTypedLinks
forall a. Maybe a
Prelude.Nothing,
$sel:listObjectPolicies:BatchReadOperation' :: Maybe BatchListObjectPolicies
listObjectPolicies = Maybe BatchListObjectPolicies
forall a. Maybe a
Prelude.Nothing
}
batchReadOperation_listIndex :: Lens.Lens' BatchReadOperation (Prelude.Maybe BatchListIndex)
batchReadOperation_listIndex :: (Maybe BatchListIndex -> f (Maybe BatchListIndex))
-> BatchReadOperation -> f BatchReadOperation
batchReadOperation_listIndex = (BatchReadOperation -> Maybe BatchListIndex)
-> (BatchReadOperation
-> Maybe BatchListIndex -> BatchReadOperation)
-> Lens
BatchReadOperation
BatchReadOperation
(Maybe BatchListIndex)
(Maybe BatchListIndex)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\BatchReadOperation' {Maybe BatchListIndex
listIndex :: Maybe BatchListIndex
$sel:listIndex:BatchReadOperation' :: BatchReadOperation -> Maybe BatchListIndex
listIndex} -> Maybe BatchListIndex
listIndex) (\s :: BatchReadOperation
s@BatchReadOperation' {} Maybe BatchListIndex
a -> BatchReadOperation
s {$sel:listIndex:BatchReadOperation' :: Maybe BatchListIndex
listIndex = Maybe BatchListIndex
a} :: BatchReadOperation)
batchReadOperation_getObjectInformation :: Lens.Lens' BatchReadOperation (Prelude.Maybe BatchGetObjectInformation)
batchReadOperation_getObjectInformation :: (Maybe BatchGetObjectInformation
-> f (Maybe BatchGetObjectInformation))
-> BatchReadOperation -> f BatchReadOperation
batchReadOperation_getObjectInformation = (BatchReadOperation -> Maybe BatchGetObjectInformation)
-> (BatchReadOperation
-> Maybe BatchGetObjectInformation -> BatchReadOperation)
-> Lens
BatchReadOperation
BatchReadOperation
(Maybe BatchGetObjectInformation)
(Maybe BatchGetObjectInformation)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\BatchReadOperation' {Maybe BatchGetObjectInformation
getObjectInformation :: Maybe BatchGetObjectInformation
$sel:getObjectInformation:BatchReadOperation' :: BatchReadOperation -> Maybe BatchGetObjectInformation
getObjectInformation} -> Maybe BatchGetObjectInformation
getObjectInformation) (\s :: BatchReadOperation
s@BatchReadOperation' {} Maybe BatchGetObjectInformation
a -> BatchReadOperation
s {$sel:getObjectInformation:BatchReadOperation' :: Maybe BatchGetObjectInformation
getObjectInformation = Maybe BatchGetObjectInformation
a} :: BatchReadOperation)
batchReadOperation_listAttachedIndices :: Lens.Lens' BatchReadOperation (Prelude.Maybe BatchListAttachedIndices)
batchReadOperation_listAttachedIndices :: (Maybe BatchListAttachedIndices
-> f (Maybe BatchListAttachedIndices))
-> BatchReadOperation -> f BatchReadOperation
batchReadOperation_listAttachedIndices = (BatchReadOperation -> Maybe BatchListAttachedIndices)
-> (BatchReadOperation
-> Maybe BatchListAttachedIndices -> BatchReadOperation)
-> Lens
BatchReadOperation
BatchReadOperation
(Maybe BatchListAttachedIndices)
(Maybe BatchListAttachedIndices)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\BatchReadOperation' {Maybe BatchListAttachedIndices
listAttachedIndices :: Maybe BatchListAttachedIndices
$sel:listAttachedIndices:BatchReadOperation' :: BatchReadOperation -> Maybe BatchListAttachedIndices
listAttachedIndices} -> Maybe BatchListAttachedIndices
listAttachedIndices) (\s :: BatchReadOperation
s@BatchReadOperation' {} Maybe BatchListAttachedIndices
a -> BatchReadOperation
s {$sel:listAttachedIndices:BatchReadOperation' :: Maybe BatchListAttachedIndices
listAttachedIndices = Maybe BatchListAttachedIndices
a} :: BatchReadOperation)
batchReadOperation_lookupPolicy :: Lens.Lens' BatchReadOperation (Prelude.Maybe BatchLookupPolicy)
batchReadOperation_lookupPolicy :: (Maybe BatchLookupPolicy -> f (Maybe BatchLookupPolicy))
-> BatchReadOperation -> f BatchReadOperation
batchReadOperation_lookupPolicy = (BatchReadOperation -> Maybe BatchLookupPolicy)
-> (BatchReadOperation
-> Maybe BatchLookupPolicy -> BatchReadOperation)
-> Lens
BatchReadOperation
BatchReadOperation
(Maybe BatchLookupPolicy)
(Maybe BatchLookupPolicy)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\BatchReadOperation' {Maybe BatchLookupPolicy
lookupPolicy :: Maybe BatchLookupPolicy
$sel:lookupPolicy:BatchReadOperation' :: BatchReadOperation -> Maybe BatchLookupPolicy
lookupPolicy} -> Maybe BatchLookupPolicy
lookupPolicy) (\s :: BatchReadOperation
s@BatchReadOperation' {} Maybe BatchLookupPolicy
a -> BatchReadOperation
s {$sel:lookupPolicy:BatchReadOperation' :: Maybe BatchLookupPolicy
lookupPolicy = Maybe BatchLookupPolicy
a} :: BatchReadOperation)
batchReadOperation_listObjectParentPaths :: Lens.Lens' BatchReadOperation (Prelude.Maybe BatchListObjectParentPaths)
batchReadOperation_listObjectParentPaths :: (Maybe BatchListObjectParentPaths
-> f (Maybe BatchListObjectParentPaths))
-> BatchReadOperation -> f BatchReadOperation
batchReadOperation_listObjectParentPaths = (BatchReadOperation -> Maybe BatchListObjectParentPaths)
-> (BatchReadOperation
-> Maybe BatchListObjectParentPaths -> BatchReadOperation)
-> Lens
BatchReadOperation
BatchReadOperation
(Maybe BatchListObjectParentPaths)
(Maybe BatchListObjectParentPaths)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\BatchReadOperation' {Maybe BatchListObjectParentPaths
listObjectParentPaths :: Maybe BatchListObjectParentPaths
$sel:listObjectParentPaths:BatchReadOperation' :: BatchReadOperation -> Maybe BatchListObjectParentPaths
listObjectParentPaths} -> Maybe BatchListObjectParentPaths
listObjectParentPaths) (\s :: BatchReadOperation
s@BatchReadOperation' {} Maybe BatchListObjectParentPaths
a -> BatchReadOperation
s {$sel:listObjectParentPaths:BatchReadOperation' :: Maybe BatchListObjectParentPaths
listObjectParentPaths = Maybe BatchListObjectParentPaths
a} :: BatchReadOperation)
batchReadOperation_listObjectAttributes :: Lens.Lens' BatchReadOperation (Prelude.Maybe BatchListObjectAttributes)
batchReadOperation_listObjectAttributes :: (Maybe BatchListObjectAttributes
-> f (Maybe BatchListObjectAttributes))
-> BatchReadOperation -> f BatchReadOperation
batchReadOperation_listObjectAttributes = (BatchReadOperation -> Maybe BatchListObjectAttributes)
-> (BatchReadOperation
-> Maybe BatchListObjectAttributes -> BatchReadOperation)
-> Lens
BatchReadOperation
BatchReadOperation
(Maybe BatchListObjectAttributes)
(Maybe BatchListObjectAttributes)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\BatchReadOperation' {Maybe BatchListObjectAttributes
listObjectAttributes :: Maybe BatchListObjectAttributes
$sel:listObjectAttributes:BatchReadOperation' :: BatchReadOperation -> Maybe BatchListObjectAttributes
listObjectAttributes} -> Maybe BatchListObjectAttributes
listObjectAttributes) (\s :: BatchReadOperation
s@BatchReadOperation' {} Maybe BatchListObjectAttributes
a -> BatchReadOperation
s {$sel:listObjectAttributes:BatchReadOperation' :: Maybe BatchListObjectAttributes
listObjectAttributes = Maybe BatchListObjectAttributes
a} :: BatchReadOperation)
batchReadOperation_listIncomingTypedLinks :: Lens.Lens' BatchReadOperation (Prelude.Maybe BatchListIncomingTypedLinks)
batchReadOperation_listIncomingTypedLinks :: (Maybe BatchListIncomingTypedLinks
-> f (Maybe BatchListIncomingTypedLinks))
-> BatchReadOperation -> f BatchReadOperation
batchReadOperation_listIncomingTypedLinks = (BatchReadOperation -> Maybe BatchListIncomingTypedLinks)
-> (BatchReadOperation
-> Maybe BatchListIncomingTypedLinks -> BatchReadOperation)
-> Lens
BatchReadOperation
BatchReadOperation
(Maybe BatchListIncomingTypedLinks)
(Maybe BatchListIncomingTypedLinks)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\BatchReadOperation' {Maybe BatchListIncomingTypedLinks
listIncomingTypedLinks :: Maybe BatchListIncomingTypedLinks
$sel:listIncomingTypedLinks:BatchReadOperation' :: BatchReadOperation -> Maybe BatchListIncomingTypedLinks
listIncomingTypedLinks} -> Maybe BatchListIncomingTypedLinks
listIncomingTypedLinks) (\s :: BatchReadOperation
s@BatchReadOperation' {} Maybe BatchListIncomingTypedLinks
a -> BatchReadOperation
s {$sel:listIncomingTypedLinks:BatchReadOperation' :: Maybe BatchListIncomingTypedLinks
listIncomingTypedLinks = Maybe BatchListIncomingTypedLinks
a} :: BatchReadOperation)
batchReadOperation_getLinkAttributes :: Lens.Lens' BatchReadOperation (Prelude.Maybe BatchGetLinkAttributes)
batchReadOperation_getLinkAttributes :: (Maybe BatchGetLinkAttributes -> f (Maybe BatchGetLinkAttributes))
-> BatchReadOperation -> f BatchReadOperation
batchReadOperation_getLinkAttributes = (BatchReadOperation -> Maybe BatchGetLinkAttributes)
-> (BatchReadOperation
-> Maybe BatchGetLinkAttributes -> BatchReadOperation)
-> Lens
BatchReadOperation
BatchReadOperation
(Maybe BatchGetLinkAttributes)
(Maybe BatchGetLinkAttributes)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\BatchReadOperation' {Maybe BatchGetLinkAttributes
getLinkAttributes :: Maybe BatchGetLinkAttributes
$sel:getLinkAttributes:BatchReadOperation' :: BatchReadOperation -> Maybe BatchGetLinkAttributes
getLinkAttributes} -> Maybe BatchGetLinkAttributes
getLinkAttributes) (\s :: BatchReadOperation
s@BatchReadOperation' {} Maybe BatchGetLinkAttributes
a -> BatchReadOperation
s {$sel:getLinkAttributes:BatchReadOperation' :: Maybe BatchGetLinkAttributes
getLinkAttributes = Maybe BatchGetLinkAttributes
a} :: BatchReadOperation)
batchReadOperation_getObjectAttributes :: Lens.Lens' BatchReadOperation (Prelude.Maybe BatchGetObjectAttributes)
batchReadOperation_getObjectAttributes :: (Maybe BatchGetObjectAttributes
-> f (Maybe BatchGetObjectAttributes))
-> BatchReadOperation -> f BatchReadOperation
batchReadOperation_getObjectAttributes = (BatchReadOperation -> Maybe BatchGetObjectAttributes)
-> (BatchReadOperation
-> Maybe BatchGetObjectAttributes -> BatchReadOperation)
-> Lens
BatchReadOperation
BatchReadOperation
(Maybe BatchGetObjectAttributes)
(Maybe BatchGetObjectAttributes)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\BatchReadOperation' {Maybe BatchGetObjectAttributes
getObjectAttributes :: Maybe BatchGetObjectAttributes
$sel:getObjectAttributes:BatchReadOperation' :: BatchReadOperation -> Maybe BatchGetObjectAttributes
getObjectAttributes} -> Maybe BatchGetObjectAttributes
getObjectAttributes) (\s :: BatchReadOperation
s@BatchReadOperation' {} Maybe BatchGetObjectAttributes
a -> BatchReadOperation
s {$sel:getObjectAttributes:BatchReadOperation' :: Maybe BatchGetObjectAttributes
getObjectAttributes = Maybe BatchGetObjectAttributes
a} :: BatchReadOperation)
batchReadOperation_listObjectChildren :: Lens.Lens' BatchReadOperation (Prelude.Maybe BatchListObjectChildren)
batchReadOperation_listObjectChildren :: (Maybe BatchListObjectChildren
-> f (Maybe BatchListObjectChildren))
-> BatchReadOperation -> f BatchReadOperation
batchReadOperation_listObjectChildren = (BatchReadOperation -> Maybe BatchListObjectChildren)
-> (BatchReadOperation
-> Maybe BatchListObjectChildren -> BatchReadOperation)
-> Lens
BatchReadOperation
BatchReadOperation
(Maybe BatchListObjectChildren)
(Maybe BatchListObjectChildren)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\BatchReadOperation' {Maybe BatchListObjectChildren
listObjectChildren :: Maybe BatchListObjectChildren
$sel:listObjectChildren:BatchReadOperation' :: BatchReadOperation -> Maybe BatchListObjectChildren
listObjectChildren} -> Maybe BatchListObjectChildren
listObjectChildren) (\s :: BatchReadOperation
s@BatchReadOperation' {} Maybe BatchListObjectChildren
a -> BatchReadOperation
s {$sel:listObjectChildren:BatchReadOperation' :: Maybe BatchListObjectChildren
listObjectChildren = Maybe BatchListObjectChildren
a} :: BatchReadOperation)
batchReadOperation_listObjectParents :: Lens.Lens' BatchReadOperation (Prelude.Maybe BatchListObjectParents)
batchReadOperation_listObjectParents :: (Maybe BatchListObjectParents -> f (Maybe BatchListObjectParents))
-> BatchReadOperation -> f BatchReadOperation
batchReadOperation_listObjectParents = (BatchReadOperation -> Maybe BatchListObjectParents)
-> (BatchReadOperation
-> Maybe BatchListObjectParents -> BatchReadOperation)
-> Lens
BatchReadOperation
BatchReadOperation
(Maybe BatchListObjectParents)
(Maybe BatchListObjectParents)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\BatchReadOperation' {Maybe BatchListObjectParents
listObjectParents :: Maybe BatchListObjectParents
$sel:listObjectParents:BatchReadOperation' :: BatchReadOperation -> Maybe BatchListObjectParents
listObjectParents} -> Maybe BatchListObjectParents
listObjectParents) (\s :: BatchReadOperation
s@BatchReadOperation' {} Maybe BatchListObjectParents
a -> BatchReadOperation
s {$sel:listObjectParents:BatchReadOperation' :: Maybe BatchListObjectParents
listObjectParents = Maybe BatchListObjectParents
a} :: BatchReadOperation)
batchReadOperation_listPolicyAttachments :: Lens.Lens' BatchReadOperation (Prelude.Maybe BatchListPolicyAttachments)
batchReadOperation_listPolicyAttachments :: (Maybe BatchListPolicyAttachments
-> f (Maybe BatchListPolicyAttachments))
-> BatchReadOperation -> f BatchReadOperation
batchReadOperation_listPolicyAttachments = (BatchReadOperation -> Maybe BatchListPolicyAttachments)
-> (BatchReadOperation
-> Maybe BatchListPolicyAttachments -> BatchReadOperation)
-> Lens
BatchReadOperation
BatchReadOperation
(Maybe BatchListPolicyAttachments)
(Maybe BatchListPolicyAttachments)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\BatchReadOperation' {Maybe BatchListPolicyAttachments
listPolicyAttachments :: Maybe BatchListPolicyAttachments
$sel:listPolicyAttachments:BatchReadOperation' :: BatchReadOperation -> Maybe BatchListPolicyAttachments
listPolicyAttachments} -> Maybe BatchListPolicyAttachments
listPolicyAttachments) (\s :: BatchReadOperation
s@BatchReadOperation' {} Maybe BatchListPolicyAttachments
a -> BatchReadOperation
s {$sel:listPolicyAttachments:BatchReadOperation' :: Maybe BatchListPolicyAttachments
listPolicyAttachments = Maybe BatchListPolicyAttachments
a} :: BatchReadOperation)
batchReadOperation_listOutgoingTypedLinks :: Lens.Lens' BatchReadOperation (Prelude.Maybe BatchListOutgoingTypedLinks)
batchReadOperation_listOutgoingTypedLinks :: (Maybe BatchListOutgoingTypedLinks
-> f (Maybe BatchListOutgoingTypedLinks))
-> BatchReadOperation -> f BatchReadOperation
batchReadOperation_listOutgoingTypedLinks = (BatchReadOperation -> Maybe BatchListOutgoingTypedLinks)
-> (BatchReadOperation
-> Maybe BatchListOutgoingTypedLinks -> BatchReadOperation)
-> Lens
BatchReadOperation
BatchReadOperation
(Maybe BatchListOutgoingTypedLinks)
(Maybe BatchListOutgoingTypedLinks)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\BatchReadOperation' {Maybe BatchListOutgoingTypedLinks
listOutgoingTypedLinks :: Maybe BatchListOutgoingTypedLinks
$sel:listOutgoingTypedLinks:BatchReadOperation' :: BatchReadOperation -> Maybe BatchListOutgoingTypedLinks
listOutgoingTypedLinks} -> Maybe BatchListOutgoingTypedLinks
listOutgoingTypedLinks) (\s :: BatchReadOperation
s@BatchReadOperation' {} Maybe BatchListOutgoingTypedLinks
a -> BatchReadOperation
s {$sel:listOutgoingTypedLinks:BatchReadOperation' :: Maybe BatchListOutgoingTypedLinks
listOutgoingTypedLinks = Maybe BatchListOutgoingTypedLinks
a} :: BatchReadOperation)
batchReadOperation_listObjectPolicies :: Lens.Lens' BatchReadOperation (Prelude.Maybe BatchListObjectPolicies)
batchReadOperation_listObjectPolicies :: (Maybe BatchListObjectPolicies
-> f (Maybe BatchListObjectPolicies))
-> BatchReadOperation -> f BatchReadOperation
batchReadOperation_listObjectPolicies = (BatchReadOperation -> Maybe BatchListObjectPolicies)
-> (BatchReadOperation
-> Maybe BatchListObjectPolicies -> BatchReadOperation)
-> Lens
BatchReadOperation
BatchReadOperation
(Maybe BatchListObjectPolicies)
(Maybe BatchListObjectPolicies)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\BatchReadOperation' {Maybe BatchListObjectPolicies
listObjectPolicies :: Maybe BatchListObjectPolicies
$sel:listObjectPolicies:BatchReadOperation' :: BatchReadOperation -> Maybe BatchListObjectPolicies
listObjectPolicies} -> Maybe BatchListObjectPolicies
listObjectPolicies) (\s :: BatchReadOperation
s@BatchReadOperation' {} Maybe BatchListObjectPolicies
a -> BatchReadOperation
s {$sel:listObjectPolicies:BatchReadOperation' :: Maybe BatchListObjectPolicies
listObjectPolicies = Maybe BatchListObjectPolicies
a} :: BatchReadOperation)
instance Prelude.Hashable BatchReadOperation
instance Prelude.NFData BatchReadOperation
instance Core.ToJSON BatchReadOperation where
toJSON :: BatchReadOperation -> Value
toJSON BatchReadOperation' {Maybe BatchLookupPolicy
Maybe BatchListPolicyAttachments
Maybe BatchListObjectPolicies
Maybe BatchListObjectParents
Maybe BatchListObjectParentPaths
Maybe BatchListObjectChildren
Maybe BatchListAttachedIndices
Maybe BatchGetObjectInformation
Maybe BatchListObjectAttributes
Maybe BatchGetObjectAttributes
Maybe BatchListIndex
Maybe BatchListOutgoingTypedLinks
Maybe BatchListIncomingTypedLinks
Maybe BatchGetLinkAttributes
listObjectPolicies :: Maybe BatchListObjectPolicies
listOutgoingTypedLinks :: Maybe BatchListOutgoingTypedLinks
listPolicyAttachments :: Maybe BatchListPolicyAttachments
listObjectParents :: Maybe BatchListObjectParents
listObjectChildren :: Maybe BatchListObjectChildren
getObjectAttributes :: Maybe BatchGetObjectAttributes
getLinkAttributes :: Maybe BatchGetLinkAttributes
listIncomingTypedLinks :: Maybe BatchListIncomingTypedLinks
listObjectAttributes :: Maybe BatchListObjectAttributes
listObjectParentPaths :: Maybe BatchListObjectParentPaths
lookupPolicy :: Maybe BatchLookupPolicy
listAttachedIndices :: Maybe BatchListAttachedIndices
getObjectInformation :: Maybe BatchGetObjectInformation
listIndex :: Maybe BatchListIndex
$sel:listObjectPolicies:BatchReadOperation' :: BatchReadOperation -> Maybe BatchListObjectPolicies
$sel:listOutgoingTypedLinks:BatchReadOperation' :: BatchReadOperation -> Maybe BatchListOutgoingTypedLinks
$sel:listPolicyAttachments:BatchReadOperation' :: BatchReadOperation -> Maybe BatchListPolicyAttachments
$sel:listObjectParents:BatchReadOperation' :: BatchReadOperation -> Maybe BatchListObjectParents
$sel:listObjectChildren:BatchReadOperation' :: BatchReadOperation -> Maybe BatchListObjectChildren
$sel:getObjectAttributes:BatchReadOperation' :: BatchReadOperation -> Maybe BatchGetObjectAttributes
$sel:getLinkAttributes:BatchReadOperation' :: BatchReadOperation -> Maybe BatchGetLinkAttributes
$sel:listIncomingTypedLinks:BatchReadOperation' :: BatchReadOperation -> Maybe BatchListIncomingTypedLinks
$sel:listObjectAttributes:BatchReadOperation' :: BatchReadOperation -> Maybe BatchListObjectAttributes
$sel:listObjectParentPaths:BatchReadOperation' :: BatchReadOperation -> Maybe BatchListObjectParentPaths
$sel:lookupPolicy:BatchReadOperation' :: BatchReadOperation -> Maybe BatchLookupPolicy
$sel:listAttachedIndices:BatchReadOperation' :: BatchReadOperation -> Maybe BatchListAttachedIndices
$sel:getObjectInformation:BatchReadOperation' :: BatchReadOperation -> Maybe BatchGetObjectInformation
$sel:listIndex:BatchReadOperation' :: BatchReadOperation -> Maybe BatchListIndex
..} =
[Pair] -> Value
Core.object
( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[ (Text
"ListIndex" Text -> BatchListIndex -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (BatchListIndex -> Pair) -> Maybe BatchListIndex -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe BatchListIndex
listIndex,
(Text
"GetObjectInformation" Text -> BatchGetObjectInformation -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
(BatchGetObjectInformation -> Pair)
-> Maybe BatchGetObjectInformation -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe BatchGetObjectInformation
getObjectInformation,
(Text
"ListAttachedIndices" Text -> BatchListAttachedIndices -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
(BatchListAttachedIndices -> Pair)
-> Maybe BatchListAttachedIndices -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe BatchListAttachedIndices
listAttachedIndices,
(Text
"LookupPolicy" Text -> BatchLookupPolicy -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (BatchLookupPolicy -> Pair)
-> Maybe BatchLookupPolicy -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe BatchLookupPolicy
lookupPolicy,
(Text
"ListObjectParentPaths" Text -> BatchListObjectParentPaths -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
(BatchListObjectParentPaths -> Pair)
-> Maybe BatchListObjectParentPaths -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe BatchListObjectParentPaths
listObjectParentPaths,
(Text
"ListObjectAttributes" Text -> BatchListObjectAttributes -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
(BatchListObjectAttributes -> Pair)
-> Maybe BatchListObjectAttributes -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe BatchListObjectAttributes
listObjectAttributes,
(Text
"ListIncomingTypedLinks" Text -> BatchListIncomingTypedLinks -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
(BatchListIncomingTypedLinks -> Pair)
-> Maybe BatchListIncomingTypedLinks -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe BatchListIncomingTypedLinks
listIncomingTypedLinks,
(Text
"GetLinkAttributes" Text -> BatchGetLinkAttributes -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
(BatchGetLinkAttributes -> Pair)
-> Maybe BatchGetLinkAttributes -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe BatchGetLinkAttributes
getLinkAttributes,
(Text
"GetObjectAttributes" Text -> BatchGetObjectAttributes -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
(BatchGetObjectAttributes -> Pair)
-> Maybe BatchGetObjectAttributes -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe BatchGetObjectAttributes
getObjectAttributes,
(Text
"ListObjectChildren" Text -> BatchListObjectChildren -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
(BatchListObjectChildren -> Pair)
-> Maybe BatchListObjectChildren -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe BatchListObjectChildren
listObjectChildren,
(Text
"ListObjectParents" Text -> BatchListObjectParents -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
(BatchListObjectParents -> Pair)
-> Maybe BatchListObjectParents -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe BatchListObjectParents
listObjectParents,
(Text
"ListPolicyAttachments" Text -> BatchListPolicyAttachments -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
(BatchListPolicyAttachments -> Pair)
-> Maybe BatchListPolicyAttachments -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe BatchListPolicyAttachments
listPolicyAttachments,
(Text
"ListOutgoingTypedLinks" Text -> BatchListOutgoingTypedLinks -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
(BatchListOutgoingTypedLinks -> Pair)
-> Maybe BatchListOutgoingTypedLinks -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe BatchListOutgoingTypedLinks
listOutgoingTypedLinks,
(Text
"ListObjectPolicies" Text -> BatchListObjectPolicies -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
(BatchListObjectPolicies -> Pair)
-> Maybe BatchListObjectPolicies -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe BatchListObjectPolicies
listObjectPolicies
]
)