{-# 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.ListRoutingProfiles
(
ListRoutingProfiles (..),
newListRoutingProfiles,
listRoutingProfiles_nextToken,
listRoutingProfiles_maxResults,
listRoutingProfiles_instanceId,
ListRoutingProfilesResponse (..),
newListRoutingProfilesResponse,
listRoutingProfilesResponse_routingProfileSummaryList,
listRoutingProfilesResponse_nextToken,
listRoutingProfilesResponse_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 ListRoutingProfiles = ListRoutingProfiles'
{
ListRoutingProfiles -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
ListRoutingProfiles -> Maybe Natural
maxResults :: Prelude.Maybe Prelude.Natural,
ListRoutingProfiles -> Text
instanceId :: Prelude.Text
}
deriving (ListRoutingProfiles -> ListRoutingProfiles -> Bool
(ListRoutingProfiles -> ListRoutingProfiles -> Bool)
-> (ListRoutingProfiles -> ListRoutingProfiles -> Bool)
-> Eq ListRoutingProfiles
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListRoutingProfiles -> ListRoutingProfiles -> Bool
$c/= :: ListRoutingProfiles -> ListRoutingProfiles -> Bool
== :: ListRoutingProfiles -> ListRoutingProfiles -> Bool
$c== :: ListRoutingProfiles -> ListRoutingProfiles -> Bool
Prelude.Eq, ReadPrec [ListRoutingProfiles]
ReadPrec ListRoutingProfiles
Int -> ReadS ListRoutingProfiles
ReadS [ListRoutingProfiles]
(Int -> ReadS ListRoutingProfiles)
-> ReadS [ListRoutingProfiles]
-> ReadPrec ListRoutingProfiles
-> ReadPrec [ListRoutingProfiles]
-> Read ListRoutingProfiles
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListRoutingProfiles]
$creadListPrec :: ReadPrec [ListRoutingProfiles]
readPrec :: ReadPrec ListRoutingProfiles
$creadPrec :: ReadPrec ListRoutingProfiles
readList :: ReadS [ListRoutingProfiles]
$creadList :: ReadS [ListRoutingProfiles]
readsPrec :: Int -> ReadS ListRoutingProfiles
$creadsPrec :: Int -> ReadS ListRoutingProfiles
Prelude.Read, Int -> ListRoutingProfiles -> ShowS
[ListRoutingProfiles] -> ShowS
ListRoutingProfiles -> String
(Int -> ListRoutingProfiles -> ShowS)
-> (ListRoutingProfiles -> String)
-> ([ListRoutingProfiles] -> ShowS)
-> Show ListRoutingProfiles
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListRoutingProfiles] -> ShowS
$cshowList :: [ListRoutingProfiles] -> ShowS
show :: ListRoutingProfiles -> String
$cshow :: ListRoutingProfiles -> String
showsPrec :: Int -> ListRoutingProfiles -> ShowS
$cshowsPrec :: Int -> ListRoutingProfiles -> ShowS
Prelude.Show, (forall x. ListRoutingProfiles -> Rep ListRoutingProfiles x)
-> (forall x. Rep ListRoutingProfiles x -> ListRoutingProfiles)
-> Generic ListRoutingProfiles
forall x. Rep ListRoutingProfiles x -> ListRoutingProfiles
forall x. ListRoutingProfiles -> Rep ListRoutingProfiles x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ListRoutingProfiles x -> ListRoutingProfiles
$cfrom :: forall x. ListRoutingProfiles -> Rep ListRoutingProfiles x
Prelude.Generic)
newListRoutingProfiles ::
Prelude.Text ->
ListRoutingProfiles
newListRoutingProfiles :: Text -> ListRoutingProfiles
newListRoutingProfiles Text
pInstanceId_ =
ListRoutingProfiles' :: Maybe Text -> Maybe Natural -> Text -> ListRoutingProfiles
ListRoutingProfiles'
{ $sel:nextToken:ListRoutingProfiles' :: Maybe Text
nextToken = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:maxResults:ListRoutingProfiles' :: Maybe Natural
maxResults = Maybe Natural
forall a. Maybe a
Prelude.Nothing,
$sel:instanceId:ListRoutingProfiles' :: Text
instanceId = Text
pInstanceId_
}
listRoutingProfiles_nextToken :: Lens.Lens' ListRoutingProfiles (Prelude.Maybe Prelude.Text)
listRoutingProfiles_nextToken :: (Maybe Text -> f (Maybe Text))
-> ListRoutingProfiles -> f ListRoutingProfiles
listRoutingProfiles_nextToken = (ListRoutingProfiles -> Maybe Text)
-> (ListRoutingProfiles -> Maybe Text -> ListRoutingProfiles)
-> Lens
ListRoutingProfiles ListRoutingProfiles (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListRoutingProfiles' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListRoutingProfiles' :: ListRoutingProfiles -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListRoutingProfiles
s@ListRoutingProfiles' {} Maybe Text
a -> ListRoutingProfiles
s {$sel:nextToken:ListRoutingProfiles' :: Maybe Text
nextToken = Maybe Text
a} :: ListRoutingProfiles)
listRoutingProfiles_maxResults :: Lens.Lens' ListRoutingProfiles (Prelude.Maybe Prelude.Natural)
listRoutingProfiles_maxResults :: (Maybe Natural -> f (Maybe Natural))
-> ListRoutingProfiles -> f ListRoutingProfiles
listRoutingProfiles_maxResults = (ListRoutingProfiles -> Maybe Natural)
-> (ListRoutingProfiles -> Maybe Natural -> ListRoutingProfiles)
-> Lens
ListRoutingProfiles
ListRoutingProfiles
(Maybe Natural)
(Maybe Natural)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListRoutingProfiles' {Maybe Natural
maxResults :: Maybe Natural
$sel:maxResults:ListRoutingProfiles' :: ListRoutingProfiles -> Maybe Natural
maxResults} -> Maybe Natural
maxResults) (\s :: ListRoutingProfiles
s@ListRoutingProfiles' {} Maybe Natural
a -> ListRoutingProfiles
s {$sel:maxResults:ListRoutingProfiles' :: Maybe Natural
maxResults = Maybe Natural
a} :: ListRoutingProfiles)
listRoutingProfiles_instanceId :: Lens.Lens' ListRoutingProfiles Prelude.Text
listRoutingProfiles_instanceId :: (Text -> f Text) -> ListRoutingProfiles -> f ListRoutingProfiles
listRoutingProfiles_instanceId = (ListRoutingProfiles -> Text)
-> (ListRoutingProfiles -> Text -> ListRoutingProfiles)
-> Lens ListRoutingProfiles ListRoutingProfiles Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListRoutingProfiles' {Text
instanceId :: Text
$sel:instanceId:ListRoutingProfiles' :: ListRoutingProfiles -> Text
instanceId} -> Text
instanceId) (\s :: ListRoutingProfiles
s@ListRoutingProfiles' {} Text
a -> ListRoutingProfiles
s {$sel:instanceId:ListRoutingProfiles' :: Text
instanceId = Text
a} :: ListRoutingProfiles)
instance Core.AWSPager ListRoutingProfiles where
page :: ListRoutingProfiles
-> AWSResponse ListRoutingProfiles -> Maybe ListRoutingProfiles
page ListRoutingProfiles
rq AWSResponse ListRoutingProfiles
rs
| Maybe Text -> Bool
forall a. AWSTruncated a => a -> Bool
Core.stop
( AWSResponse ListRoutingProfiles
ListRoutingProfilesResponse
rs
ListRoutingProfilesResponse
-> Getting (First Text) ListRoutingProfilesResponse Text
-> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Text -> Const (First Text) (Maybe Text))
-> ListRoutingProfilesResponse
-> Const (First Text) ListRoutingProfilesResponse
Lens' ListRoutingProfilesResponse (Maybe Text)
listRoutingProfilesResponse_nextToken
((Maybe Text -> Const (First Text) (Maybe Text))
-> ListRoutingProfilesResponse
-> Const (First Text) ListRoutingProfilesResponse)
-> ((Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text))
-> Getting (First Text) ListRoutingProfilesResponse 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 ListRoutingProfiles
forall a. Maybe a
Prelude.Nothing
| Maybe [RoutingProfileSummary] -> Bool
forall a. AWSTruncated a => a -> Bool
Core.stop
( AWSResponse ListRoutingProfiles
ListRoutingProfilesResponse
rs
ListRoutingProfilesResponse
-> Getting
(First [RoutingProfileSummary])
ListRoutingProfilesResponse
[RoutingProfileSummary]
-> Maybe [RoutingProfileSummary]
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe [RoutingProfileSummary]
-> Const
(First [RoutingProfileSummary]) (Maybe [RoutingProfileSummary]))
-> ListRoutingProfilesResponse
-> Const
(First [RoutingProfileSummary]) ListRoutingProfilesResponse
Lens' ListRoutingProfilesResponse (Maybe [RoutingProfileSummary])
listRoutingProfilesResponse_routingProfileSummaryList
((Maybe [RoutingProfileSummary]
-> Const
(First [RoutingProfileSummary]) (Maybe [RoutingProfileSummary]))
-> ListRoutingProfilesResponse
-> Const
(First [RoutingProfileSummary]) ListRoutingProfilesResponse)
-> (([RoutingProfileSummary]
-> Const (First [RoutingProfileSummary]) [RoutingProfileSummary])
-> Maybe [RoutingProfileSummary]
-> Const
(First [RoutingProfileSummary]) (Maybe [RoutingProfileSummary]))
-> Getting
(First [RoutingProfileSummary])
ListRoutingProfilesResponse
[RoutingProfileSummary]
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. ([RoutingProfileSummary]
-> Const (First [RoutingProfileSummary]) [RoutingProfileSummary])
-> Maybe [RoutingProfileSummary]
-> Const
(First [RoutingProfileSummary]) (Maybe [RoutingProfileSummary])
forall a b. Prism (Maybe a) (Maybe b) a b
Lens._Just
) =
Maybe ListRoutingProfiles
forall a. Maybe a
Prelude.Nothing
| Bool
Prelude.otherwise =
ListRoutingProfiles -> Maybe ListRoutingProfiles
forall a. a -> Maybe a
Prelude.Just (ListRoutingProfiles -> Maybe ListRoutingProfiles)
-> ListRoutingProfiles -> Maybe ListRoutingProfiles
forall a b. (a -> b) -> a -> b
Prelude.$
ListRoutingProfiles
rq
ListRoutingProfiles
-> (ListRoutingProfiles -> ListRoutingProfiles)
-> ListRoutingProfiles
forall a b. a -> (a -> b) -> b
Prelude.& (Maybe Text -> Identity (Maybe Text))
-> ListRoutingProfiles -> Identity ListRoutingProfiles
Lens
ListRoutingProfiles ListRoutingProfiles (Maybe Text) (Maybe Text)
listRoutingProfiles_nextToken
((Maybe Text -> Identity (Maybe Text))
-> ListRoutingProfiles -> Identity ListRoutingProfiles)
-> Maybe Text -> ListRoutingProfiles -> ListRoutingProfiles
forall s t a b. ASetter s t a b -> b -> s -> t
Lens..~ AWSResponse ListRoutingProfiles
ListRoutingProfilesResponse
rs
ListRoutingProfilesResponse
-> Getting (First Text) ListRoutingProfilesResponse Text
-> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Text -> Const (First Text) (Maybe Text))
-> ListRoutingProfilesResponse
-> Const (First Text) ListRoutingProfilesResponse
Lens' ListRoutingProfilesResponse (Maybe Text)
listRoutingProfilesResponse_nextToken
((Maybe Text -> Const (First Text) (Maybe Text))
-> ListRoutingProfilesResponse
-> Const (First Text) ListRoutingProfilesResponse)
-> ((Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text))
-> Getting (First Text) ListRoutingProfilesResponse 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 ListRoutingProfiles where
type
AWSResponse ListRoutingProfiles =
ListRoutingProfilesResponse
request :: ListRoutingProfiles -> Request ListRoutingProfiles
request = Service -> ListRoutingProfiles -> Request ListRoutingProfiles
forall a. ToRequest a => Service -> a -> Request a
Request.get Service
defaultService
response :: Logger
-> Service
-> Proxy ListRoutingProfiles
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse ListRoutingProfiles)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse ListRoutingProfiles))
-> Logger
-> Service
-> Proxy ListRoutingProfiles
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse ListRoutingProfiles)))
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 [RoutingProfileSummary]
-> Maybe Text -> Int -> ListRoutingProfilesResponse
ListRoutingProfilesResponse'
(Maybe [RoutingProfileSummary]
-> Maybe Text -> Int -> ListRoutingProfilesResponse)
-> Either String (Maybe [RoutingProfileSummary])
-> Either String (Maybe Text -> Int -> ListRoutingProfilesResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> ( Object
x Object
-> Text -> Either String (Maybe (Maybe [RoutingProfileSummary]))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"RoutingProfileSummaryList"
Either String (Maybe (Maybe [RoutingProfileSummary]))
-> Maybe [RoutingProfileSummary]
-> Either String (Maybe [RoutingProfileSummary])
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ Maybe [RoutingProfileSummary]
forall a. Monoid a => a
Prelude.mempty
)
Either String (Maybe Text -> Int -> ListRoutingProfilesResponse)
-> Either String (Maybe Text)
-> Either String (Int -> ListRoutingProfilesResponse)
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 -> ListRoutingProfilesResponse)
-> Either String Int -> Either String ListRoutingProfilesResponse
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 ListRoutingProfiles
instance Prelude.NFData ListRoutingProfiles
instance Core.ToHeaders ListRoutingProfiles where
toHeaders :: ListRoutingProfiles -> ResponseHeaders
toHeaders =
ResponseHeaders -> ListRoutingProfiles -> 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 ListRoutingProfiles where
toPath :: ListRoutingProfiles -> ByteString
toPath ListRoutingProfiles' {Maybe Natural
Maybe Text
Text
instanceId :: Text
maxResults :: Maybe Natural
nextToken :: Maybe Text
$sel:instanceId:ListRoutingProfiles' :: ListRoutingProfiles -> Text
$sel:maxResults:ListRoutingProfiles' :: ListRoutingProfiles -> Maybe Natural
$sel:nextToken:ListRoutingProfiles' :: ListRoutingProfiles -> Maybe Text
..} =
[ByteString] -> ByteString
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ByteString
"/routing-profiles-summary/", Text -> ByteString
forall a. ToByteString a => a -> ByteString
Core.toBS Text
instanceId]
instance Core.ToQuery ListRoutingProfiles where
toQuery :: ListRoutingProfiles -> QueryString
toQuery ListRoutingProfiles' {Maybe Natural
Maybe Text
Text
instanceId :: Text
maxResults :: Maybe Natural
nextToken :: Maybe Text
$sel:instanceId:ListRoutingProfiles' :: ListRoutingProfiles -> Text
$sel:maxResults:ListRoutingProfiles' :: ListRoutingProfiles -> Maybe Natural
$sel:nextToken:ListRoutingProfiles' :: ListRoutingProfiles -> 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 ListRoutingProfilesResponse = ListRoutingProfilesResponse'
{
ListRoutingProfilesResponse -> Maybe [RoutingProfileSummary]
routingProfileSummaryList :: Prelude.Maybe [RoutingProfileSummary],
ListRoutingProfilesResponse -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
ListRoutingProfilesResponse -> Int
httpStatus :: Prelude.Int
}
deriving (ListRoutingProfilesResponse -> ListRoutingProfilesResponse -> Bool
(ListRoutingProfilesResponse
-> ListRoutingProfilesResponse -> Bool)
-> (ListRoutingProfilesResponse
-> ListRoutingProfilesResponse -> Bool)
-> Eq ListRoutingProfilesResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListRoutingProfilesResponse -> ListRoutingProfilesResponse -> Bool
$c/= :: ListRoutingProfilesResponse -> ListRoutingProfilesResponse -> Bool
== :: ListRoutingProfilesResponse -> ListRoutingProfilesResponse -> Bool
$c== :: ListRoutingProfilesResponse -> ListRoutingProfilesResponse -> Bool
Prelude.Eq, ReadPrec [ListRoutingProfilesResponse]
ReadPrec ListRoutingProfilesResponse
Int -> ReadS ListRoutingProfilesResponse
ReadS [ListRoutingProfilesResponse]
(Int -> ReadS ListRoutingProfilesResponse)
-> ReadS [ListRoutingProfilesResponse]
-> ReadPrec ListRoutingProfilesResponse
-> ReadPrec [ListRoutingProfilesResponse]
-> Read ListRoutingProfilesResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListRoutingProfilesResponse]
$creadListPrec :: ReadPrec [ListRoutingProfilesResponse]
readPrec :: ReadPrec ListRoutingProfilesResponse
$creadPrec :: ReadPrec ListRoutingProfilesResponse
readList :: ReadS [ListRoutingProfilesResponse]
$creadList :: ReadS [ListRoutingProfilesResponse]
readsPrec :: Int -> ReadS ListRoutingProfilesResponse
$creadsPrec :: Int -> ReadS ListRoutingProfilesResponse
Prelude.Read, Int -> ListRoutingProfilesResponse -> ShowS
[ListRoutingProfilesResponse] -> ShowS
ListRoutingProfilesResponse -> String
(Int -> ListRoutingProfilesResponse -> ShowS)
-> (ListRoutingProfilesResponse -> String)
-> ([ListRoutingProfilesResponse] -> ShowS)
-> Show ListRoutingProfilesResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListRoutingProfilesResponse] -> ShowS
$cshowList :: [ListRoutingProfilesResponse] -> ShowS
show :: ListRoutingProfilesResponse -> String
$cshow :: ListRoutingProfilesResponse -> String
showsPrec :: Int -> ListRoutingProfilesResponse -> ShowS
$cshowsPrec :: Int -> ListRoutingProfilesResponse -> ShowS
Prelude.Show, (forall x.
ListRoutingProfilesResponse -> Rep ListRoutingProfilesResponse x)
-> (forall x.
Rep ListRoutingProfilesResponse x -> ListRoutingProfilesResponse)
-> Generic ListRoutingProfilesResponse
forall x.
Rep ListRoutingProfilesResponse x -> ListRoutingProfilesResponse
forall x.
ListRoutingProfilesResponse -> Rep ListRoutingProfilesResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ListRoutingProfilesResponse x -> ListRoutingProfilesResponse
$cfrom :: forall x.
ListRoutingProfilesResponse -> Rep ListRoutingProfilesResponse x
Prelude.Generic)
newListRoutingProfilesResponse ::
Prelude.Int ->
ListRoutingProfilesResponse
newListRoutingProfilesResponse :: Int -> ListRoutingProfilesResponse
newListRoutingProfilesResponse Int
pHttpStatus_ =
ListRoutingProfilesResponse' :: Maybe [RoutingProfileSummary]
-> Maybe Text -> Int -> ListRoutingProfilesResponse
ListRoutingProfilesResponse'
{ $sel:routingProfileSummaryList:ListRoutingProfilesResponse' :: Maybe [RoutingProfileSummary]
routingProfileSummaryList =
Maybe [RoutingProfileSummary]
forall a. Maybe a
Prelude.Nothing,
$sel:nextToken:ListRoutingProfilesResponse' :: Maybe Text
nextToken = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:ListRoutingProfilesResponse' :: Int
httpStatus = Int
pHttpStatus_
}
listRoutingProfilesResponse_routingProfileSummaryList :: Lens.Lens' ListRoutingProfilesResponse (Prelude.Maybe [RoutingProfileSummary])
listRoutingProfilesResponse_routingProfileSummaryList :: (Maybe [RoutingProfileSummary]
-> f (Maybe [RoutingProfileSummary]))
-> ListRoutingProfilesResponse -> f ListRoutingProfilesResponse
listRoutingProfilesResponse_routingProfileSummaryList = (ListRoutingProfilesResponse -> Maybe [RoutingProfileSummary])
-> (ListRoutingProfilesResponse
-> Maybe [RoutingProfileSummary] -> ListRoutingProfilesResponse)
-> Lens'
ListRoutingProfilesResponse (Maybe [RoutingProfileSummary])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListRoutingProfilesResponse' {Maybe [RoutingProfileSummary]
routingProfileSummaryList :: Maybe [RoutingProfileSummary]
$sel:routingProfileSummaryList:ListRoutingProfilesResponse' :: ListRoutingProfilesResponse -> Maybe [RoutingProfileSummary]
routingProfileSummaryList} -> Maybe [RoutingProfileSummary]
routingProfileSummaryList) (\s :: ListRoutingProfilesResponse
s@ListRoutingProfilesResponse' {} Maybe [RoutingProfileSummary]
a -> ListRoutingProfilesResponse
s {$sel:routingProfileSummaryList:ListRoutingProfilesResponse' :: Maybe [RoutingProfileSummary]
routingProfileSummaryList = Maybe [RoutingProfileSummary]
a} :: ListRoutingProfilesResponse) ((Maybe [RoutingProfileSummary]
-> f (Maybe [RoutingProfileSummary]))
-> ListRoutingProfilesResponse -> f ListRoutingProfilesResponse)
-> ((Maybe [RoutingProfileSummary]
-> f (Maybe [RoutingProfileSummary]))
-> Maybe [RoutingProfileSummary]
-> f (Maybe [RoutingProfileSummary]))
-> (Maybe [RoutingProfileSummary]
-> f (Maybe [RoutingProfileSummary]))
-> ListRoutingProfilesResponse
-> f ListRoutingProfilesResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
[RoutingProfileSummary]
[RoutingProfileSummary]
[RoutingProfileSummary]
[RoutingProfileSummary]
-> Iso
(Maybe [RoutingProfileSummary])
(Maybe [RoutingProfileSummary])
(Maybe [RoutingProfileSummary])
(Maybe [RoutingProfileSummary])
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
[RoutingProfileSummary]
[RoutingProfileSummary]
[RoutingProfileSummary]
[RoutingProfileSummary]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
listRoutingProfilesResponse_nextToken :: Lens.Lens' ListRoutingProfilesResponse (Prelude.Maybe Prelude.Text)
listRoutingProfilesResponse_nextToken :: (Maybe Text -> f (Maybe Text))
-> ListRoutingProfilesResponse -> f ListRoutingProfilesResponse
listRoutingProfilesResponse_nextToken = (ListRoutingProfilesResponse -> Maybe Text)
-> (ListRoutingProfilesResponse
-> Maybe Text -> ListRoutingProfilesResponse)
-> Lens' ListRoutingProfilesResponse (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListRoutingProfilesResponse' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListRoutingProfilesResponse' :: ListRoutingProfilesResponse -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListRoutingProfilesResponse
s@ListRoutingProfilesResponse' {} Maybe Text
a -> ListRoutingProfilesResponse
s {$sel:nextToken:ListRoutingProfilesResponse' :: Maybe Text
nextToken = Maybe Text
a} :: ListRoutingProfilesResponse)
listRoutingProfilesResponse_httpStatus :: Lens.Lens' ListRoutingProfilesResponse Prelude.Int
listRoutingProfilesResponse_httpStatus :: (Int -> f Int)
-> ListRoutingProfilesResponse -> f ListRoutingProfilesResponse
listRoutingProfilesResponse_httpStatus = (ListRoutingProfilesResponse -> Int)
-> (ListRoutingProfilesResponse
-> Int -> ListRoutingProfilesResponse)
-> Lens
ListRoutingProfilesResponse ListRoutingProfilesResponse Int Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListRoutingProfilesResponse' {Int
httpStatus :: Int
$sel:httpStatus:ListRoutingProfilesResponse' :: ListRoutingProfilesResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: ListRoutingProfilesResponse
s@ListRoutingProfilesResponse' {} Int
a -> ListRoutingProfilesResponse
s {$sel:httpStatus:ListRoutingProfilesResponse' :: Int
httpStatus = Int
a} :: ListRoutingProfilesResponse)
instance Prelude.NFData ListRoutingProfilesResponse