{-# 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.Core.Lens.Internal as Lens
import qualified Amazonka.Data as Data
import qualified Amazonka.Prelude as Prelude
data BatchDetachObjectResponse = BatchDetachObjectResponse'
{
BatchDetachObjectResponse -> Maybe Text
detachedObjectIdentifier :: Prelude.Maybe Prelude.Text
}
deriving (BatchDetachObjectResponse -> BatchDetachObjectResponse -> Bool
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]
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
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.
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'
{ $sel:detachedObjectIdentifier:BatchDetachObjectResponse' :: Maybe Text
detachedObjectIdentifier =
forall a. Maybe a
Prelude.Nothing
}
batchDetachObjectResponse_detachedObjectIdentifier :: Lens.Lens' BatchDetachObjectResponse (Prelude.Maybe Prelude.Text)
batchDetachObjectResponse_detachedObjectIdentifier :: Lens' BatchDetachObjectResponse (Maybe Text)
batchDetachObjectResponse_detachedObjectIdentifier = 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 Data.FromJSON BatchDetachObjectResponse where
parseJSON :: Value -> Parser BatchDetachObjectResponse
parseJSON =
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Data.withObject
String
"BatchDetachObjectResponse"
( \Object
x ->
Maybe Text -> BatchDetachObjectResponse
BatchDetachObjectResponse'
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
"detachedObjectIdentifier")
)
instance Prelude.Hashable BatchDetachObjectResponse where
hashWithSalt :: Int -> BatchDetachObjectResponse -> Int
hashWithSalt Int
_salt BatchDetachObjectResponse' {Maybe Text
detachedObjectIdentifier :: Maybe Text
$sel:detachedObjectIdentifier:BatchDetachObjectResponse' :: BatchDetachObjectResponse -> Maybe Text
..} =
Int
_salt
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
detachedObjectIdentifier
instance Prelude.NFData BatchDetachObjectResponse where
rnf :: BatchDetachObjectResponse -> ()
rnf BatchDetachObjectResponse' {Maybe Text
detachedObjectIdentifier :: Maybe Text
$sel:detachedObjectIdentifier:BatchDetachObjectResponse' :: BatchDetachObjectResponse -> Maybe Text
..} =
forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
detachedObjectIdentifier