{-# 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.BatchCreateIndexResponse where
import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
data BatchCreateIndexResponse = BatchCreateIndexResponse'
{
BatchCreateIndexResponse -> Maybe Text
objectIdentifier :: Prelude.Maybe Prelude.Text
}
deriving (BatchCreateIndexResponse -> BatchCreateIndexResponse -> Bool
(BatchCreateIndexResponse -> BatchCreateIndexResponse -> Bool)
-> (BatchCreateIndexResponse -> BatchCreateIndexResponse -> Bool)
-> Eq BatchCreateIndexResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: BatchCreateIndexResponse -> BatchCreateIndexResponse -> Bool
$c/= :: BatchCreateIndexResponse -> BatchCreateIndexResponse -> Bool
== :: BatchCreateIndexResponse -> BatchCreateIndexResponse -> Bool
$c== :: BatchCreateIndexResponse -> BatchCreateIndexResponse -> Bool
Prelude.Eq, ReadPrec [BatchCreateIndexResponse]
ReadPrec BatchCreateIndexResponse
Int -> ReadS BatchCreateIndexResponse
ReadS [BatchCreateIndexResponse]
(Int -> ReadS BatchCreateIndexResponse)
-> ReadS [BatchCreateIndexResponse]
-> ReadPrec BatchCreateIndexResponse
-> ReadPrec [BatchCreateIndexResponse]
-> Read BatchCreateIndexResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [BatchCreateIndexResponse]
$creadListPrec :: ReadPrec [BatchCreateIndexResponse]
readPrec :: ReadPrec BatchCreateIndexResponse
$creadPrec :: ReadPrec BatchCreateIndexResponse
readList :: ReadS [BatchCreateIndexResponse]
$creadList :: ReadS [BatchCreateIndexResponse]
readsPrec :: Int -> ReadS BatchCreateIndexResponse
$creadsPrec :: Int -> ReadS BatchCreateIndexResponse
Prelude.Read, Int -> BatchCreateIndexResponse -> ShowS
[BatchCreateIndexResponse] -> ShowS
BatchCreateIndexResponse -> String
(Int -> BatchCreateIndexResponse -> ShowS)
-> (BatchCreateIndexResponse -> String)
-> ([BatchCreateIndexResponse] -> ShowS)
-> Show BatchCreateIndexResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [BatchCreateIndexResponse] -> ShowS
$cshowList :: [BatchCreateIndexResponse] -> ShowS
show :: BatchCreateIndexResponse -> String
$cshow :: BatchCreateIndexResponse -> String
showsPrec :: Int -> BatchCreateIndexResponse -> ShowS
$cshowsPrec :: Int -> BatchCreateIndexResponse -> ShowS
Prelude.Show, (forall x.
BatchCreateIndexResponse -> Rep BatchCreateIndexResponse x)
-> (forall x.
Rep BatchCreateIndexResponse x -> BatchCreateIndexResponse)
-> Generic BatchCreateIndexResponse
forall x.
Rep BatchCreateIndexResponse x -> BatchCreateIndexResponse
forall x.
BatchCreateIndexResponse -> Rep BatchCreateIndexResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep BatchCreateIndexResponse x -> BatchCreateIndexResponse
$cfrom :: forall x.
BatchCreateIndexResponse -> Rep BatchCreateIndexResponse x
Prelude.Generic)
newBatchCreateIndexResponse ::
BatchCreateIndexResponse
newBatchCreateIndexResponse :: BatchCreateIndexResponse
newBatchCreateIndexResponse =
BatchCreateIndexResponse' :: Maybe Text -> BatchCreateIndexResponse
BatchCreateIndexResponse'
{ $sel:objectIdentifier:BatchCreateIndexResponse' :: Maybe Text
objectIdentifier =
Maybe Text
forall a. Maybe a
Prelude.Nothing
}
batchCreateIndexResponse_objectIdentifier :: Lens.Lens' BatchCreateIndexResponse (Prelude.Maybe Prelude.Text)
batchCreateIndexResponse_objectIdentifier :: (Maybe Text -> f (Maybe Text))
-> BatchCreateIndexResponse -> f BatchCreateIndexResponse
batchCreateIndexResponse_objectIdentifier = (BatchCreateIndexResponse -> Maybe Text)
-> (BatchCreateIndexResponse
-> Maybe Text -> BatchCreateIndexResponse)
-> Lens
BatchCreateIndexResponse
BatchCreateIndexResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\BatchCreateIndexResponse' {Maybe Text
objectIdentifier :: Maybe Text
$sel:objectIdentifier:BatchCreateIndexResponse' :: BatchCreateIndexResponse -> Maybe Text
objectIdentifier} -> Maybe Text
objectIdentifier) (\s :: BatchCreateIndexResponse
s@BatchCreateIndexResponse' {} Maybe Text
a -> BatchCreateIndexResponse
s {$sel:objectIdentifier:BatchCreateIndexResponse' :: Maybe Text
objectIdentifier = Maybe Text
a} :: BatchCreateIndexResponse)
instance Core.FromJSON BatchCreateIndexResponse where
parseJSON :: Value -> Parser BatchCreateIndexResponse
parseJSON =
String
-> (Object -> Parser BatchCreateIndexResponse)
-> Value
-> Parser BatchCreateIndexResponse
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Core.withObject
String
"BatchCreateIndexResponse"
( \Object
x ->
Maybe Text -> BatchCreateIndexResponse
BatchCreateIndexResponse'
(Maybe Text -> BatchCreateIndexResponse)
-> Parser (Maybe Text) -> Parser BatchCreateIndexResponse
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"ObjectIdentifier")
)
instance Prelude.Hashable BatchCreateIndexResponse
instance Prelude.NFData BatchCreateIndexResponse