{-# 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.ListRoutingProfileQueues
(
ListRoutingProfileQueues (..),
newListRoutingProfileQueues,
listRoutingProfileQueues_nextToken,
listRoutingProfileQueues_maxResults,
listRoutingProfileQueues_instanceId,
listRoutingProfileQueues_routingProfileId,
ListRoutingProfileQueuesResponse (..),
newListRoutingProfileQueuesResponse,
listRoutingProfileQueuesResponse_routingProfileQueueConfigSummaryList,
listRoutingProfileQueuesResponse_nextToken,
listRoutingProfileQueuesResponse_httpStatus,
)
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 ListRoutingProfileQueues = ListRoutingProfileQueues'
{
ListRoutingProfileQueues -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
ListRoutingProfileQueues -> Maybe Natural
maxResults :: Prelude.Maybe Prelude.Natural,
ListRoutingProfileQueues -> Text
instanceId :: Prelude.Text,
ListRoutingProfileQueues -> Text
routingProfileId :: Prelude.Text
}
deriving (ListRoutingProfileQueues -> ListRoutingProfileQueues -> Bool
(ListRoutingProfileQueues -> ListRoutingProfileQueues -> Bool)
-> (ListRoutingProfileQueues -> ListRoutingProfileQueues -> Bool)
-> Eq ListRoutingProfileQueues
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListRoutingProfileQueues -> ListRoutingProfileQueues -> Bool
$c/= :: ListRoutingProfileQueues -> ListRoutingProfileQueues -> Bool
== :: ListRoutingProfileQueues -> ListRoutingProfileQueues -> Bool
$c== :: ListRoutingProfileQueues -> ListRoutingProfileQueues -> Bool
Prelude.Eq, ReadPrec [ListRoutingProfileQueues]
ReadPrec ListRoutingProfileQueues
Int -> ReadS ListRoutingProfileQueues
ReadS [ListRoutingProfileQueues]
(Int -> ReadS ListRoutingProfileQueues)
-> ReadS [ListRoutingProfileQueues]
-> ReadPrec ListRoutingProfileQueues
-> ReadPrec [ListRoutingProfileQueues]
-> Read ListRoutingProfileQueues
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListRoutingProfileQueues]
$creadListPrec :: ReadPrec [ListRoutingProfileQueues]
readPrec :: ReadPrec ListRoutingProfileQueues
$creadPrec :: ReadPrec ListRoutingProfileQueues
readList :: ReadS [ListRoutingProfileQueues]
$creadList :: ReadS [ListRoutingProfileQueues]
readsPrec :: Int -> ReadS ListRoutingProfileQueues
$creadsPrec :: Int -> ReadS ListRoutingProfileQueues
Prelude.Read, Int -> ListRoutingProfileQueues -> ShowS
[ListRoutingProfileQueues] -> ShowS
ListRoutingProfileQueues -> String
(Int -> ListRoutingProfileQueues -> ShowS)
-> (ListRoutingProfileQueues -> String)
-> ([ListRoutingProfileQueues] -> ShowS)
-> Show ListRoutingProfileQueues
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListRoutingProfileQueues] -> ShowS
$cshowList :: [ListRoutingProfileQueues] -> ShowS
show :: ListRoutingProfileQueues -> String
$cshow :: ListRoutingProfileQueues -> String
showsPrec :: Int -> ListRoutingProfileQueues -> ShowS
$cshowsPrec :: Int -> ListRoutingProfileQueues -> ShowS
Prelude.Show, (forall x.
ListRoutingProfileQueues -> Rep ListRoutingProfileQueues x)
-> (forall x.
Rep ListRoutingProfileQueues x -> ListRoutingProfileQueues)
-> Generic ListRoutingProfileQueues
forall x.
Rep ListRoutingProfileQueues x -> ListRoutingProfileQueues
forall x.
ListRoutingProfileQueues -> Rep ListRoutingProfileQueues x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ListRoutingProfileQueues x -> ListRoutingProfileQueues
$cfrom :: forall x.
ListRoutingProfileQueues -> Rep ListRoutingProfileQueues x
Prelude.Generic)
newListRoutingProfileQueues ::
Prelude.Text ->
Prelude.Text ->
ListRoutingProfileQueues
newListRoutingProfileQueues :: Text -> Text -> ListRoutingProfileQueues
newListRoutingProfileQueues
Text
pInstanceId_
Text
pRoutingProfileId_ =
ListRoutingProfileQueues' :: Maybe Text
-> Maybe Natural -> Text -> Text -> ListRoutingProfileQueues
ListRoutingProfileQueues'
{ $sel:nextToken:ListRoutingProfileQueues' :: Maybe Text
nextToken =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:maxResults:ListRoutingProfileQueues' :: Maybe Natural
maxResults = Maybe Natural
forall a. Maybe a
Prelude.Nothing,
$sel:instanceId:ListRoutingProfileQueues' :: Text
instanceId = Text
pInstanceId_,
$sel:routingProfileId:ListRoutingProfileQueues' :: Text
routingProfileId = Text
pRoutingProfileId_
}
listRoutingProfileQueues_nextToken :: Lens.Lens' ListRoutingProfileQueues (Prelude.Maybe Prelude.Text)
listRoutingProfileQueues_nextToken :: (Maybe Text -> f (Maybe Text))
-> ListRoutingProfileQueues -> f ListRoutingProfileQueues
listRoutingProfileQueues_nextToken = (ListRoutingProfileQueues -> Maybe Text)
-> (ListRoutingProfileQueues
-> Maybe Text -> ListRoutingProfileQueues)
-> Lens
ListRoutingProfileQueues
ListRoutingProfileQueues
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListRoutingProfileQueues' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListRoutingProfileQueues' :: ListRoutingProfileQueues -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListRoutingProfileQueues
s@ListRoutingProfileQueues' {} Maybe Text
a -> ListRoutingProfileQueues
s {$sel:nextToken:ListRoutingProfileQueues' :: Maybe Text
nextToken = Maybe Text
a} :: ListRoutingProfileQueues)
listRoutingProfileQueues_maxResults :: Lens.Lens' ListRoutingProfileQueues (Prelude.Maybe Prelude.Natural)
listRoutingProfileQueues_maxResults :: (Maybe Natural -> f (Maybe Natural))
-> ListRoutingProfileQueues -> f ListRoutingProfileQueues
listRoutingProfileQueues_maxResults = (ListRoutingProfileQueues -> Maybe Natural)
-> (ListRoutingProfileQueues
-> Maybe Natural -> ListRoutingProfileQueues)
-> Lens
ListRoutingProfileQueues
ListRoutingProfileQueues
(Maybe Natural)
(Maybe Natural)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListRoutingProfileQueues' {Maybe Natural
maxResults :: Maybe Natural
$sel:maxResults:ListRoutingProfileQueues' :: ListRoutingProfileQueues -> Maybe Natural
maxResults} -> Maybe Natural
maxResults) (\s :: ListRoutingProfileQueues
s@ListRoutingProfileQueues' {} Maybe Natural
a -> ListRoutingProfileQueues
s {$sel:maxResults:ListRoutingProfileQueues' :: Maybe Natural
maxResults = Maybe Natural
a} :: ListRoutingProfileQueues)
listRoutingProfileQueues_instanceId :: Lens.Lens' ListRoutingProfileQueues Prelude.Text
listRoutingProfileQueues_instanceId :: (Text -> f Text)
-> ListRoutingProfileQueues -> f ListRoutingProfileQueues
listRoutingProfileQueues_instanceId = (ListRoutingProfileQueues -> Text)
-> (ListRoutingProfileQueues -> Text -> ListRoutingProfileQueues)
-> Lens ListRoutingProfileQueues ListRoutingProfileQueues Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListRoutingProfileQueues' {Text
instanceId :: Text
$sel:instanceId:ListRoutingProfileQueues' :: ListRoutingProfileQueues -> Text
instanceId} -> Text
instanceId) (\s :: ListRoutingProfileQueues
s@ListRoutingProfileQueues' {} Text
a -> ListRoutingProfileQueues
s {$sel:instanceId:ListRoutingProfileQueues' :: Text
instanceId = Text
a} :: ListRoutingProfileQueues)
listRoutingProfileQueues_routingProfileId :: Lens.Lens' ListRoutingProfileQueues Prelude.Text
listRoutingProfileQueues_routingProfileId :: (Text -> f Text)
-> ListRoutingProfileQueues -> f ListRoutingProfileQueues
listRoutingProfileQueues_routingProfileId = (ListRoutingProfileQueues -> Text)
-> (ListRoutingProfileQueues -> Text -> ListRoutingProfileQueues)
-> Lens ListRoutingProfileQueues ListRoutingProfileQueues Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListRoutingProfileQueues' {Text
routingProfileId :: Text
$sel:routingProfileId:ListRoutingProfileQueues' :: ListRoutingProfileQueues -> Text
routingProfileId} -> Text
routingProfileId) (\s :: ListRoutingProfileQueues
s@ListRoutingProfileQueues' {} Text
a -> ListRoutingProfileQueues
s {$sel:routingProfileId:ListRoutingProfileQueues' :: Text
routingProfileId = Text
a} :: ListRoutingProfileQueues)
instance Core.AWSPager ListRoutingProfileQueues where
page :: ListRoutingProfileQueues
-> AWSResponse ListRoutingProfileQueues
-> Maybe ListRoutingProfileQueues
page ListRoutingProfileQueues
rq AWSResponse ListRoutingProfileQueues
rs
| Maybe Text -> Bool
forall a. AWSTruncated a => a -> Bool
Core.stop
( AWSResponse ListRoutingProfileQueues
ListRoutingProfileQueuesResponse
rs
ListRoutingProfileQueuesResponse
-> Getting (First Text) ListRoutingProfileQueuesResponse Text
-> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Text -> Const (First Text) (Maybe Text))
-> ListRoutingProfileQueuesResponse
-> Const (First Text) ListRoutingProfileQueuesResponse
Lens' ListRoutingProfileQueuesResponse (Maybe Text)
listRoutingProfileQueuesResponse_nextToken
((Maybe Text -> Const (First Text) (Maybe Text))
-> ListRoutingProfileQueuesResponse
-> Const (First Text) ListRoutingProfileQueuesResponse)
-> ((Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text))
-> Getting (First Text) ListRoutingProfileQueuesResponse Text
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. (Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text)
forall a b. Prism (Maybe a) (Maybe b) a b
Lens._Just
) =
Maybe ListRoutingProfileQueues
forall a. Maybe a
Prelude.Nothing
| Maybe [RoutingProfileQueueConfigSummary] -> Bool
forall a. AWSTruncated a => a -> Bool
Core.stop
( AWSResponse ListRoutingProfileQueues
ListRoutingProfileQueuesResponse
rs
ListRoutingProfileQueuesResponse
-> Getting
(First [RoutingProfileQueueConfigSummary])
ListRoutingProfileQueuesResponse
[RoutingProfileQueueConfigSummary]
-> Maybe [RoutingProfileQueueConfigSummary]
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe [RoutingProfileQueueConfigSummary]
-> Const
(First [RoutingProfileQueueConfigSummary])
(Maybe [RoutingProfileQueueConfigSummary]))
-> ListRoutingProfileQueuesResponse
-> Const
(First [RoutingProfileQueueConfigSummary])
ListRoutingProfileQueuesResponse
Lens'
ListRoutingProfileQueuesResponse
(Maybe [RoutingProfileQueueConfigSummary])
listRoutingProfileQueuesResponse_routingProfileQueueConfigSummaryList
((Maybe [RoutingProfileQueueConfigSummary]
-> Const
(First [RoutingProfileQueueConfigSummary])
(Maybe [RoutingProfileQueueConfigSummary]))
-> ListRoutingProfileQueuesResponse
-> Const
(First [RoutingProfileQueueConfigSummary])
ListRoutingProfileQueuesResponse)
-> (([RoutingProfileQueueConfigSummary]
-> Const
(First [RoutingProfileQueueConfigSummary])
[RoutingProfileQueueConfigSummary])
-> Maybe [RoutingProfileQueueConfigSummary]
-> Const
(First [RoutingProfileQueueConfigSummary])
(Maybe [RoutingProfileQueueConfigSummary]))
-> Getting
(First [RoutingProfileQueueConfigSummary])
ListRoutingProfileQueuesResponse
[RoutingProfileQueueConfigSummary]
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. ([RoutingProfileQueueConfigSummary]
-> Const
(First [RoutingProfileQueueConfigSummary])
[RoutingProfileQueueConfigSummary])
-> Maybe [RoutingProfileQueueConfigSummary]
-> Const
(First [RoutingProfileQueueConfigSummary])
(Maybe [RoutingProfileQueueConfigSummary])
forall a b. Prism (Maybe a) (Maybe b) a b
Lens._Just
) =
Maybe ListRoutingProfileQueues
forall a. Maybe a
Prelude.Nothing
| Bool
Prelude.otherwise =
ListRoutingProfileQueues -> Maybe ListRoutingProfileQueues
forall a. a -> Maybe a
Prelude.Just (ListRoutingProfileQueues -> Maybe ListRoutingProfileQueues)
-> ListRoutingProfileQueues -> Maybe ListRoutingProfileQueues
forall a b. (a -> b) -> a -> b
Prelude.$
ListRoutingProfileQueues
rq
ListRoutingProfileQueues
-> (ListRoutingProfileQueues -> ListRoutingProfileQueues)
-> ListRoutingProfileQueues
forall a b. a -> (a -> b) -> b
Prelude.& (Maybe Text -> Identity (Maybe Text))
-> ListRoutingProfileQueues -> Identity ListRoutingProfileQueues
Lens
ListRoutingProfileQueues
ListRoutingProfileQueues
(Maybe Text)
(Maybe Text)
listRoutingProfileQueues_nextToken
((Maybe Text -> Identity (Maybe Text))
-> ListRoutingProfileQueues -> Identity ListRoutingProfileQueues)
-> Maybe Text
-> ListRoutingProfileQueues
-> ListRoutingProfileQueues
forall s t a b. ASetter s t a b -> b -> s -> t
Lens..~ AWSResponse ListRoutingProfileQueues
ListRoutingProfileQueuesResponse
rs
ListRoutingProfileQueuesResponse
-> Getting (First Text) ListRoutingProfileQueuesResponse Text
-> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Text -> Const (First Text) (Maybe Text))
-> ListRoutingProfileQueuesResponse
-> Const (First Text) ListRoutingProfileQueuesResponse
Lens' ListRoutingProfileQueuesResponse (Maybe Text)
listRoutingProfileQueuesResponse_nextToken
((Maybe Text -> Const (First Text) (Maybe Text))
-> ListRoutingProfileQueuesResponse
-> Const (First Text) ListRoutingProfileQueuesResponse)
-> ((Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text))
-> Getting (First Text) ListRoutingProfileQueuesResponse Text
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. (Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text)
forall a b. Prism (Maybe a) (Maybe b) a b
Lens._Just
instance Core.AWSRequest ListRoutingProfileQueues where
type
AWSResponse ListRoutingProfileQueues =
ListRoutingProfileQueuesResponse
request :: ListRoutingProfileQueues -> Request ListRoutingProfileQueues
request = Service
-> ListRoutingProfileQueues -> Request ListRoutingProfileQueues
forall a. ToRequest a => Service -> a -> Request a
Request.get Service
defaultService
response :: Logger
-> Service
-> Proxy ListRoutingProfileQueues
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse ListRoutingProfileQueues)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse ListRoutingProfileQueues))
-> Logger
-> Service
-> Proxy ListRoutingProfileQueues
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse ListRoutingProfileQueues)))
forall (m :: * -> *) a.
MonadResource m =>
(Int -> ResponseHeaders -> Object -> Either String (AWSResponse a))
-> Logger
-> Service
-> Proxy a
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse a)))
Response.receiveJSON
( \Int
s ResponseHeaders
h Object
x ->
Maybe [RoutingProfileQueueConfigSummary]
-> Maybe Text -> Int -> ListRoutingProfileQueuesResponse
ListRoutingProfileQueuesResponse'
(Maybe [RoutingProfileQueueConfigSummary]
-> Maybe Text -> Int -> ListRoutingProfileQueuesResponse)
-> Either String (Maybe [RoutingProfileQueueConfigSummary])
-> Either
String (Maybe Text -> Int -> ListRoutingProfileQueuesResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> ( Object
x Object
-> Text
-> Either String (Maybe (Maybe [RoutingProfileQueueConfigSummary]))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"RoutingProfileQueueConfigSummaryList"
Either String (Maybe (Maybe [RoutingProfileQueueConfigSummary]))
-> Maybe [RoutingProfileQueueConfigSummary]
-> Either String (Maybe [RoutingProfileQueueConfigSummary])
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ Maybe [RoutingProfileQueueConfigSummary]
forall a. Monoid a => a
Prelude.mempty
)
Either
String (Maybe Text -> Int -> ListRoutingProfileQueuesResponse)
-> Either String (Maybe Text)
-> Either String (Int -> ListRoutingProfileQueuesResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe Text)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"NextToken")
Either String (Int -> ListRoutingProfileQueuesResponse)
-> Either String Int
-> Either String ListRoutingProfileQueuesResponse
forall (f :: * -> *) a b. Applicative f => 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 ListRoutingProfileQueues
instance Prelude.NFData ListRoutingProfileQueues
instance Core.ToHeaders ListRoutingProfileQueues where
toHeaders :: ListRoutingProfileQueues -> ResponseHeaders
toHeaders =
ResponseHeaders -> ListRoutingProfileQueues -> ResponseHeaders
forall a b. a -> b -> a
Prelude.const
( [ResponseHeaders] -> ResponseHeaders
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ 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.ToPath ListRoutingProfileQueues where
toPath :: ListRoutingProfileQueues -> ByteString
toPath ListRoutingProfileQueues' {Maybe Natural
Maybe Text
Text
routingProfileId :: Text
instanceId :: Text
maxResults :: Maybe Natural
nextToken :: Maybe Text
$sel:routingProfileId:ListRoutingProfileQueues' :: ListRoutingProfileQueues -> Text
$sel:instanceId:ListRoutingProfileQueues' :: ListRoutingProfileQueues -> Text
$sel:maxResults:ListRoutingProfileQueues' :: ListRoutingProfileQueues -> Maybe Natural
$sel:nextToken:ListRoutingProfileQueues' :: ListRoutingProfileQueues -> Maybe 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
"/queues"
]
instance Core.ToQuery ListRoutingProfileQueues where
toQuery :: ListRoutingProfileQueues -> QueryString
toQuery ListRoutingProfileQueues' {Maybe Natural
Maybe Text
Text
routingProfileId :: Text
instanceId :: Text
maxResults :: Maybe Natural
nextToken :: Maybe Text
$sel:routingProfileId:ListRoutingProfileQueues' :: ListRoutingProfileQueues -> Text
$sel:instanceId:ListRoutingProfileQueues' :: ListRoutingProfileQueues -> Text
$sel:maxResults:ListRoutingProfileQueues' :: ListRoutingProfileQueues -> Maybe Natural
$sel:nextToken:ListRoutingProfileQueues' :: ListRoutingProfileQueues -> Maybe Text
..} =
[QueryString] -> QueryString
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ ByteString
"nextToken" ByteString -> Maybe Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Text
nextToken,
ByteString
"maxResults" ByteString -> Maybe Natural -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Natural
maxResults
]
data ListRoutingProfileQueuesResponse = ListRoutingProfileQueuesResponse'
{
ListRoutingProfileQueuesResponse
-> Maybe [RoutingProfileQueueConfigSummary]
routingProfileQueueConfigSummaryList :: Prelude.Maybe [RoutingProfileQueueConfigSummary],
ListRoutingProfileQueuesResponse -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
ListRoutingProfileQueuesResponse -> Int
httpStatus :: Prelude.Int
}
deriving (ListRoutingProfileQueuesResponse
-> ListRoutingProfileQueuesResponse -> Bool
(ListRoutingProfileQueuesResponse
-> ListRoutingProfileQueuesResponse -> Bool)
-> (ListRoutingProfileQueuesResponse
-> ListRoutingProfileQueuesResponse -> Bool)
-> Eq ListRoutingProfileQueuesResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListRoutingProfileQueuesResponse
-> ListRoutingProfileQueuesResponse -> Bool
$c/= :: ListRoutingProfileQueuesResponse
-> ListRoutingProfileQueuesResponse -> Bool
== :: ListRoutingProfileQueuesResponse
-> ListRoutingProfileQueuesResponse -> Bool
$c== :: ListRoutingProfileQueuesResponse
-> ListRoutingProfileQueuesResponse -> Bool
Prelude.Eq, ReadPrec [ListRoutingProfileQueuesResponse]
ReadPrec ListRoutingProfileQueuesResponse
Int -> ReadS ListRoutingProfileQueuesResponse
ReadS [ListRoutingProfileQueuesResponse]
(Int -> ReadS ListRoutingProfileQueuesResponse)
-> ReadS [ListRoutingProfileQueuesResponse]
-> ReadPrec ListRoutingProfileQueuesResponse
-> ReadPrec [ListRoutingProfileQueuesResponse]
-> Read ListRoutingProfileQueuesResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListRoutingProfileQueuesResponse]
$creadListPrec :: ReadPrec [ListRoutingProfileQueuesResponse]
readPrec :: ReadPrec ListRoutingProfileQueuesResponse
$creadPrec :: ReadPrec ListRoutingProfileQueuesResponse
readList :: ReadS [ListRoutingProfileQueuesResponse]
$creadList :: ReadS [ListRoutingProfileQueuesResponse]
readsPrec :: Int -> ReadS ListRoutingProfileQueuesResponse
$creadsPrec :: Int -> ReadS ListRoutingProfileQueuesResponse
Prelude.Read, Int -> ListRoutingProfileQueuesResponse -> ShowS
[ListRoutingProfileQueuesResponse] -> ShowS
ListRoutingProfileQueuesResponse -> String
(Int -> ListRoutingProfileQueuesResponse -> ShowS)
-> (ListRoutingProfileQueuesResponse -> String)
-> ([ListRoutingProfileQueuesResponse] -> ShowS)
-> Show ListRoutingProfileQueuesResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListRoutingProfileQueuesResponse] -> ShowS
$cshowList :: [ListRoutingProfileQueuesResponse] -> ShowS
show :: ListRoutingProfileQueuesResponse -> String
$cshow :: ListRoutingProfileQueuesResponse -> String
showsPrec :: Int -> ListRoutingProfileQueuesResponse -> ShowS
$cshowsPrec :: Int -> ListRoutingProfileQueuesResponse -> ShowS
Prelude.Show, (forall x.
ListRoutingProfileQueuesResponse
-> Rep ListRoutingProfileQueuesResponse x)
-> (forall x.
Rep ListRoutingProfileQueuesResponse x
-> ListRoutingProfileQueuesResponse)
-> Generic ListRoutingProfileQueuesResponse
forall x.
Rep ListRoutingProfileQueuesResponse x
-> ListRoutingProfileQueuesResponse
forall x.
ListRoutingProfileQueuesResponse
-> Rep ListRoutingProfileQueuesResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ListRoutingProfileQueuesResponse x
-> ListRoutingProfileQueuesResponse
$cfrom :: forall x.
ListRoutingProfileQueuesResponse
-> Rep ListRoutingProfileQueuesResponse x
Prelude.Generic)
newListRoutingProfileQueuesResponse ::
Prelude.Int ->
ListRoutingProfileQueuesResponse
newListRoutingProfileQueuesResponse :: Int -> ListRoutingProfileQueuesResponse
newListRoutingProfileQueuesResponse Int
pHttpStatus_ =
ListRoutingProfileQueuesResponse' :: Maybe [RoutingProfileQueueConfigSummary]
-> Maybe Text -> Int -> ListRoutingProfileQueuesResponse
ListRoutingProfileQueuesResponse'
{ $sel:routingProfileQueueConfigSummaryList:ListRoutingProfileQueuesResponse' :: Maybe [RoutingProfileQueueConfigSummary]
routingProfileQueueConfigSummaryList =
Maybe [RoutingProfileQueueConfigSummary]
forall a. Maybe a
Prelude.Nothing,
$sel:nextToken:ListRoutingProfileQueuesResponse' :: Maybe Text
nextToken = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:ListRoutingProfileQueuesResponse' :: Int
httpStatus = Int
pHttpStatus_
}
listRoutingProfileQueuesResponse_routingProfileQueueConfigSummaryList :: Lens.Lens' ListRoutingProfileQueuesResponse (Prelude.Maybe [RoutingProfileQueueConfigSummary])
listRoutingProfileQueuesResponse_routingProfileQueueConfigSummaryList :: (Maybe [RoutingProfileQueueConfigSummary]
-> f (Maybe [RoutingProfileQueueConfigSummary]))
-> ListRoutingProfileQueuesResponse
-> f ListRoutingProfileQueuesResponse
listRoutingProfileQueuesResponse_routingProfileQueueConfigSummaryList = (ListRoutingProfileQueuesResponse
-> Maybe [RoutingProfileQueueConfigSummary])
-> (ListRoutingProfileQueuesResponse
-> Maybe [RoutingProfileQueueConfigSummary]
-> ListRoutingProfileQueuesResponse)
-> Lens'
ListRoutingProfileQueuesResponse
(Maybe [RoutingProfileQueueConfigSummary])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListRoutingProfileQueuesResponse' {Maybe [RoutingProfileQueueConfigSummary]
routingProfileQueueConfigSummaryList :: Maybe [RoutingProfileQueueConfigSummary]
$sel:routingProfileQueueConfigSummaryList:ListRoutingProfileQueuesResponse' :: ListRoutingProfileQueuesResponse
-> Maybe [RoutingProfileQueueConfigSummary]
routingProfileQueueConfigSummaryList} -> Maybe [RoutingProfileQueueConfigSummary]
routingProfileQueueConfigSummaryList) (\s :: ListRoutingProfileQueuesResponse
s@ListRoutingProfileQueuesResponse' {} Maybe [RoutingProfileQueueConfigSummary]
a -> ListRoutingProfileQueuesResponse
s {$sel:routingProfileQueueConfigSummaryList:ListRoutingProfileQueuesResponse' :: Maybe [RoutingProfileQueueConfigSummary]
routingProfileQueueConfigSummaryList = Maybe [RoutingProfileQueueConfigSummary]
a} :: ListRoutingProfileQueuesResponse) ((Maybe [RoutingProfileQueueConfigSummary]
-> f (Maybe [RoutingProfileQueueConfigSummary]))
-> ListRoutingProfileQueuesResponse
-> f ListRoutingProfileQueuesResponse)
-> ((Maybe [RoutingProfileQueueConfigSummary]
-> f (Maybe [RoutingProfileQueueConfigSummary]))
-> Maybe [RoutingProfileQueueConfigSummary]
-> f (Maybe [RoutingProfileQueueConfigSummary]))
-> (Maybe [RoutingProfileQueueConfigSummary]
-> f (Maybe [RoutingProfileQueueConfigSummary]))
-> ListRoutingProfileQueuesResponse
-> f ListRoutingProfileQueuesResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
[RoutingProfileQueueConfigSummary]
[RoutingProfileQueueConfigSummary]
[RoutingProfileQueueConfigSummary]
[RoutingProfileQueueConfigSummary]
-> Iso
(Maybe [RoutingProfileQueueConfigSummary])
(Maybe [RoutingProfileQueueConfigSummary])
(Maybe [RoutingProfileQueueConfigSummary])
(Maybe [RoutingProfileQueueConfigSummary])
forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping AnIso
[RoutingProfileQueueConfigSummary]
[RoutingProfileQueueConfigSummary]
[RoutingProfileQueueConfigSummary]
[RoutingProfileQueueConfigSummary]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
listRoutingProfileQueuesResponse_nextToken :: Lens.Lens' ListRoutingProfileQueuesResponse (Prelude.Maybe Prelude.Text)
listRoutingProfileQueuesResponse_nextToken :: (Maybe Text -> f (Maybe Text))
-> ListRoutingProfileQueuesResponse
-> f ListRoutingProfileQueuesResponse
listRoutingProfileQueuesResponse_nextToken = (ListRoutingProfileQueuesResponse -> Maybe Text)
-> (ListRoutingProfileQueuesResponse
-> Maybe Text -> ListRoutingProfileQueuesResponse)
-> Lens' ListRoutingProfileQueuesResponse (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListRoutingProfileQueuesResponse' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListRoutingProfileQueuesResponse' :: ListRoutingProfileQueuesResponse -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListRoutingProfileQueuesResponse
s@ListRoutingProfileQueuesResponse' {} Maybe Text
a -> ListRoutingProfileQueuesResponse
s {$sel:nextToken:ListRoutingProfileQueuesResponse' :: Maybe Text
nextToken = Maybe Text
a} :: ListRoutingProfileQueuesResponse)
listRoutingProfileQueuesResponse_httpStatus :: Lens.Lens' ListRoutingProfileQueuesResponse Prelude.Int
listRoutingProfileQueuesResponse_httpStatus :: (Int -> f Int)
-> ListRoutingProfileQueuesResponse
-> f ListRoutingProfileQueuesResponse
listRoutingProfileQueuesResponse_httpStatus = (ListRoutingProfileQueuesResponse -> Int)
-> (ListRoutingProfileQueuesResponse
-> Int -> ListRoutingProfileQueuesResponse)
-> Lens
ListRoutingProfileQueuesResponse
ListRoutingProfileQueuesResponse
Int
Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListRoutingProfileQueuesResponse' {Int
httpStatus :: Int
$sel:httpStatus:ListRoutingProfileQueuesResponse' :: ListRoutingProfileQueuesResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: ListRoutingProfileQueuesResponse
s@ListRoutingProfileQueuesResponse' {} Int
a -> ListRoutingProfileQueuesResponse
s {$sel:httpStatus:ListRoutingProfileQueuesResponse' :: Int
httpStatus = Int
a} :: ListRoutingProfileQueuesResponse)
instance
Prelude.NFData
ListRoutingProfileQueuesResponse