{-# 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.Connect.UpdateRoutingProfileDefaultOutboundQueue
(
UpdateRoutingProfileDefaultOutboundQueue (..),
newUpdateRoutingProfileDefaultOutboundQueue,
updateRoutingProfileDefaultOutboundQueue_instanceId,
updateRoutingProfileDefaultOutboundQueue_routingProfileId,
updateRoutingProfileDefaultOutboundQueue_defaultOutboundQueueId,
UpdateRoutingProfileDefaultOutboundQueueResponse (..),
newUpdateRoutingProfileDefaultOutboundQueueResponse,
)
where
import Amazonka.Connect.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 UpdateRoutingProfileDefaultOutboundQueue = UpdateRoutingProfileDefaultOutboundQueue'
{
UpdateRoutingProfileDefaultOutboundQueue -> Text
instanceId :: Prelude.Text,
UpdateRoutingProfileDefaultOutboundQueue -> Text
routingProfileId :: Prelude.Text,
UpdateRoutingProfileDefaultOutboundQueue -> Text
defaultOutboundQueueId :: Prelude.Text
}
deriving (UpdateRoutingProfileDefaultOutboundQueue
-> UpdateRoutingProfileDefaultOutboundQueue -> Bool
(UpdateRoutingProfileDefaultOutboundQueue
-> UpdateRoutingProfileDefaultOutboundQueue -> Bool)
-> (UpdateRoutingProfileDefaultOutboundQueue
-> UpdateRoutingProfileDefaultOutboundQueue -> Bool)
-> Eq UpdateRoutingProfileDefaultOutboundQueue
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: UpdateRoutingProfileDefaultOutboundQueue
-> UpdateRoutingProfileDefaultOutboundQueue -> Bool
$c/= :: UpdateRoutingProfileDefaultOutboundQueue
-> UpdateRoutingProfileDefaultOutboundQueue -> Bool
== :: UpdateRoutingProfileDefaultOutboundQueue
-> UpdateRoutingProfileDefaultOutboundQueue -> Bool
$c== :: UpdateRoutingProfileDefaultOutboundQueue
-> UpdateRoutingProfileDefaultOutboundQueue -> Bool
Prelude.Eq, ReadPrec [UpdateRoutingProfileDefaultOutboundQueue]
ReadPrec UpdateRoutingProfileDefaultOutboundQueue
Int -> ReadS UpdateRoutingProfileDefaultOutboundQueue
ReadS [UpdateRoutingProfileDefaultOutboundQueue]
(Int -> ReadS UpdateRoutingProfileDefaultOutboundQueue)
-> ReadS [UpdateRoutingProfileDefaultOutboundQueue]
-> ReadPrec UpdateRoutingProfileDefaultOutboundQueue
-> ReadPrec [UpdateRoutingProfileDefaultOutboundQueue]
-> Read UpdateRoutingProfileDefaultOutboundQueue
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [UpdateRoutingProfileDefaultOutboundQueue]
$creadListPrec :: ReadPrec [UpdateRoutingProfileDefaultOutboundQueue]
readPrec :: ReadPrec UpdateRoutingProfileDefaultOutboundQueue
$creadPrec :: ReadPrec UpdateRoutingProfileDefaultOutboundQueue
readList :: ReadS [UpdateRoutingProfileDefaultOutboundQueue]
$creadList :: ReadS [UpdateRoutingProfileDefaultOutboundQueue]
readsPrec :: Int -> ReadS UpdateRoutingProfileDefaultOutboundQueue
$creadsPrec :: Int -> ReadS UpdateRoutingProfileDefaultOutboundQueue
Prelude.Read, Int -> UpdateRoutingProfileDefaultOutboundQueue -> ShowS
[UpdateRoutingProfileDefaultOutboundQueue] -> ShowS
UpdateRoutingProfileDefaultOutboundQueue -> String
(Int -> UpdateRoutingProfileDefaultOutboundQueue -> ShowS)
-> (UpdateRoutingProfileDefaultOutboundQueue -> String)
-> ([UpdateRoutingProfileDefaultOutboundQueue] -> ShowS)
-> Show UpdateRoutingProfileDefaultOutboundQueue
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [UpdateRoutingProfileDefaultOutboundQueue] -> ShowS
$cshowList :: [UpdateRoutingProfileDefaultOutboundQueue] -> ShowS
show :: UpdateRoutingProfileDefaultOutboundQueue -> String
$cshow :: UpdateRoutingProfileDefaultOutboundQueue -> String
showsPrec :: Int -> UpdateRoutingProfileDefaultOutboundQueue -> ShowS
$cshowsPrec :: Int -> UpdateRoutingProfileDefaultOutboundQueue -> ShowS
Prelude.Show, (forall x.
UpdateRoutingProfileDefaultOutboundQueue
-> Rep UpdateRoutingProfileDefaultOutboundQueue x)
-> (forall x.
Rep UpdateRoutingProfileDefaultOutboundQueue x
-> UpdateRoutingProfileDefaultOutboundQueue)
-> Generic UpdateRoutingProfileDefaultOutboundQueue
forall x.
Rep UpdateRoutingProfileDefaultOutboundQueue x
-> UpdateRoutingProfileDefaultOutboundQueue
forall x.
UpdateRoutingProfileDefaultOutboundQueue
-> Rep UpdateRoutingProfileDefaultOutboundQueue x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep UpdateRoutingProfileDefaultOutboundQueue x
-> UpdateRoutingProfileDefaultOutboundQueue
$cfrom :: forall x.
UpdateRoutingProfileDefaultOutboundQueue
-> Rep UpdateRoutingProfileDefaultOutboundQueue x
Prelude.Generic)
newUpdateRoutingProfileDefaultOutboundQueue ::
Prelude.Text ->
Prelude.Text ->
Prelude.Text ->
UpdateRoutingProfileDefaultOutboundQueue
newUpdateRoutingProfileDefaultOutboundQueue :: Text -> Text -> Text -> UpdateRoutingProfileDefaultOutboundQueue
newUpdateRoutingProfileDefaultOutboundQueue
Text
pInstanceId_
Text
pRoutingProfileId_
Text
pDefaultOutboundQueueId_ =
UpdateRoutingProfileDefaultOutboundQueue' :: Text -> Text -> Text -> UpdateRoutingProfileDefaultOutboundQueue
UpdateRoutingProfileDefaultOutboundQueue'
{ $sel:instanceId:UpdateRoutingProfileDefaultOutboundQueue' :: Text
instanceId =
Text
pInstanceId_,
$sel:routingProfileId:UpdateRoutingProfileDefaultOutboundQueue' :: Text
routingProfileId =
Text
pRoutingProfileId_,
$sel:defaultOutboundQueueId:UpdateRoutingProfileDefaultOutboundQueue' :: Text
defaultOutboundQueueId =
Text
pDefaultOutboundQueueId_
}
updateRoutingProfileDefaultOutboundQueue_instanceId :: Lens.Lens' UpdateRoutingProfileDefaultOutboundQueue Prelude.Text
updateRoutingProfileDefaultOutboundQueue_instanceId :: (Text -> f Text)
-> UpdateRoutingProfileDefaultOutboundQueue
-> f UpdateRoutingProfileDefaultOutboundQueue
updateRoutingProfileDefaultOutboundQueue_instanceId = (UpdateRoutingProfileDefaultOutboundQueue -> Text)
-> (UpdateRoutingProfileDefaultOutboundQueue
-> Text -> UpdateRoutingProfileDefaultOutboundQueue)
-> Lens
UpdateRoutingProfileDefaultOutboundQueue
UpdateRoutingProfileDefaultOutboundQueue
Text
Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateRoutingProfileDefaultOutboundQueue' {Text
instanceId :: Text
$sel:instanceId:UpdateRoutingProfileDefaultOutboundQueue' :: UpdateRoutingProfileDefaultOutboundQueue -> Text
instanceId} -> Text
instanceId) (\s :: UpdateRoutingProfileDefaultOutboundQueue
s@UpdateRoutingProfileDefaultOutboundQueue' {} Text
a -> UpdateRoutingProfileDefaultOutboundQueue
s {$sel:instanceId:UpdateRoutingProfileDefaultOutboundQueue' :: Text
instanceId = Text
a} :: UpdateRoutingProfileDefaultOutboundQueue)
updateRoutingProfileDefaultOutboundQueue_routingProfileId :: Lens.Lens' UpdateRoutingProfileDefaultOutboundQueue Prelude.Text
updateRoutingProfileDefaultOutboundQueue_routingProfileId :: (Text -> f Text)
-> UpdateRoutingProfileDefaultOutboundQueue
-> f UpdateRoutingProfileDefaultOutboundQueue
updateRoutingProfileDefaultOutboundQueue_routingProfileId = (UpdateRoutingProfileDefaultOutboundQueue -> Text)
-> (UpdateRoutingProfileDefaultOutboundQueue
-> Text -> UpdateRoutingProfileDefaultOutboundQueue)
-> Lens
UpdateRoutingProfileDefaultOutboundQueue
UpdateRoutingProfileDefaultOutboundQueue
Text
Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateRoutingProfileDefaultOutboundQueue' {Text
routingProfileId :: Text
$sel:routingProfileId:UpdateRoutingProfileDefaultOutboundQueue' :: UpdateRoutingProfileDefaultOutboundQueue -> Text
routingProfileId} -> Text
routingProfileId) (\s :: UpdateRoutingProfileDefaultOutboundQueue
s@UpdateRoutingProfileDefaultOutboundQueue' {} Text
a -> UpdateRoutingProfileDefaultOutboundQueue
s {$sel:routingProfileId:UpdateRoutingProfileDefaultOutboundQueue' :: Text
routingProfileId = Text
a} :: UpdateRoutingProfileDefaultOutboundQueue)
updateRoutingProfileDefaultOutboundQueue_defaultOutboundQueueId :: Lens.Lens' UpdateRoutingProfileDefaultOutboundQueue Prelude.Text
updateRoutingProfileDefaultOutboundQueue_defaultOutboundQueueId :: (Text -> f Text)
-> UpdateRoutingProfileDefaultOutboundQueue
-> f UpdateRoutingProfileDefaultOutboundQueue
updateRoutingProfileDefaultOutboundQueue_defaultOutboundQueueId = (UpdateRoutingProfileDefaultOutboundQueue -> Text)
-> (UpdateRoutingProfileDefaultOutboundQueue
-> Text -> UpdateRoutingProfileDefaultOutboundQueue)
-> Lens
UpdateRoutingProfileDefaultOutboundQueue
UpdateRoutingProfileDefaultOutboundQueue
Text
Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateRoutingProfileDefaultOutboundQueue' {Text
defaultOutboundQueueId :: Text
$sel:defaultOutboundQueueId:UpdateRoutingProfileDefaultOutboundQueue' :: UpdateRoutingProfileDefaultOutboundQueue -> Text
defaultOutboundQueueId} -> Text
defaultOutboundQueueId) (\s :: UpdateRoutingProfileDefaultOutboundQueue
s@UpdateRoutingProfileDefaultOutboundQueue' {} Text
a -> UpdateRoutingProfileDefaultOutboundQueue
s {$sel:defaultOutboundQueueId:UpdateRoutingProfileDefaultOutboundQueue' :: Text
defaultOutboundQueueId = Text
a} :: UpdateRoutingProfileDefaultOutboundQueue)
instance
Core.AWSRequest
UpdateRoutingProfileDefaultOutboundQueue
where
type
AWSResponse
UpdateRoutingProfileDefaultOutboundQueue =
UpdateRoutingProfileDefaultOutboundQueueResponse
request :: UpdateRoutingProfileDefaultOutboundQueue
-> Request UpdateRoutingProfileDefaultOutboundQueue
request = Service
-> UpdateRoutingProfileDefaultOutboundQueue
-> Request UpdateRoutingProfileDefaultOutboundQueue
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
response :: Logger
-> Service
-> Proxy UpdateRoutingProfileDefaultOutboundQueue
-> ClientResponse ClientBody
-> m (Either
Error
(ClientResponse
(AWSResponse UpdateRoutingProfileDefaultOutboundQueue)))
response =
AWSResponse UpdateRoutingProfileDefaultOutboundQueue
-> Logger
-> Service
-> Proxy UpdateRoutingProfileDefaultOutboundQueue
-> ClientResponse ClientBody
-> m (Either
Error
(ClientResponse
(AWSResponse UpdateRoutingProfileDefaultOutboundQueue)))
forall (m :: * -> *) a.
MonadResource m =>
AWSResponse a
-> Logger
-> Service
-> Proxy a
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse a)))
Response.receiveNull
AWSResponse UpdateRoutingProfileDefaultOutboundQueue
UpdateRoutingProfileDefaultOutboundQueueResponse
UpdateRoutingProfileDefaultOutboundQueueResponse'
instance
Prelude.Hashable
UpdateRoutingProfileDefaultOutboundQueue
instance
Prelude.NFData
UpdateRoutingProfileDefaultOutboundQueue
instance
Core.ToHeaders
UpdateRoutingProfileDefaultOutboundQueue
where
toHeaders :: UpdateRoutingProfileDefaultOutboundQueue -> [Header]
toHeaders =
[Header] -> UpdateRoutingProfileDefaultOutboundQueue -> [Header]
forall a b. a -> b -> a
Prelude.const
( [[Header]] -> [Header]
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ HeaderName
"Content-Type"
HeaderName -> ByteString -> [Header]
forall a. ToHeader a => HeaderName -> a -> [Header]
Core.=# ( ByteString
"application/x-amz-json-1.1" ::
Prelude.ByteString
)
]
)
instance
Core.ToJSON
UpdateRoutingProfileDefaultOutboundQueue
where
toJSON :: UpdateRoutingProfileDefaultOutboundQueue -> Value
toJSON UpdateRoutingProfileDefaultOutboundQueue' {Text
defaultOutboundQueueId :: Text
routingProfileId :: Text
instanceId :: Text
$sel:defaultOutboundQueueId:UpdateRoutingProfileDefaultOutboundQueue' :: UpdateRoutingProfileDefaultOutboundQueue -> Text
$sel:routingProfileId:UpdateRoutingProfileDefaultOutboundQueue' :: UpdateRoutingProfileDefaultOutboundQueue -> Text
$sel:instanceId:UpdateRoutingProfileDefaultOutboundQueue' :: UpdateRoutingProfileDefaultOutboundQueue -> Text
..} =
[Pair] -> Value
Core.object
( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[ Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just
( Text
"DefaultOutboundQueueId"
Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
defaultOutboundQueueId
)
]
)
instance
Core.ToPath
UpdateRoutingProfileDefaultOutboundQueue
where
toPath :: UpdateRoutingProfileDefaultOutboundQueue -> ByteString
toPath UpdateRoutingProfileDefaultOutboundQueue' {Text
defaultOutboundQueueId :: Text
routingProfileId :: Text
instanceId :: Text
$sel:defaultOutboundQueueId:UpdateRoutingProfileDefaultOutboundQueue' :: UpdateRoutingProfileDefaultOutboundQueue -> Text
$sel:routingProfileId:UpdateRoutingProfileDefaultOutboundQueue' :: UpdateRoutingProfileDefaultOutboundQueue -> Text
$sel:instanceId:UpdateRoutingProfileDefaultOutboundQueue' :: UpdateRoutingProfileDefaultOutboundQueue -> Text
..} =
[ByteString] -> ByteString
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ ByteString
"/routing-profiles/",
Text -> ByteString
forall a. ToByteString a => a -> ByteString
Core.toBS Text
instanceId,
ByteString
"/",
Text -> ByteString
forall a. ToByteString a => a -> ByteString
Core.toBS Text
routingProfileId,
ByteString
"/default-outbound-queue"
]
instance
Core.ToQuery
UpdateRoutingProfileDefaultOutboundQueue
where
toQuery :: UpdateRoutingProfileDefaultOutboundQueue -> QueryString
toQuery = QueryString
-> UpdateRoutingProfileDefaultOutboundQueue -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data UpdateRoutingProfileDefaultOutboundQueueResponse = UpdateRoutingProfileDefaultOutboundQueueResponse'
{
}
deriving (UpdateRoutingProfileDefaultOutboundQueueResponse
-> UpdateRoutingProfileDefaultOutboundQueueResponse -> Bool
(UpdateRoutingProfileDefaultOutboundQueueResponse
-> UpdateRoutingProfileDefaultOutboundQueueResponse -> Bool)
-> (UpdateRoutingProfileDefaultOutboundQueueResponse
-> UpdateRoutingProfileDefaultOutboundQueueResponse -> Bool)
-> Eq UpdateRoutingProfileDefaultOutboundQueueResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: UpdateRoutingProfileDefaultOutboundQueueResponse
-> UpdateRoutingProfileDefaultOutboundQueueResponse -> Bool
$c/= :: UpdateRoutingProfileDefaultOutboundQueueResponse
-> UpdateRoutingProfileDefaultOutboundQueueResponse -> Bool
== :: UpdateRoutingProfileDefaultOutboundQueueResponse
-> UpdateRoutingProfileDefaultOutboundQueueResponse -> Bool
$c== :: UpdateRoutingProfileDefaultOutboundQueueResponse
-> UpdateRoutingProfileDefaultOutboundQueueResponse -> Bool
Prelude.Eq, ReadPrec [UpdateRoutingProfileDefaultOutboundQueueResponse]
ReadPrec UpdateRoutingProfileDefaultOutboundQueueResponse
Int -> ReadS UpdateRoutingProfileDefaultOutboundQueueResponse
ReadS [UpdateRoutingProfileDefaultOutboundQueueResponse]
(Int -> ReadS UpdateRoutingProfileDefaultOutboundQueueResponse)
-> ReadS [UpdateRoutingProfileDefaultOutboundQueueResponse]
-> ReadPrec UpdateRoutingProfileDefaultOutboundQueueResponse
-> ReadPrec [UpdateRoutingProfileDefaultOutboundQueueResponse]
-> Read UpdateRoutingProfileDefaultOutboundQueueResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [UpdateRoutingProfileDefaultOutboundQueueResponse]
$creadListPrec :: ReadPrec [UpdateRoutingProfileDefaultOutboundQueueResponse]
readPrec :: ReadPrec UpdateRoutingProfileDefaultOutboundQueueResponse
$creadPrec :: ReadPrec UpdateRoutingProfileDefaultOutboundQueueResponse
readList :: ReadS [UpdateRoutingProfileDefaultOutboundQueueResponse]
$creadList :: ReadS [UpdateRoutingProfileDefaultOutboundQueueResponse]
readsPrec :: Int -> ReadS UpdateRoutingProfileDefaultOutboundQueueResponse
$creadsPrec :: Int -> ReadS UpdateRoutingProfileDefaultOutboundQueueResponse
Prelude.Read, Int -> UpdateRoutingProfileDefaultOutboundQueueResponse -> ShowS
[UpdateRoutingProfileDefaultOutboundQueueResponse] -> ShowS
UpdateRoutingProfileDefaultOutboundQueueResponse -> String
(Int -> UpdateRoutingProfileDefaultOutboundQueueResponse -> ShowS)
-> (UpdateRoutingProfileDefaultOutboundQueueResponse -> String)
-> ([UpdateRoutingProfileDefaultOutboundQueueResponse] -> ShowS)
-> Show UpdateRoutingProfileDefaultOutboundQueueResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [UpdateRoutingProfileDefaultOutboundQueueResponse] -> ShowS
$cshowList :: [UpdateRoutingProfileDefaultOutboundQueueResponse] -> ShowS
show :: UpdateRoutingProfileDefaultOutboundQueueResponse -> String
$cshow :: UpdateRoutingProfileDefaultOutboundQueueResponse -> String
showsPrec :: Int -> UpdateRoutingProfileDefaultOutboundQueueResponse -> ShowS
$cshowsPrec :: Int -> UpdateRoutingProfileDefaultOutboundQueueResponse -> ShowS
Prelude.Show, (forall x.
UpdateRoutingProfileDefaultOutboundQueueResponse
-> Rep UpdateRoutingProfileDefaultOutboundQueueResponse x)
-> (forall x.
Rep UpdateRoutingProfileDefaultOutboundQueueResponse x
-> UpdateRoutingProfileDefaultOutboundQueueResponse)
-> Generic UpdateRoutingProfileDefaultOutboundQueueResponse
forall x.
Rep UpdateRoutingProfileDefaultOutboundQueueResponse x
-> UpdateRoutingProfileDefaultOutboundQueueResponse
forall x.
UpdateRoutingProfileDefaultOutboundQueueResponse
-> Rep UpdateRoutingProfileDefaultOutboundQueueResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep UpdateRoutingProfileDefaultOutboundQueueResponse x
-> UpdateRoutingProfileDefaultOutboundQueueResponse
$cfrom :: forall x.
UpdateRoutingProfileDefaultOutboundQueueResponse
-> Rep UpdateRoutingProfileDefaultOutboundQueueResponse x
Prelude.Generic)
newUpdateRoutingProfileDefaultOutboundQueueResponse ::
UpdateRoutingProfileDefaultOutboundQueueResponse
newUpdateRoutingProfileDefaultOutboundQueueResponse :: UpdateRoutingProfileDefaultOutboundQueueResponse
newUpdateRoutingProfileDefaultOutboundQueueResponse =
UpdateRoutingProfileDefaultOutboundQueueResponse
UpdateRoutingProfileDefaultOutboundQueueResponse'
instance
Prelude.NFData
UpdateRoutingProfileDefaultOutboundQueueResponse