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