{-# 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 #-}

-- Derived from AWS service descriptions, licensed under Apache 2.0.

-- |
-- Module      : Amazonka.Connect.ListRoutingProfiles
-- Copyright   : (c) 2013-2023 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
--
-- Provides summary information about the routing profiles for the
-- specified Amazon Connect instance.
--
-- For more information about routing profiles, see
-- <https://docs.aws.amazon.com/connect/latest/adminguide/concepts-routing.html Routing Profiles>
-- and
-- <https://docs.aws.amazon.com/connect/latest/adminguide/routing-profiles.html Create a Routing Profile>
-- in the /Amazon Connect Administrator Guide/.
--
-- This operation returns paginated results.
module Amazonka.Connect.ListRoutingProfiles
  ( -- * Creating a Request
    ListRoutingProfiles (..),
    newListRoutingProfiles,

    -- * Request Lenses
    listRoutingProfiles_maxResults,
    listRoutingProfiles_nextToken,
    listRoutingProfiles_instanceId,

    -- * Destructuring the Response
    ListRoutingProfilesResponse (..),
    newListRoutingProfilesResponse,

    -- * Response Lenses
    listRoutingProfilesResponse_nextToken,
    listRoutingProfilesResponse_routingProfileSummaryList,
    listRoutingProfilesResponse_httpStatus,
  )
where

import Amazonka.Connect.Types
import qualified Amazonka.Core as Core
import qualified Amazonka.Core.Lens.Internal as Lens
import qualified Amazonka.Data as Data
import qualified Amazonka.Prelude as Prelude
import qualified Amazonka.Request as Request
import qualified Amazonka.Response as Response

-- | /See:/ 'newListRoutingProfiles' smart constructor.
data ListRoutingProfiles = ListRoutingProfiles'
  { -- | The maximum number of results to return per page. The default MaxResult
    -- size is 100.
    ListRoutingProfiles -> Maybe Natural
maxResults :: Prelude.Maybe Prelude.Natural,
    -- | The token for the next set of results. Use the value returned in the
    -- previous response in the next request to retrieve the next set of
    -- results.
    ListRoutingProfiles -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
    -- | The identifier of the Amazon Connect instance. You can find the
    -- instanceId in the ARN of the instance.
    ListRoutingProfiles -> Text
instanceId :: Prelude.Text
  }
  deriving (ListRoutingProfiles -> ListRoutingProfiles -> Bool
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]
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
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. 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)

-- |
-- Create a value of 'ListRoutingProfiles' with all optional fields omitted.
--
-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.
--
-- The following record fields are available, with the corresponding lenses provided
-- for backwards compatibility:
--
-- 'maxResults', 'listRoutingProfiles_maxResults' - The maximum number of results to return per page. The default MaxResult
-- size is 100.
--
-- 'nextToken', 'listRoutingProfiles_nextToken' - The token for the next set of results. Use the value returned in the
-- previous response in the next request to retrieve the next set of
-- results.
--
-- 'instanceId', 'listRoutingProfiles_instanceId' - The identifier of the Amazon Connect instance. You can find the
-- instanceId in the ARN of the instance.
newListRoutingProfiles ::
  -- | 'instanceId'
  Prelude.Text ->
  ListRoutingProfiles
newListRoutingProfiles :: Text -> ListRoutingProfiles
newListRoutingProfiles Text
pInstanceId_ =
  ListRoutingProfiles'
    { $sel:maxResults:ListRoutingProfiles' :: Maybe Natural
maxResults = forall a. Maybe a
Prelude.Nothing,
      $sel:nextToken:ListRoutingProfiles' :: Maybe Text
nextToken = forall a. Maybe a
Prelude.Nothing,
      $sel:instanceId:ListRoutingProfiles' :: Text
instanceId = Text
pInstanceId_
    }

-- | The maximum number of results to return per page. The default MaxResult
-- size is 100.
listRoutingProfiles_maxResults :: Lens.Lens' ListRoutingProfiles (Prelude.Maybe Prelude.Natural)
listRoutingProfiles_maxResults :: Lens' ListRoutingProfiles (Maybe Natural)
listRoutingProfiles_maxResults = 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)

-- | The token for the next set of results. Use the value returned in the
-- previous response in the next request to retrieve the next set of
-- results.
listRoutingProfiles_nextToken :: Lens.Lens' ListRoutingProfiles (Prelude.Maybe Prelude.Text)
listRoutingProfiles_nextToken :: Lens' ListRoutingProfiles (Maybe Text)
listRoutingProfiles_nextToken = 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)

-- | The identifier of the Amazon Connect instance. You can find the
-- instanceId in the ARN of the instance.
listRoutingProfiles_instanceId :: Lens.Lens' ListRoutingProfiles Prelude.Text
listRoutingProfiles_instanceId :: Lens' ListRoutingProfiles Text
listRoutingProfiles_instanceId = 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
    | forall a. AWSTruncated a => a -> Bool
Core.stop
        ( AWSResponse ListRoutingProfiles
rs
            forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? Lens' ListRoutingProfilesResponse (Maybe Text)
listRoutingProfilesResponse_nextToken
            forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall a b. Prism (Maybe a) (Maybe b) a b
Lens._Just
        ) =
        forall a. Maybe a
Prelude.Nothing
    | forall a. AWSTruncated a => a -> Bool
Core.stop
        ( AWSResponse ListRoutingProfiles
rs
            forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? Lens' ListRoutingProfilesResponse (Maybe [RoutingProfileSummary])
listRoutingProfilesResponse_routingProfileSummaryList
            forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall a b. Prism (Maybe a) (Maybe b) a b
Lens._Just
        ) =
        forall a. Maybe a
Prelude.Nothing
    | Bool
Prelude.otherwise =
        forall a. a -> Maybe a
Prelude.Just
          forall a b. (a -> b) -> a -> b
Prelude.$ ListRoutingProfiles
rq
          forall a b. a -> (a -> b) -> b
Prelude.& Lens' ListRoutingProfiles (Maybe Text)
listRoutingProfiles_nextToken
          forall s t a b. ASetter s t a b -> b -> s -> t
Lens..~ AWSResponse ListRoutingProfiles
rs
          forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? Lens' ListRoutingProfilesResponse (Maybe Text)
listRoutingProfilesResponse_nextToken
          forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall a b. Prism (Maybe a) (Maybe b) a b
Lens._Just

instance Core.AWSRequest ListRoutingProfiles where
  type
    AWSResponse ListRoutingProfiles =
      ListRoutingProfilesResponse
  request :: (Service -> Service)
-> ListRoutingProfiles -> Request ListRoutingProfiles
request Service -> Service
overrides =
    forall a. ToRequest a => Service -> a -> Request a
Request.get (Service -> Service
overrides Service
defaultService)
  response :: forall (m :: * -> *).
MonadResource m =>
(ByteStringLazy -> IO ByteStringLazy)
-> Service
-> Proxy ListRoutingProfiles
-> ClientResponse ClientBody
-> m (Either
        Error (ClientResponse (AWSResponse ListRoutingProfiles)))
response =
    forall (m :: * -> *) a.
MonadResource m =>
(Int -> ResponseHeaders -> Object -> Either String (AWSResponse a))
-> (ByteStringLazy -> IO ByteStringLazy)
-> Service
-> Proxy a
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse a)))
Response.receiveJSON
      ( \Int
s ResponseHeaders
h Object
x ->
          Maybe Text
-> Maybe [RoutingProfileSummary]
-> Int
-> ListRoutingProfilesResponse
ListRoutingProfilesResponse'
            forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"NextToken")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ( Object
x
                            forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"RoutingProfileSummaryList"
                            forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ forall a. Monoid a => a
Prelude.mempty
                        )
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure (forall a. Enum a => a -> Int
Prelude.fromEnum Int
s))
      )

instance Prelude.Hashable ListRoutingProfiles where
  hashWithSalt :: Int -> ListRoutingProfiles -> Int
hashWithSalt Int
_salt ListRoutingProfiles' {Maybe Natural
Maybe Text
Text
instanceId :: Text
nextToken :: Maybe Text
maxResults :: Maybe Natural
$sel:instanceId:ListRoutingProfiles' :: ListRoutingProfiles -> Text
$sel:nextToken:ListRoutingProfiles' :: ListRoutingProfiles -> Maybe Text
$sel:maxResults:ListRoutingProfiles' :: ListRoutingProfiles -> Maybe Natural
..} =
    Int
_salt
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Natural
maxResults
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
nextToken
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Text
instanceId

instance Prelude.NFData ListRoutingProfiles where
  rnf :: ListRoutingProfiles -> ()
rnf ListRoutingProfiles' {Maybe Natural
Maybe Text
Text
instanceId :: Text
nextToken :: Maybe Text
maxResults :: Maybe Natural
$sel:instanceId:ListRoutingProfiles' :: ListRoutingProfiles -> Text
$sel:nextToken:ListRoutingProfiles' :: ListRoutingProfiles -> Maybe Text
$sel:maxResults:ListRoutingProfiles' :: ListRoutingProfiles -> Maybe Natural
..} =
    forall a. NFData a => a -> ()
Prelude.rnf Maybe Natural
maxResults
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
nextToken
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Text
instanceId

instance Data.ToHeaders ListRoutingProfiles where
  toHeaders :: ListRoutingProfiles -> ResponseHeaders
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 -> ResponseHeaders
Data.=# ( ByteString
"application/x-amz-json-1.1" ::
                          Prelude.ByteString
                      )
          ]
      )

instance Data.ToPath ListRoutingProfiles where
  toPath :: ListRoutingProfiles -> ByteString
toPath ListRoutingProfiles' {Maybe Natural
Maybe Text
Text
instanceId :: Text
nextToken :: Maybe Text
maxResults :: Maybe Natural
$sel:instanceId:ListRoutingProfiles' :: ListRoutingProfiles -> Text
$sel:nextToken:ListRoutingProfiles' :: ListRoutingProfiles -> Maybe Text
$sel:maxResults:ListRoutingProfiles' :: ListRoutingProfiles -> Maybe Natural
..} =
    forall a. Monoid a => [a] -> a
Prelude.mconcat
      [ByteString
"/routing-profiles-summary/", forall a. ToByteString a => a -> ByteString
Data.toBS Text
instanceId]

instance Data.ToQuery ListRoutingProfiles where
  toQuery :: ListRoutingProfiles -> QueryString
toQuery ListRoutingProfiles' {Maybe Natural
Maybe Text
Text
instanceId :: Text
nextToken :: Maybe Text
maxResults :: Maybe Natural
$sel:instanceId:ListRoutingProfiles' :: ListRoutingProfiles -> Text
$sel:nextToken:ListRoutingProfiles' :: ListRoutingProfiles -> Maybe Text
$sel:maxResults:ListRoutingProfiles' :: ListRoutingProfiles -> Maybe Natural
..} =
    forall a. Monoid a => [a] -> a
Prelude.mconcat
      [ ByteString
"maxResults" forall a. ToQuery a => ByteString -> a -> QueryString
Data.=: Maybe Natural
maxResults,
        ByteString
"nextToken" forall a. ToQuery a => ByteString -> a -> QueryString
Data.=: Maybe Text
nextToken
      ]

-- | /See:/ 'newListRoutingProfilesResponse' smart constructor.
data ListRoutingProfilesResponse = ListRoutingProfilesResponse'
  { -- | If there are additional results, this is the token for the next set of
    -- results.
    ListRoutingProfilesResponse -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
    -- | Information about the routing profiles.
    ListRoutingProfilesResponse -> Maybe [RoutingProfileSummary]
routingProfileSummaryList :: Prelude.Maybe [RoutingProfileSummary],
    -- | The response's http status code.
    ListRoutingProfilesResponse -> Int
httpStatus :: Prelude.Int
  }
  deriving (ListRoutingProfilesResponse -> ListRoutingProfilesResponse -> Bool
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]
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
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.
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)

-- |
-- Create a value of 'ListRoutingProfilesResponse' with all optional fields omitted.
--
-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.
--
-- The following record fields are available, with the corresponding lenses provided
-- for backwards compatibility:
--
-- 'nextToken', 'listRoutingProfilesResponse_nextToken' - If there are additional results, this is the token for the next set of
-- results.
--
-- 'routingProfileSummaryList', 'listRoutingProfilesResponse_routingProfileSummaryList' - Information about the routing profiles.
--
-- 'httpStatus', 'listRoutingProfilesResponse_httpStatus' - The response's http status code.
newListRoutingProfilesResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  ListRoutingProfilesResponse
newListRoutingProfilesResponse :: Int -> ListRoutingProfilesResponse
newListRoutingProfilesResponse Int
pHttpStatus_ =
  ListRoutingProfilesResponse'
    { $sel:nextToken:ListRoutingProfilesResponse' :: Maybe Text
nextToken =
        forall a. Maybe a
Prelude.Nothing,
      $sel:routingProfileSummaryList:ListRoutingProfilesResponse' :: Maybe [RoutingProfileSummary]
routingProfileSummaryList = forall a. Maybe a
Prelude.Nothing,
      $sel:httpStatus:ListRoutingProfilesResponse' :: Int
httpStatus = Int
pHttpStatus_
    }

-- | If there are additional results, this is the token for the next set of
-- results.
listRoutingProfilesResponse_nextToken :: Lens.Lens' ListRoutingProfilesResponse (Prelude.Maybe Prelude.Text)
listRoutingProfilesResponse_nextToken :: Lens' ListRoutingProfilesResponse (Maybe Text)
listRoutingProfilesResponse_nextToken = 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)

-- | Information about the routing profiles.
listRoutingProfilesResponse_routingProfileSummaryList :: Lens.Lens' ListRoutingProfilesResponse (Prelude.Maybe [RoutingProfileSummary])
listRoutingProfilesResponse_routingProfileSummaryList :: Lens' ListRoutingProfilesResponse (Maybe [RoutingProfileSummary])
listRoutingProfilesResponse_routingProfileSummaryList = 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) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. 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 forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

-- | The response's http status code.
listRoutingProfilesResponse_httpStatus :: Lens.Lens' ListRoutingProfilesResponse Prelude.Int
listRoutingProfilesResponse_httpStatus :: Lens' ListRoutingProfilesResponse Int
listRoutingProfilesResponse_httpStatus = 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 where
  rnf :: ListRoutingProfilesResponse -> ()
rnf ListRoutingProfilesResponse' {Int
Maybe [RoutingProfileSummary]
Maybe Text
httpStatus :: Int
routingProfileSummaryList :: Maybe [RoutingProfileSummary]
nextToken :: Maybe Text
$sel:httpStatus:ListRoutingProfilesResponse' :: ListRoutingProfilesResponse -> Int
$sel:routingProfileSummaryList:ListRoutingProfilesResponse' :: ListRoutingProfilesResponse -> Maybe [RoutingProfileSummary]
$sel:nextToken:ListRoutingProfilesResponse' :: ListRoutingProfilesResponse -> Maybe Text
..} =
    forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
nextToken
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe [RoutingProfileSummary]
routingProfileSummaryList
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Int
httpStatus