{-# 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.AlexaBusiness.DisassociateSkillGroupFromRoom
(
DisassociateSkillGroupFromRoom (..),
newDisassociateSkillGroupFromRoom,
disassociateSkillGroupFromRoom_skillGroupArn,
disassociateSkillGroupFromRoom_roomArn,
DisassociateSkillGroupFromRoomResponse (..),
newDisassociateSkillGroupFromRoomResponse,
disassociateSkillGroupFromRoomResponse_httpStatus,
)
where
import Amazonka.AlexaBusiness.Types
import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
import qualified Amazonka.Request as Request
import qualified Amazonka.Response as Response
data DisassociateSkillGroupFromRoom = DisassociateSkillGroupFromRoom'
{
DisassociateSkillGroupFromRoom -> Maybe Text
skillGroupArn :: Prelude.Maybe Prelude.Text,
DisassociateSkillGroupFromRoom -> Maybe Text
roomArn :: Prelude.Maybe Prelude.Text
}
deriving (DisassociateSkillGroupFromRoom
-> DisassociateSkillGroupFromRoom -> Bool
(DisassociateSkillGroupFromRoom
-> DisassociateSkillGroupFromRoom -> Bool)
-> (DisassociateSkillGroupFromRoom
-> DisassociateSkillGroupFromRoom -> Bool)
-> Eq DisassociateSkillGroupFromRoom
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DisassociateSkillGroupFromRoom
-> DisassociateSkillGroupFromRoom -> Bool
$c/= :: DisassociateSkillGroupFromRoom
-> DisassociateSkillGroupFromRoom -> Bool
== :: DisassociateSkillGroupFromRoom
-> DisassociateSkillGroupFromRoom -> Bool
$c== :: DisassociateSkillGroupFromRoom
-> DisassociateSkillGroupFromRoom -> Bool
Prelude.Eq, ReadPrec [DisassociateSkillGroupFromRoom]
ReadPrec DisassociateSkillGroupFromRoom
Int -> ReadS DisassociateSkillGroupFromRoom
ReadS [DisassociateSkillGroupFromRoom]
(Int -> ReadS DisassociateSkillGroupFromRoom)
-> ReadS [DisassociateSkillGroupFromRoom]
-> ReadPrec DisassociateSkillGroupFromRoom
-> ReadPrec [DisassociateSkillGroupFromRoom]
-> Read DisassociateSkillGroupFromRoom
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DisassociateSkillGroupFromRoom]
$creadListPrec :: ReadPrec [DisassociateSkillGroupFromRoom]
readPrec :: ReadPrec DisassociateSkillGroupFromRoom
$creadPrec :: ReadPrec DisassociateSkillGroupFromRoom
readList :: ReadS [DisassociateSkillGroupFromRoom]
$creadList :: ReadS [DisassociateSkillGroupFromRoom]
readsPrec :: Int -> ReadS DisassociateSkillGroupFromRoom
$creadsPrec :: Int -> ReadS DisassociateSkillGroupFromRoom
Prelude.Read, Int -> DisassociateSkillGroupFromRoom -> ShowS
[DisassociateSkillGroupFromRoom] -> ShowS
DisassociateSkillGroupFromRoom -> String
(Int -> DisassociateSkillGroupFromRoom -> ShowS)
-> (DisassociateSkillGroupFromRoom -> String)
-> ([DisassociateSkillGroupFromRoom] -> ShowS)
-> Show DisassociateSkillGroupFromRoom
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DisassociateSkillGroupFromRoom] -> ShowS
$cshowList :: [DisassociateSkillGroupFromRoom] -> ShowS
show :: DisassociateSkillGroupFromRoom -> String
$cshow :: DisassociateSkillGroupFromRoom -> String
showsPrec :: Int -> DisassociateSkillGroupFromRoom -> ShowS
$cshowsPrec :: Int -> DisassociateSkillGroupFromRoom -> ShowS
Prelude.Show, (forall x.
DisassociateSkillGroupFromRoom
-> Rep DisassociateSkillGroupFromRoom x)
-> (forall x.
Rep DisassociateSkillGroupFromRoom x
-> DisassociateSkillGroupFromRoom)
-> Generic DisassociateSkillGroupFromRoom
forall x.
Rep DisassociateSkillGroupFromRoom x
-> DisassociateSkillGroupFromRoom
forall x.
DisassociateSkillGroupFromRoom
-> Rep DisassociateSkillGroupFromRoom x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep DisassociateSkillGroupFromRoom x
-> DisassociateSkillGroupFromRoom
$cfrom :: forall x.
DisassociateSkillGroupFromRoom
-> Rep DisassociateSkillGroupFromRoom x
Prelude.Generic)
newDisassociateSkillGroupFromRoom ::
DisassociateSkillGroupFromRoom
newDisassociateSkillGroupFromRoom :: DisassociateSkillGroupFromRoom
newDisassociateSkillGroupFromRoom =
DisassociateSkillGroupFromRoom' :: Maybe Text -> Maybe Text -> DisassociateSkillGroupFromRoom
DisassociateSkillGroupFromRoom'
{ $sel:skillGroupArn:DisassociateSkillGroupFromRoom' :: Maybe Text
skillGroupArn =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:roomArn:DisassociateSkillGroupFromRoom' :: Maybe Text
roomArn = Maybe Text
forall a. Maybe a
Prelude.Nothing
}
disassociateSkillGroupFromRoom_skillGroupArn :: Lens.Lens' DisassociateSkillGroupFromRoom (Prelude.Maybe Prelude.Text)
disassociateSkillGroupFromRoom_skillGroupArn :: (Maybe Text -> f (Maybe Text))
-> DisassociateSkillGroupFromRoom
-> f DisassociateSkillGroupFromRoom
disassociateSkillGroupFromRoom_skillGroupArn = (DisassociateSkillGroupFromRoom -> Maybe Text)
-> (DisassociateSkillGroupFromRoom
-> Maybe Text -> DisassociateSkillGroupFromRoom)
-> Lens
DisassociateSkillGroupFromRoom
DisassociateSkillGroupFromRoom
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DisassociateSkillGroupFromRoom' {Maybe Text
skillGroupArn :: Maybe Text
$sel:skillGroupArn:DisassociateSkillGroupFromRoom' :: DisassociateSkillGroupFromRoom -> Maybe Text
skillGroupArn} -> Maybe Text
skillGroupArn) (\s :: DisassociateSkillGroupFromRoom
s@DisassociateSkillGroupFromRoom' {} Maybe Text
a -> DisassociateSkillGroupFromRoom
s {$sel:skillGroupArn:DisassociateSkillGroupFromRoom' :: Maybe Text
skillGroupArn = Maybe Text
a} :: DisassociateSkillGroupFromRoom)
disassociateSkillGroupFromRoom_roomArn :: Lens.Lens' DisassociateSkillGroupFromRoom (Prelude.Maybe Prelude.Text)
disassociateSkillGroupFromRoom_roomArn :: (Maybe Text -> f (Maybe Text))
-> DisassociateSkillGroupFromRoom
-> f DisassociateSkillGroupFromRoom
disassociateSkillGroupFromRoom_roomArn = (DisassociateSkillGroupFromRoom -> Maybe Text)
-> (DisassociateSkillGroupFromRoom
-> Maybe Text -> DisassociateSkillGroupFromRoom)
-> Lens
DisassociateSkillGroupFromRoom
DisassociateSkillGroupFromRoom
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DisassociateSkillGroupFromRoom' {Maybe Text
roomArn :: Maybe Text
$sel:roomArn:DisassociateSkillGroupFromRoom' :: DisassociateSkillGroupFromRoom -> Maybe Text
roomArn} -> Maybe Text
roomArn) (\s :: DisassociateSkillGroupFromRoom
s@DisassociateSkillGroupFromRoom' {} Maybe Text
a -> DisassociateSkillGroupFromRoom
s {$sel:roomArn:DisassociateSkillGroupFromRoom' :: Maybe Text
roomArn = Maybe Text
a} :: DisassociateSkillGroupFromRoom)
instance
Core.AWSRequest
DisassociateSkillGroupFromRoom
where
type
AWSResponse DisassociateSkillGroupFromRoom =
DisassociateSkillGroupFromRoomResponse
request :: DisassociateSkillGroupFromRoom
-> Request DisassociateSkillGroupFromRoom
request = Service
-> DisassociateSkillGroupFromRoom
-> Request DisassociateSkillGroupFromRoom
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
response :: Logger
-> Service
-> Proxy DisassociateSkillGroupFromRoom
-> ClientResponse ClientBody
-> m (Either
Error
(ClientResponse (AWSResponse DisassociateSkillGroupFromRoom)))
response =
(Int
-> ResponseHeaders
-> ()
-> Either String (AWSResponse DisassociateSkillGroupFromRoom))
-> Logger
-> Service
-> Proxy DisassociateSkillGroupFromRoom
-> ClientResponse ClientBody
-> m (Either
Error
(ClientResponse (AWSResponse DisassociateSkillGroupFromRoom)))
forall (m :: * -> *) a.
MonadResource m =>
(Int -> ResponseHeaders -> () -> Either String (AWSResponse a))
-> Logger
-> Service
-> Proxy a
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse a)))
Response.receiveEmpty
( \Int
s ResponseHeaders
h ()
x ->
Int -> DisassociateSkillGroupFromRoomResponse
DisassociateSkillGroupFromRoomResponse'
(Int -> DisassociateSkillGroupFromRoomResponse)
-> Either String Int
-> Either String DisassociateSkillGroupFromRoomResponse
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Int -> Either String Int
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure (Int -> Int
forall a. Enum a => a -> Int
Prelude.fromEnum Int
s))
)
instance
Prelude.Hashable
DisassociateSkillGroupFromRoom
instance
Prelude.NFData
DisassociateSkillGroupFromRoom
instance
Core.ToHeaders
DisassociateSkillGroupFromRoom
where
toHeaders :: DisassociateSkillGroupFromRoom -> ResponseHeaders
toHeaders =
ResponseHeaders
-> DisassociateSkillGroupFromRoom -> ResponseHeaders
forall a b. a -> b -> a
Prelude.const
( [ResponseHeaders] -> ResponseHeaders
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ HeaderName
"X-Amz-Target"
HeaderName -> ByteString -> ResponseHeaders
forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Core.=# ( ByteString
"AlexaForBusiness.DisassociateSkillGroupFromRoom" ::
Prelude.ByteString
),
HeaderName
"Content-Type"
HeaderName -> ByteString -> ResponseHeaders
forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Core.=# ( ByteString
"application/x-amz-json-1.1" ::
Prelude.ByteString
)
]
)
instance Core.ToJSON DisassociateSkillGroupFromRoom where
toJSON :: DisassociateSkillGroupFromRoom -> Value
toJSON DisassociateSkillGroupFromRoom' {Maybe Text
roomArn :: Maybe Text
skillGroupArn :: Maybe Text
$sel:roomArn:DisassociateSkillGroupFromRoom' :: DisassociateSkillGroupFromRoom -> Maybe Text
$sel:skillGroupArn:DisassociateSkillGroupFromRoom' :: DisassociateSkillGroupFromRoom -> Maybe Text
..} =
[Pair] -> Value
Core.object
( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[ (Text
"SkillGroupArn" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (Text -> Pair) -> Maybe Text -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
skillGroupArn,
(Text
"RoomArn" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (Text -> Pair) -> Maybe Text -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
roomArn
]
)
instance Core.ToPath DisassociateSkillGroupFromRoom where
toPath :: DisassociateSkillGroupFromRoom -> ByteString
toPath = ByteString -> DisassociateSkillGroupFromRoom -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/"
instance Core.ToQuery DisassociateSkillGroupFromRoom where
toQuery :: DisassociateSkillGroupFromRoom -> QueryString
toQuery = QueryString -> DisassociateSkillGroupFromRoom -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data DisassociateSkillGroupFromRoomResponse = DisassociateSkillGroupFromRoomResponse'
{
DisassociateSkillGroupFromRoomResponse -> Int
httpStatus :: Prelude.Int
}
deriving (DisassociateSkillGroupFromRoomResponse
-> DisassociateSkillGroupFromRoomResponse -> Bool
(DisassociateSkillGroupFromRoomResponse
-> DisassociateSkillGroupFromRoomResponse -> Bool)
-> (DisassociateSkillGroupFromRoomResponse
-> DisassociateSkillGroupFromRoomResponse -> Bool)
-> Eq DisassociateSkillGroupFromRoomResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DisassociateSkillGroupFromRoomResponse
-> DisassociateSkillGroupFromRoomResponse -> Bool
$c/= :: DisassociateSkillGroupFromRoomResponse
-> DisassociateSkillGroupFromRoomResponse -> Bool
== :: DisassociateSkillGroupFromRoomResponse
-> DisassociateSkillGroupFromRoomResponse -> Bool
$c== :: DisassociateSkillGroupFromRoomResponse
-> DisassociateSkillGroupFromRoomResponse -> Bool
Prelude.Eq, ReadPrec [DisassociateSkillGroupFromRoomResponse]
ReadPrec DisassociateSkillGroupFromRoomResponse
Int -> ReadS DisassociateSkillGroupFromRoomResponse
ReadS [DisassociateSkillGroupFromRoomResponse]
(Int -> ReadS DisassociateSkillGroupFromRoomResponse)
-> ReadS [DisassociateSkillGroupFromRoomResponse]
-> ReadPrec DisassociateSkillGroupFromRoomResponse
-> ReadPrec [DisassociateSkillGroupFromRoomResponse]
-> Read DisassociateSkillGroupFromRoomResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DisassociateSkillGroupFromRoomResponse]
$creadListPrec :: ReadPrec [DisassociateSkillGroupFromRoomResponse]
readPrec :: ReadPrec DisassociateSkillGroupFromRoomResponse
$creadPrec :: ReadPrec DisassociateSkillGroupFromRoomResponse
readList :: ReadS [DisassociateSkillGroupFromRoomResponse]
$creadList :: ReadS [DisassociateSkillGroupFromRoomResponse]
readsPrec :: Int -> ReadS DisassociateSkillGroupFromRoomResponse
$creadsPrec :: Int -> ReadS DisassociateSkillGroupFromRoomResponse
Prelude.Read, Int -> DisassociateSkillGroupFromRoomResponse -> ShowS
[DisassociateSkillGroupFromRoomResponse] -> ShowS
DisassociateSkillGroupFromRoomResponse -> String
(Int -> DisassociateSkillGroupFromRoomResponse -> ShowS)
-> (DisassociateSkillGroupFromRoomResponse -> String)
-> ([DisassociateSkillGroupFromRoomResponse] -> ShowS)
-> Show DisassociateSkillGroupFromRoomResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DisassociateSkillGroupFromRoomResponse] -> ShowS
$cshowList :: [DisassociateSkillGroupFromRoomResponse] -> ShowS
show :: DisassociateSkillGroupFromRoomResponse -> String
$cshow :: DisassociateSkillGroupFromRoomResponse -> String
showsPrec :: Int -> DisassociateSkillGroupFromRoomResponse -> ShowS
$cshowsPrec :: Int -> DisassociateSkillGroupFromRoomResponse -> ShowS
Prelude.Show, (forall x.
DisassociateSkillGroupFromRoomResponse
-> Rep DisassociateSkillGroupFromRoomResponse x)
-> (forall x.
Rep DisassociateSkillGroupFromRoomResponse x
-> DisassociateSkillGroupFromRoomResponse)
-> Generic DisassociateSkillGroupFromRoomResponse
forall x.
Rep DisassociateSkillGroupFromRoomResponse x
-> DisassociateSkillGroupFromRoomResponse
forall x.
DisassociateSkillGroupFromRoomResponse
-> Rep DisassociateSkillGroupFromRoomResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep DisassociateSkillGroupFromRoomResponse x
-> DisassociateSkillGroupFromRoomResponse
$cfrom :: forall x.
DisassociateSkillGroupFromRoomResponse
-> Rep DisassociateSkillGroupFromRoomResponse x
Prelude.Generic)
newDisassociateSkillGroupFromRoomResponse ::
Prelude.Int ->
DisassociateSkillGroupFromRoomResponse
newDisassociateSkillGroupFromRoomResponse :: Int -> DisassociateSkillGroupFromRoomResponse
newDisassociateSkillGroupFromRoomResponse
Int
pHttpStatus_ =
DisassociateSkillGroupFromRoomResponse' :: Int -> DisassociateSkillGroupFromRoomResponse
DisassociateSkillGroupFromRoomResponse'
{ $sel:httpStatus:DisassociateSkillGroupFromRoomResponse' :: Int
httpStatus =
Int
pHttpStatus_
}
disassociateSkillGroupFromRoomResponse_httpStatus :: Lens.Lens' DisassociateSkillGroupFromRoomResponse Prelude.Int
disassociateSkillGroupFromRoomResponse_httpStatus :: (Int -> f Int)
-> DisassociateSkillGroupFromRoomResponse
-> f DisassociateSkillGroupFromRoomResponse
disassociateSkillGroupFromRoomResponse_httpStatus = (DisassociateSkillGroupFromRoomResponse -> Int)
-> (DisassociateSkillGroupFromRoomResponse
-> Int -> DisassociateSkillGroupFromRoomResponse)
-> Lens
DisassociateSkillGroupFromRoomResponse
DisassociateSkillGroupFromRoomResponse
Int
Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DisassociateSkillGroupFromRoomResponse' {Int
httpStatus :: Int
$sel:httpStatus:DisassociateSkillGroupFromRoomResponse' :: DisassociateSkillGroupFromRoomResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: DisassociateSkillGroupFromRoomResponse
s@DisassociateSkillGroupFromRoomResponse' {} Int
a -> DisassociateSkillGroupFromRoomResponse
s {$sel:httpStatus:DisassociateSkillGroupFromRoomResponse' :: Int
httpStatus = Int
a} :: DisassociateSkillGroupFromRoomResponse)
instance
Prelude.NFData
DisassociateSkillGroupFromRoomResponse