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