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