{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DuplicateRecordFields #-}
{-# LANGUAGE NamedFieldPuns #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-binds #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
{-# OPTIONS_GHC -fno-warn-unused-matches #-}
module Amazonka.MGN.DeleteVcenterClient
(
DeleteVcenterClient (..),
newDeleteVcenterClient,
deleteVcenterClient_vcenterClientID,
DeleteVcenterClientResponse (..),
newDeleteVcenterClientResponse,
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Core.Lens.Internal as Lens
import qualified Amazonka.Data as Data
import Amazonka.MGN.Types
import qualified Amazonka.Prelude as Prelude
import qualified Amazonka.Request as Request
import qualified Amazonka.Response as Response
data DeleteVcenterClient = DeleteVcenterClient'
{
DeleteVcenterClient -> Text
vcenterClientID :: Prelude.Text
}
deriving (DeleteVcenterClient -> DeleteVcenterClient -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DeleteVcenterClient -> DeleteVcenterClient -> Bool
$c/= :: DeleteVcenterClient -> DeleteVcenterClient -> Bool
== :: DeleteVcenterClient -> DeleteVcenterClient -> Bool
$c== :: DeleteVcenterClient -> DeleteVcenterClient -> Bool
Prelude.Eq, ReadPrec [DeleteVcenterClient]
ReadPrec DeleteVcenterClient
Int -> ReadS DeleteVcenterClient
ReadS [DeleteVcenterClient]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DeleteVcenterClient]
$creadListPrec :: ReadPrec [DeleteVcenterClient]
readPrec :: ReadPrec DeleteVcenterClient
$creadPrec :: ReadPrec DeleteVcenterClient
readList :: ReadS [DeleteVcenterClient]
$creadList :: ReadS [DeleteVcenterClient]
readsPrec :: Int -> ReadS DeleteVcenterClient
$creadsPrec :: Int -> ReadS DeleteVcenterClient
Prelude.Read, Int -> DeleteVcenterClient -> ShowS
[DeleteVcenterClient] -> ShowS
DeleteVcenterClient -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DeleteVcenterClient] -> ShowS
$cshowList :: [DeleteVcenterClient] -> ShowS
show :: DeleteVcenterClient -> String
$cshow :: DeleteVcenterClient -> String
showsPrec :: Int -> DeleteVcenterClient -> ShowS
$cshowsPrec :: Int -> DeleteVcenterClient -> ShowS
Prelude.Show, forall x. Rep DeleteVcenterClient x -> DeleteVcenterClient
forall x. DeleteVcenterClient -> Rep DeleteVcenterClient x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep DeleteVcenterClient x -> DeleteVcenterClient
$cfrom :: forall x. DeleteVcenterClient -> Rep DeleteVcenterClient x
Prelude.Generic)
newDeleteVcenterClient ::
Prelude.Text ->
DeleteVcenterClient
newDeleteVcenterClient :: Text -> DeleteVcenterClient
newDeleteVcenterClient Text
pVcenterClientID_ =
DeleteVcenterClient'
{ $sel:vcenterClientID:DeleteVcenterClient' :: Text
vcenterClientID =
Text
pVcenterClientID_
}
deleteVcenterClient_vcenterClientID :: Lens.Lens' DeleteVcenterClient Prelude.Text
deleteVcenterClient_vcenterClientID :: Lens' DeleteVcenterClient Text
deleteVcenterClient_vcenterClientID = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DeleteVcenterClient' {Text
vcenterClientID :: Text
$sel:vcenterClientID:DeleteVcenterClient' :: DeleteVcenterClient -> Text
vcenterClientID} -> Text
vcenterClientID) (\s :: DeleteVcenterClient
s@DeleteVcenterClient' {} Text
a -> DeleteVcenterClient
s {$sel:vcenterClientID:DeleteVcenterClient' :: Text
vcenterClientID = Text
a} :: DeleteVcenterClient)
instance Core.AWSRequest DeleteVcenterClient where
type
AWSResponse DeleteVcenterClient =
DeleteVcenterClientResponse
request :: (Service -> Service)
-> DeleteVcenterClient -> Request DeleteVcenterClient
request Service -> Service
overrides =
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON (Service -> Service
overrides Service
defaultService)
response :: forall (m :: * -> *).
MonadResource m =>
(ByteStringLazy -> IO ByteStringLazy)
-> Service
-> Proxy DeleteVcenterClient
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse DeleteVcenterClient)))
response =
forall (m :: * -> *) a.
MonadResource m =>
AWSResponse a
-> (ByteStringLazy -> IO ByteStringLazy)
-> Service
-> Proxy a
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse a)))
Response.receiveNull DeleteVcenterClientResponse
DeleteVcenterClientResponse'
instance Prelude.Hashable DeleteVcenterClient where
hashWithSalt :: Int -> DeleteVcenterClient -> Int
hashWithSalt Int
_salt DeleteVcenterClient' {Text
vcenterClientID :: Text
$sel:vcenterClientID:DeleteVcenterClient' :: DeleteVcenterClient -> Text
..} =
Int
_salt forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Text
vcenterClientID
instance Prelude.NFData DeleteVcenterClient where
rnf :: DeleteVcenterClient -> ()
rnf DeleteVcenterClient' {Text
vcenterClientID :: Text
$sel:vcenterClientID:DeleteVcenterClient' :: DeleteVcenterClient -> Text
..} =
forall a. NFData a => a -> ()
Prelude.rnf Text
vcenterClientID
instance Data.ToHeaders DeleteVcenterClient where
toHeaders :: DeleteVcenterClient -> [Header]
toHeaders =
forall a b. a -> b -> a
Prelude.const
( forall a. Monoid a => [a] -> a
Prelude.mconcat
[ HeaderName
"Content-Type"
forall a. ToHeader a => HeaderName -> a -> [Header]
Data.=# ( ByteString
"application/x-amz-json-1.1" ::
Prelude.ByteString
)
]
)
instance Data.ToJSON DeleteVcenterClient where
toJSON :: DeleteVcenterClient -> Value
toJSON DeleteVcenterClient' {Text
vcenterClientID :: Text
$sel:vcenterClientID:DeleteVcenterClient' :: DeleteVcenterClient -> Text
..} =
[Pair] -> Value
Data.object
( forall a. [Maybe a] -> [a]
Prelude.catMaybes
[ forall a. a -> Maybe a
Prelude.Just
(Key
"vcenterClientID" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..= Text
vcenterClientID)
]
)
instance Data.ToPath DeleteVcenterClient where
toPath :: DeleteVcenterClient -> ByteString
toPath = forall a b. a -> b -> a
Prelude.const ByteString
"/DeleteVcenterClient"
instance Data.ToQuery DeleteVcenterClient where
toQuery :: DeleteVcenterClient -> QueryString
toQuery = forall a b. a -> b -> a
Prelude.const forall a. Monoid a => a
Prelude.mempty
data DeleteVcenterClientResponse = DeleteVcenterClientResponse'
{
}
deriving (DeleteVcenterClientResponse -> DeleteVcenterClientResponse -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DeleteVcenterClientResponse -> DeleteVcenterClientResponse -> Bool
$c/= :: DeleteVcenterClientResponse -> DeleteVcenterClientResponse -> Bool
== :: DeleteVcenterClientResponse -> DeleteVcenterClientResponse -> Bool
$c== :: DeleteVcenterClientResponse -> DeleteVcenterClientResponse -> Bool
Prelude.Eq, ReadPrec [DeleteVcenterClientResponse]
ReadPrec DeleteVcenterClientResponse
Int -> ReadS DeleteVcenterClientResponse
ReadS [DeleteVcenterClientResponse]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DeleteVcenterClientResponse]
$creadListPrec :: ReadPrec [DeleteVcenterClientResponse]
readPrec :: ReadPrec DeleteVcenterClientResponse
$creadPrec :: ReadPrec DeleteVcenterClientResponse
readList :: ReadS [DeleteVcenterClientResponse]
$creadList :: ReadS [DeleteVcenterClientResponse]
readsPrec :: Int -> ReadS DeleteVcenterClientResponse
$creadsPrec :: Int -> ReadS DeleteVcenterClientResponse
Prelude.Read, Int -> DeleteVcenterClientResponse -> ShowS
[DeleteVcenterClientResponse] -> ShowS
DeleteVcenterClientResponse -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DeleteVcenterClientResponse] -> ShowS
$cshowList :: [DeleteVcenterClientResponse] -> ShowS
show :: DeleteVcenterClientResponse -> String
$cshow :: DeleteVcenterClientResponse -> String
showsPrec :: Int -> DeleteVcenterClientResponse -> ShowS
$cshowsPrec :: Int -> DeleteVcenterClientResponse -> ShowS
Prelude.Show, forall x.
Rep DeleteVcenterClientResponse x -> DeleteVcenterClientResponse
forall x.
DeleteVcenterClientResponse -> Rep DeleteVcenterClientResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep DeleteVcenterClientResponse x -> DeleteVcenterClientResponse
$cfrom :: forall x.
DeleteVcenterClientResponse -> Rep DeleteVcenterClientResponse x
Prelude.Generic)
newDeleteVcenterClientResponse ::
DeleteVcenterClientResponse
newDeleteVcenterClientResponse :: DeleteVcenterClientResponse
newDeleteVcenterClientResponse =
DeleteVcenterClientResponse
DeleteVcenterClientResponse'
instance Prelude.NFData DeleteVcenterClientResponse where
rnf :: DeleteVcenterClientResponse -> ()
rnf DeleteVcenterClientResponse
_ = ()