{-# 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.ChimeSDKMessaging.ListChannelFlows
-- Copyright   : (c) 2013-2021 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com>
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
--
-- Returns a paginated lists of all the channel flows created under a
-- single Chime. This is a developer API.
module Amazonka.ChimeSDKMessaging.ListChannelFlows
  ( -- * Creating a Request
    ListChannelFlows (..),
    newListChannelFlows,

    -- * Request Lenses
    listChannelFlows_nextToken,
    listChannelFlows_maxResults,
    listChannelFlows_appInstanceArn,

    -- * Destructuring the Response
    ListChannelFlowsResponse (..),
    newListChannelFlowsResponse,

    -- * Response Lenses
    listChannelFlowsResponse_channelFlows,
    listChannelFlowsResponse_nextToken,
    listChannelFlowsResponse_httpStatus,
  )
where

import Amazonka.ChimeSDKMessaging.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

-- | /See:/ 'newListChannelFlows' smart constructor.
data ListChannelFlows = ListChannelFlows'
  { -- | The token passed by previous API calls until all requested channel flows
    -- are returned.
    ListChannelFlows -> Maybe (Sensitive Text)
nextToken :: Prelude.Maybe (Core.Sensitive Prelude.Text),
    -- | The maximum number of channel flows that you want to return.
    ListChannelFlows -> Maybe Natural
maxResults :: Prelude.Maybe Prelude.Natural,
    -- | The ARN of the app instance.
    ListChannelFlows -> Text
appInstanceArn :: Prelude.Text
  }
  deriving (ListChannelFlows -> ListChannelFlows -> Bool
(ListChannelFlows -> ListChannelFlows -> Bool)
-> (ListChannelFlows -> ListChannelFlows -> Bool)
-> Eq ListChannelFlows
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListChannelFlows -> ListChannelFlows -> Bool
$c/= :: ListChannelFlows -> ListChannelFlows -> Bool
== :: ListChannelFlows -> ListChannelFlows -> Bool
$c== :: ListChannelFlows -> ListChannelFlows -> Bool
Prelude.Eq, Int -> ListChannelFlows -> ShowS
[ListChannelFlows] -> ShowS
ListChannelFlows -> String
(Int -> ListChannelFlows -> ShowS)
-> (ListChannelFlows -> String)
-> ([ListChannelFlows] -> ShowS)
-> Show ListChannelFlows
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListChannelFlows] -> ShowS
$cshowList :: [ListChannelFlows] -> ShowS
show :: ListChannelFlows -> String
$cshow :: ListChannelFlows -> String
showsPrec :: Int -> ListChannelFlows -> ShowS
$cshowsPrec :: Int -> ListChannelFlows -> ShowS
Prelude.Show, (forall x. ListChannelFlows -> Rep ListChannelFlows x)
-> (forall x. Rep ListChannelFlows x -> ListChannelFlows)
-> Generic ListChannelFlows
forall x. Rep ListChannelFlows x -> ListChannelFlows
forall x. ListChannelFlows -> Rep ListChannelFlows x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ListChannelFlows x -> ListChannelFlows
$cfrom :: forall x. ListChannelFlows -> Rep ListChannelFlows x
Prelude.Generic)

-- |
-- Create a value of 'ListChannelFlows' 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', 'listChannelFlows_nextToken' - The token passed by previous API calls until all requested channel flows
-- are returned.
--
-- 'maxResults', 'listChannelFlows_maxResults' - The maximum number of channel flows that you want to return.
--
-- 'appInstanceArn', 'listChannelFlows_appInstanceArn' - The ARN of the app instance.
newListChannelFlows ::
  -- | 'appInstanceArn'
  Prelude.Text ->
  ListChannelFlows
newListChannelFlows :: Text -> ListChannelFlows
newListChannelFlows Text
pAppInstanceArn_ =
  ListChannelFlows' :: Maybe (Sensitive Text) -> Maybe Natural -> Text -> ListChannelFlows
ListChannelFlows'
    { $sel:nextToken:ListChannelFlows' :: Maybe (Sensitive Text)
nextToken = Maybe (Sensitive Text)
forall a. Maybe a
Prelude.Nothing,
      $sel:maxResults:ListChannelFlows' :: Maybe Natural
maxResults = Maybe Natural
forall a. Maybe a
Prelude.Nothing,
      $sel:appInstanceArn:ListChannelFlows' :: Text
appInstanceArn = Text
pAppInstanceArn_
    }

-- | The token passed by previous API calls until all requested channel flows
-- are returned.
listChannelFlows_nextToken :: Lens.Lens' ListChannelFlows (Prelude.Maybe Prelude.Text)
listChannelFlows_nextToken :: (Maybe Text -> f (Maybe Text))
-> ListChannelFlows -> f ListChannelFlows
listChannelFlows_nextToken = (ListChannelFlows -> Maybe (Sensitive Text))
-> (ListChannelFlows -> Maybe (Sensitive Text) -> ListChannelFlows)
-> Lens
     ListChannelFlows
     ListChannelFlows
     (Maybe (Sensitive Text))
     (Maybe (Sensitive Text))
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListChannelFlows' {Maybe (Sensitive Text)
nextToken :: Maybe (Sensitive Text)
$sel:nextToken:ListChannelFlows' :: ListChannelFlows -> Maybe (Sensitive Text)
nextToken} -> Maybe (Sensitive Text)
nextToken) (\s :: ListChannelFlows
s@ListChannelFlows' {} Maybe (Sensitive Text)
a -> ListChannelFlows
s {$sel:nextToken:ListChannelFlows' :: Maybe (Sensitive Text)
nextToken = Maybe (Sensitive Text)
a} :: ListChannelFlows) ((Maybe (Sensitive Text) -> f (Maybe (Sensitive Text)))
 -> ListChannelFlows -> f ListChannelFlows)
-> ((Maybe Text -> f (Maybe Text))
    -> Maybe (Sensitive Text) -> f (Maybe (Sensitive Text)))
-> (Maybe Text -> f (Maybe Text))
-> ListChannelFlows
-> f ListChannelFlows
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso (Sensitive Text) (Sensitive Text) Text Text
-> Iso
     (Maybe (Sensitive Text))
     (Maybe (Sensitive Text))
     (Maybe Text)
     (Maybe Text)
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 (Sensitive Text) (Sensitive Text) Text Text
forall a. Iso' (Sensitive a) a
Core._Sensitive

-- | The maximum number of channel flows that you want to return.
listChannelFlows_maxResults :: Lens.Lens' ListChannelFlows (Prelude.Maybe Prelude.Natural)
listChannelFlows_maxResults :: (Maybe Natural -> f (Maybe Natural))
-> ListChannelFlows -> f ListChannelFlows
listChannelFlows_maxResults = (ListChannelFlows -> Maybe Natural)
-> (ListChannelFlows -> Maybe Natural -> ListChannelFlows)
-> Lens
     ListChannelFlows ListChannelFlows (Maybe Natural) (Maybe Natural)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListChannelFlows' {Maybe Natural
maxResults :: Maybe Natural
$sel:maxResults:ListChannelFlows' :: ListChannelFlows -> Maybe Natural
maxResults} -> Maybe Natural
maxResults) (\s :: ListChannelFlows
s@ListChannelFlows' {} Maybe Natural
a -> ListChannelFlows
s {$sel:maxResults:ListChannelFlows' :: Maybe Natural
maxResults = Maybe Natural
a} :: ListChannelFlows)

-- | The ARN of the app instance.
listChannelFlows_appInstanceArn :: Lens.Lens' ListChannelFlows Prelude.Text
listChannelFlows_appInstanceArn :: (Text -> f Text) -> ListChannelFlows -> f ListChannelFlows
listChannelFlows_appInstanceArn = (ListChannelFlows -> Text)
-> (ListChannelFlows -> Text -> ListChannelFlows)
-> Lens ListChannelFlows ListChannelFlows Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListChannelFlows' {Text
appInstanceArn :: Text
$sel:appInstanceArn:ListChannelFlows' :: ListChannelFlows -> Text
appInstanceArn} -> Text
appInstanceArn) (\s :: ListChannelFlows
s@ListChannelFlows' {} Text
a -> ListChannelFlows
s {$sel:appInstanceArn:ListChannelFlows' :: Text
appInstanceArn = Text
a} :: ListChannelFlows)

instance Core.AWSRequest ListChannelFlows where
  type
    AWSResponse ListChannelFlows =
      ListChannelFlowsResponse
  request :: ListChannelFlows -> Request ListChannelFlows
request = Service -> ListChannelFlows -> Request ListChannelFlows
forall a. ToRequest a => Service -> a -> Request a
Request.get Service
defaultService
  response :: Logger
-> Service
-> Proxy ListChannelFlows
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse ListChannelFlows)))
response =
    (Int
 -> ResponseHeaders
 -> Object
 -> Either String (AWSResponse ListChannelFlows))
-> Logger
-> Service
-> Proxy ListChannelFlows
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse ListChannelFlows)))
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 [ChannelFlowSummary]
-> Maybe (Sensitive Text) -> Int -> ListChannelFlowsResponse
ListChannelFlowsResponse'
            (Maybe [ChannelFlowSummary]
 -> Maybe (Sensitive Text) -> Int -> ListChannelFlowsResponse)
-> Either String (Maybe [ChannelFlowSummary])
-> Either
     String (Maybe (Sensitive Text) -> Int -> ListChannelFlowsResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object
-> Text -> Either String (Maybe (Maybe [ChannelFlowSummary]))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"ChannelFlows" Either String (Maybe (Maybe [ChannelFlowSummary]))
-> Maybe [ChannelFlowSummary]
-> Either String (Maybe [ChannelFlowSummary])
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ Maybe [ChannelFlowSummary]
forall a. Monoid a => a
Prelude.mempty)
            Either
  String (Maybe (Sensitive Text) -> Int -> ListChannelFlowsResponse)
-> Either String (Maybe (Sensitive Text))
-> Either String (Int -> ListChannelFlowsResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe (Sensitive Text))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"NextToken")
            Either String (Int -> ListChannelFlowsResponse)
-> Either String Int -> Either String ListChannelFlowsResponse
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 ListChannelFlows

instance Prelude.NFData ListChannelFlows

instance Core.ToHeaders ListChannelFlows where
  toHeaders :: ListChannelFlows -> ResponseHeaders
toHeaders = ResponseHeaders -> ListChannelFlows -> ResponseHeaders
forall a b. a -> b -> a
Prelude.const ResponseHeaders
forall a. Monoid a => a
Prelude.mempty

instance Core.ToPath ListChannelFlows where
  toPath :: ListChannelFlows -> ByteString
toPath = ByteString -> ListChannelFlows -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/channel-flows"

instance Core.ToQuery ListChannelFlows where
  toQuery :: ListChannelFlows -> QueryString
toQuery ListChannelFlows' {Maybe Natural
Maybe (Sensitive Text)
Text
appInstanceArn :: Text
maxResults :: Maybe Natural
nextToken :: Maybe (Sensitive Text)
$sel:appInstanceArn:ListChannelFlows' :: ListChannelFlows -> Text
$sel:maxResults:ListChannelFlows' :: ListChannelFlows -> Maybe Natural
$sel:nextToken:ListChannelFlows' :: ListChannelFlows -> Maybe (Sensitive Text)
..} =
    [QueryString] -> QueryString
forall a. Monoid a => [a] -> a
Prelude.mconcat
      [ ByteString
"next-token" ByteString -> Maybe (Sensitive Text) -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe (Sensitive Text)
nextToken,
        ByteString
"max-results" ByteString -> Maybe Natural -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Natural
maxResults,
        ByteString
"app-instance-arn" ByteString -> Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Text
appInstanceArn
      ]

-- | /See:/ 'newListChannelFlowsResponse' smart constructor.
data ListChannelFlowsResponse = ListChannelFlowsResponse'
  { -- | The information about each channel flow.
    ListChannelFlowsResponse -> Maybe [ChannelFlowSummary]
channelFlows :: Prelude.Maybe [ChannelFlowSummary],
    -- | The token passed by previous API calls until all requested channels are
    -- returned.
    ListChannelFlowsResponse -> Maybe (Sensitive Text)
nextToken :: Prelude.Maybe (Core.Sensitive Prelude.Text),
    -- | The response's http status code.
    ListChannelFlowsResponse -> Int
httpStatus :: Prelude.Int
  }
  deriving (ListChannelFlowsResponse -> ListChannelFlowsResponse -> Bool
(ListChannelFlowsResponse -> ListChannelFlowsResponse -> Bool)
-> (ListChannelFlowsResponse -> ListChannelFlowsResponse -> Bool)
-> Eq ListChannelFlowsResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListChannelFlowsResponse -> ListChannelFlowsResponse -> Bool
$c/= :: ListChannelFlowsResponse -> ListChannelFlowsResponse -> Bool
== :: ListChannelFlowsResponse -> ListChannelFlowsResponse -> Bool
$c== :: ListChannelFlowsResponse -> ListChannelFlowsResponse -> Bool
Prelude.Eq, Int -> ListChannelFlowsResponse -> ShowS
[ListChannelFlowsResponse] -> ShowS
ListChannelFlowsResponse -> String
(Int -> ListChannelFlowsResponse -> ShowS)
-> (ListChannelFlowsResponse -> String)
-> ([ListChannelFlowsResponse] -> ShowS)
-> Show ListChannelFlowsResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListChannelFlowsResponse] -> ShowS
$cshowList :: [ListChannelFlowsResponse] -> ShowS
show :: ListChannelFlowsResponse -> String
$cshow :: ListChannelFlowsResponse -> String
showsPrec :: Int -> ListChannelFlowsResponse -> ShowS
$cshowsPrec :: Int -> ListChannelFlowsResponse -> ShowS
Prelude.Show, (forall x.
 ListChannelFlowsResponse -> Rep ListChannelFlowsResponse x)
-> (forall x.
    Rep ListChannelFlowsResponse x -> ListChannelFlowsResponse)
-> Generic ListChannelFlowsResponse
forall x.
Rep ListChannelFlowsResponse x -> ListChannelFlowsResponse
forall x.
ListChannelFlowsResponse -> Rep ListChannelFlowsResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ListChannelFlowsResponse x -> ListChannelFlowsResponse
$cfrom :: forall x.
ListChannelFlowsResponse -> Rep ListChannelFlowsResponse x
Prelude.Generic)

-- |
-- Create a value of 'ListChannelFlowsResponse' 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:
--
-- 'channelFlows', 'listChannelFlowsResponse_channelFlows' - The information about each channel flow.
--
-- 'nextToken', 'listChannelFlowsResponse_nextToken' - The token passed by previous API calls until all requested channels are
-- returned.
--
-- 'httpStatus', 'listChannelFlowsResponse_httpStatus' - The response's http status code.
newListChannelFlowsResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  ListChannelFlowsResponse
newListChannelFlowsResponse :: Int -> ListChannelFlowsResponse
newListChannelFlowsResponse Int
pHttpStatus_ =
  ListChannelFlowsResponse' :: Maybe [ChannelFlowSummary]
-> Maybe (Sensitive Text) -> Int -> ListChannelFlowsResponse
ListChannelFlowsResponse'
    { $sel:channelFlows:ListChannelFlowsResponse' :: Maybe [ChannelFlowSummary]
channelFlows =
        Maybe [ChannelFlowSummary]
forall a. Maybe a
Prelude.Nothing,
      $sel:nextToken:ListChannelFlowsResponse' :: Maybe (Sensitive Text)
nextToken = Maybe (Sensitive Text)
forall a. Maybe a
Prelude.Nothing,
      $sel:httpStatus:ListChannelFlowsResponse' :: Int
httpStatus = Int
pHttpStatus_
    }

-- | The information about each channel flow.
listChannelFlowsResponse_channelFlows :: Lens.Lens' ListChannelFlowsResponse (Prelude.Maybe [ChannelFlowSummary])
listChannelFlowsResponse_channelFlows :: (Maybe [ChannelFlowSummary] -> f (Maybe [ChannelFlowSummary]))
-> ListChannelFlowsResponse -> f ListChannelFlowsResponse
listChannelFlowsResponse_channelFlows = (ListChannelFlowsResponse -> Maybe [ChannelFlowSummary])
-> (ListChannelFlowsResponse
    -> Maybe [ChannelFlowSummary] -> ListChannelFlowsResponse)
-> Lens
     ListChannelFlowsResponse
     ListChannelFlowsResponse
     (Maybe [ChannelFlowSummary])
     (Maybe [ChannelFlowSummary])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListChannelFlowsResponse' {Maybe [ChannelFlowSummary]
channelFlows :: Maybe [ChannelFlowSummary]
$sel:channelFlows:ListChannelFlowsResponse' :: ListChannelFlowsResponse -> Maybe [ChannelFlowSummary]
channelFlows} -> Maybe [ChannelFlowSummary]
channelFlows) (\s :: ListChannelFlowsResponse
s@ListChannelFlowsResponse' {} Maybe [ChannelFlowSummary]
a -> ListChannelFlowsResponse
s {$sel:channelFlows:ListChannelFlowsResponse' :: Maybe [ChannelFlowSummary]
channelFlows = Maybe [ChannelFlowSummary]
a} :: ListChannelFlowsResponse) ((Maybe [ChannelFlowSummary] -> f (Maybe [ChannelFlowSummary]))
 -> ListChannelFlowsResponse -> f ListChannelFlowsResponse)
-> ((Maybe [ChannelFlowSummary] -> f (Maybe [ChannelFlowSummary]))
    -> Maybe [ChannelFlowSummary] -> f (Maybe [ChannelFlowSummary]))
-> (Maybe [ChannelFlowSummary] -> f (Maybe [ChannelFlowSummary]))
-> ListChannelFlowsResponse
-> f ListChannelFlowsResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
  [ChannelFlowSummary]
  [ChannelFlowSummary]
  [ChannelFlowSummary]
  [ChannelFlowSummary]
-> Iso
     (Maybe [ChannelFlowSummary])
     (Maybe [ChannelFlowSummary])
     (Maybe [ChannelFlowSummary])
     (Maybe [ChannelFlowSummary])
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
  [ChannelFlowSummary]
  [ChannelFlowSummary]
  [ChannelFlowSummary]
  [ChannelFlowSummary]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

-- | The token passed by previous API calls until all requested channels are
-- returned.
listChannelFlowsResponse_nextToken :: Lens.Lens' ListChannelFlowsResponse (Prelude.Maybe Prelude.Text)
listChannelFlowsResponse_nextToken :: (Maybe Text -> f (Maybe Text))
-> ListChannelFlowsResponse -> f ListChannelFlowsResponse
listChannelFlowsResponse_nextToken = (ListChannelFlowsResponse -> Maybe (Sensitive Text))
-> (ListChannelFlowsResponse
    -> Maybe (Sensitive Text) -> ListChannelFlowsResponse)
-> Lens
     ListChannelFlowsResponse
     ListChannelFlowsResponse
     (Maybe (Sensitive Text))
     (Maybe (Sensitive Text))
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListChannelFlowsResponse' {Maybe (Sensitive Text)
nextToken :: Maybe (Sensitive Text)
$sel:nextToken:ListChannelFlowsResponse' :: ListChannelFlowsResponse -> Maybe (Sensitive Text)
nextToken} -> Maybe (Sensitive Text)
nextToken) (\s :: ListChannelFlowsResponse
s@ListChannelFlowsResponse' {} Maybe (Sensitive Text)
a -> ListChannelFlowsResponse
s {$sel:nextToken:ListChannelFlowsResponse' :: Maybe (Sensitive Text)
nextToken = Maybe (Sensitive Text)
a} :: ListChannelFlowsResponse) ((Maybe (Sensitive Text) -> f (Maybe (Sensitive Text)))
 -> ListChannelFlowsResponse -> f ListChannelFlowsResponse)
-> ((Maybe Text -> f (Maybe Text))
    -> Maybe (Sensitive Text) -> f (Maybe (Sensitive Text)))
-> (Maybe Text -> f (Maybe Text))
-> ListChannelFlowsResponse
-> f ListChannelFlowsResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso (Sensitive Text) (Sensitive Text) Text Text
-> Iso
     (Maybe (Sensitive Text))
     (Maybe (Sensitive Text))
     (Maybe Text)
     (Maybe Text)
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 (Sensitive Text) (Sensitive Text) Text Text
forall a. Iso' (Sensitive a) a
Core._Sensitive

-- | The response's http status code.
listChannelFlowsResponse_httpStatus :: Lens.Lens' ListChannelFlowsResponse Prelude.Int
listChannelFlowsResponse_httpStatus :: (Int -> f Int)
-> ListChannelFlowsResponse -> f ListChannelFlowsResponse
listChannelFlowsResponse_httpStatus = (ListChannelFlowsResponse -> Int)
-> (ListChannelFlowsResponse -> Int -> ListChannelFlowsResponse)
-> Lens ListChannelFlowsResponse ListChannelFlowsResponse Int Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListChannelFlowsResponse' {Int
httpStatus :: Int
$sel:httpStatus:ListChannelFlowsResponse' :: ListChannelFlowsResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: ListChannelFlowsResponse
s@ListChannelFlowsResponse' {} Int
a -> ListChannelFlowsResponse
s {$sel:httpStatus:ListChannelFlowsResponse' :: Int
httpStatus = Int
a} :: ListChannelFlowsResponse)

instance Prelude.NFData ListChannelFlowsResponse