{-# 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.Route53RecoveryControlConfig.ListRoutingControls
-- 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 an array of routing controls for a control panel. A routing
-- control is an Amazon Route 53 Application Recovery Controller construct
-- that has one of two states: ON and OFF. You can map the routing control
-- state to the state of an Amazon Route 53 health check, which can be used
-- to control routing.
module Amazonka.Route53RecoveryControlConfig.ListRoutingControls
  ( -- * Creating a Request
    ListRoutingControls (..),
    newListRoutingControls,

    -- * Request Lenses
    listRoutingControls_nextToken,
    listRoutingControls_maxResults,
    listRoutingControls_controlPanelArn,

    -- * Destructuring the Response
    ListRoutingControlsResponse (..),
    newListRoutingControlsResponse,

    -- * Response Lenses
    listRoutingControlsResponse_nextToken,
    listRoutingControlsResponse_routingControls,
    listRoutingControlsResponse_httpStatus,
  )
where

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
import Amazonka.Route53RecoveryControlConfig.Types

-- | /See:/ 'newListRoutingControls' smart constructor.
data ListRoutingControls = ListRoutingControls'
  { -- | The token that identifies which batch of results you want to see.
    ListRoutingControls -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
    -- | The number of objects that you want to return with this call.
    ListRoutingControls -> Maybe Natural
maxResults :: Prelude.Maybe Prelude.Natural,
    -- | The Amazon Resource Name (ARN) of the control panel that you\'re getting
    -- routing control details for.
    ListRoutingControls -> Text
controlPanelArn :: Prelude.Text
  }
  deriving (ListRoutingControls -> ListRoutingControls -> Bool
(ListRoutingControls -> ListRoutingControls -> Bool)
-> (ListRoutingControls -> ListRoutingControls -> Bool)
-> Eq ListRoutingControls
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListRoutingControls -> ListRoutingControls -> Bool
$c/= :: ListRoutingControls -> ListRoutingControls -> Bool
== :: ListRoutingControls -> ListRoutingControls -> Bool
$c== :: ListRoutingControls -> ListRoutingControls -> Bool
Prelude.Eq, ReadPrec [ListRoutingControls]
ReadPrec ListRoutingControls
Int -> ReadS ListRoutingControls
ReadS [ListRoutingControls]
(Int -> ReadS ListRoutingControls)
-> ReadS [ListRoutingControls]
-> ReadPrec ListRoutingControls
-> ReadPrec [ListRoutingControls]
-> Read ListRoutingControls
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListRoutingControls]
$creadListPrec :: ReadPrec [ListRoutingControls]
readPrec :: ReadPrec ListRoutingControls
$creadPrec :: ReadPrec ListRoutingControls
readList :: ReadS [ListRoutingControls]
$creadList :: ReadS [ListRoutingControls]
readsPrec :: Int -> ReadS ListRoutingControls
$creadsPrec :: Int -> ReadS ListRoutingControls
Prelude.Read, Int -> ListRoutingControls -> ShowS
[ListRoutingControls] -> ShowS
ListRoutingControls -> String
(Int -> ListRoutingControls -> ShowS)
-> (ListRoutingControls -> String)
-> ([ListRoutingControls] -> ShowS)
-> Show ListRoutingControls
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListRoutingControls] -> ShowS
$cshowList :: [ListRoutingControls] -> ShowS
show :: ListRoutingControls -> String
$cshow :: ListRoutingControls -> String
showsPrec :: Int -> ListRoutingControls -> ShowS
$cshowsPrec :: Int -> ListRoutingControls -> ShowS
Prelude.Show, (forall x. ListRoutingControls -> Rep ListRoutingControls x)
-> (forall x. Rep ListRoutingControls x -> ListRoutingControls)
-> Generic ListRoutingControls
forall x. Rep ListRoutingControls x -> ListRoutingControls
forall x. ListRoutingControls -> Rep ListRoutingControls x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ListRoutingControls x -> ListRoutingControls
$cfrom :: forall x. ListRoutingControls -> Rep ListRoutingControls x
Prelude.Generic)

-- |
-- Create a value of 'ListRoutingControls' 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', 'listRoutingControls_nextToken' - The token that identifies which batch of results you want to see.
--
-- 'maxResults', 'listRoutingControls_maxResults' - The number of objects that you want to return with this call.
--
-- 'controlPanelArn', 'listRoutingControls_controlPanelArn' - The Amazon Resource Name (ARN) of the control panel that you\'re getting
-- routing control details for.
newListRoutingControls ::
  -- | 'controlPanelArn'
  Prelude.Text ->
  ListRoutingControls
newListRoutingControls :: Text -> ListRoutingControls
newListRoutingControls Text
pControlPanelArn_ =
  ListRoutingControls' :: Maybe Text -> Maybe Natural -> Text -> ListRoutingControls
ListRoutingControls'
    { $sel:nextToken:ListRoutingControls' :: Maybe Text
nextToken = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:maxResults:ListRoutingControls' :: Maybe Natural
maxResults = Maybe Natural
forall a. Maybe a
Prelude.Nothing,
      $sel:controlPanelArn:ListRoutingControls' :: Text
controlPanelArn = Text
pControlPanelArn_
    }

-- | The token that identifies which batch of results you want to see.
listRoutingControls_nextToken :: Lens.Lens' ListRoutingControls (Prelude.Maybe Prelude.Text)
listRoutingControls_nextToken :: (Maybe Text -> f (Maybe Text))
-> ListRoutingControls -> f ListRoutingControls
listRoutingControls_nextToken = (ListRoutingControls -> Maybe Text)
-> (ListRoutingControls -> Maybe Text -> ListRoutingControls)
-> Lens
     ListRoutingControls ListRoutingControls (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListRoutingControls' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListRoutingControls' :: ListRoutingControls -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListRoutingControls
s@ListRoutingControls' {} Maybe Text
a -> ListRoutingControls
s {$sel:nextToken:ListRoutingControls' :: Maybe Text
nextToken = Maybe Text
a} :: ListRoutingControls)

-- | The number of objects that you want to return with this call.
listRoutingControls_maxResults :: Lens.Lens' ListRoutingControls (Prelude.Maybe Prelude.Natural)
listRoutingControls_maxResults :: (Maybe Natural -> f (Maybe Natural))
-> ListRoutingControls -> f ListRoutingControls
listRoutingControls_maxResults = (ListRoutingControls -> Maybe Natural)
-> (ListRoutingControls -> Maybe Natural -> ListRoutingControls)
-> Lens
     ListRoutingControls
     ListRoutingControls
     (Maybe Natural)
     (Maybe Natural)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListRoutingControls' {Maybe Natural
maxResults :: Maybe Natural
$sel:maxResults:ListRoutingControls' :: ListRoutingControls -> Maybe Natural
maxResults} -> Maybe Natural
maxResults) (\s :: ListRoutingControls
s@ListRoutingControls' {} Maybe Natural
a -> ListRoutingControls
s {$sel:maxResults:ListRoutingControls' :: Maybe Natural
maxResults = Maybe Natural
a} :: ListRoutingControls)

-- | The Amazon Resource Name (ARN) of the control panel that you\'re getting
-- routing control details for.
listRoutingControls_controlPanelArn :: Lens.Lens' ListRoutingControls Prelude.Text
listRoutingControls_controlPanelArn :: (Text -> f Text) -> ListRoutingControls -> f ListRoutingControls
listRoutingControls_controlPanelArn = (ListRoutingControls -> Text)
-> (ListRoutingControls -> Text -> ListRoutingControls)
-> Lens ListRoutingControls ListRoutingControls Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListRoutingControls' {Text
controlPanelArn :: Text
$sel:controlPanelArn:ListRoutingControls' :: ListRoutingControls -> Text
controlPanelArn} -> Text
controlPanelArn) (\s :: ListRoutingControls
s@ListRoutingControls' {} Text
a -> ListRoutingControls
s {$sel:controlPanelArn:ListRoutingControls' :: Text
controlPanelArn = Text
a} :: ListRoutingControls)

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

instance Prelude.NFData ListRoutingControls

instance Core.ToHeaders ListRoutingControls where
  toHeaders :: ListRoutingControls -> ResponseHeaders
toHeaders =
    ResponseHeaders -> ListRoutingControls -> 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 ListRoutingControls where
  toPath :: ListRoutingControls -> ByteString
toPath ListRoutingControls' {Maybe Natural
Maybe Text
Text
controlPanelArn :: Text
maxResults :: Maybe Natural
nextToken :: Maybe Text
$sel:controlPanelArn:ListRoutingControls' :: ListRoutingControls -> Text
$sel:maxResults:ListRoutingControls' :: ListRoutingControls -> Maybe Natural
$sel:nextToken:ListRoutingControls' :: ListRoutingControls -> Maybe Text
..} =
    [ByteString] -> ByteString
forall a. Monoid a => [a] -> a
Prelude.mconcat
      [ ByteString
"/controlpanel/",
        Text -> ByteString
forall a. ToByteString a => a -> ByteString
Core.toBS Text
controlPanelArn,
        ByteString
"/routingcontrols"
      ]

instance Core.ToQuery ListRoutingControls where
  toQuery :: ListRoutingControls -> QueryString
toQuery ListRoutingControls' {Maybe Natural
Maybe Text
Text
controlPanelArn :: Text
maxResults :: Maybe Natural
nextToken :: Maybe Text
$sel:controlPanelArn:ListRoutingControls' :: ListRoutingControls -> Text
$sel:maxResults:ListRoutingControls' :: ListRoutingControls -> Maybe Natural
$sel:nextToken:ListRoutingControls' :: ListRoutingControls -> 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
      ]

-- | /See:/ 'newListRoutingControlsResponse' smart constructor.
data ListRoutingControlsResponse = ListRoutingControlsResponse'
  { -- | The token that identifies which batch of results you want to see.
    ListRoutingControlsResponse -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
    -- | An array of routing controls.
    ListRoutingControlsResponse -> Maybe [RoutingControl]
routingControls :: Prelude.Maybe [RoutingControl],
    -- | The response's http status code.
    ListRoutingControlsResponse -> Int
httpStatus :: Prelude.Int
  }
  deriving (ListRoutingControlsResponse -> ListRoutingControlsResponse -> Bool
(ListRoutingControlsResponse
 -> ListRoutingControlsResponse -> Bool)
-> (ListRoutingControlsResponse
    -> ListRoutingControlsResponse -> Bool)
-> Eq ListRoutingControlsResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListRoutingControlsResponse -> ListRoutingControlsResponse -> Bool
$c/= :: ListRoutingControlsResponse -> ListRoutingControlsResponse -> Bool
== :: ListRoutingControlsResponse -> ListRoutingControlsResponse -> Bool
$c== :: ListRoutingControlsResponse -> ListRoutingControlsResponse -> Bool
Prelude.Eq, ReadPrec [ListRoutingControlsResponse]
ReadPrec ListRoutingControlsResponse
Int -> ReadS ListRoutingControlsResponse
ReadS [ListRoutingControlsResponse]
(Int -> ReadS ListRoutingControlsResponse)
-> ReadS [ListRoutingControlsResponse]
-> ReadPrec ListRoutingControlsResponse
-> ReadPrec [ListRoutingControlsResponse]
-> Read ListRoutingControlsResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListRoutingControlsResponse]
$creadListPrec :: ReadPrec [ListRoutingControlsResponse]
readPrec :: ReadPrec ListRoutingControlsResponse
$creadPrec :: ReadPrec ListRoutingControlsResponse
readList :: ReadS [ListRoutingControlsResponse]
$creadList :: ReadS [ListRoutingControlsResponse]
readsPrec :: Int -> ReadS ListRoutingControlsResponse
$creadsPrec :: Int -> ReadS ListRoutingControlsResponse
Prelude.Read, Int -> ListRoutingControlsResponse -> ShowS
[ListRoutingControlsResponse] -> ShowS
ListRoutingControlsResponse -> String
(Int -> ListRoutingControlsResponse -> ShowS)
-> (ListRoutingControlsResponse -> String)
-> ([ListRoutingControlsResponse] -> ShowS)
-> Show ListRoutingControlsResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListRoutingControlsResponse] -> ShowS
$cshowList :: [ListRoutingControlsResponse] -> ShowS
show :: ListRoutingControlsResponse -> String
$cshow :: ListRoutingControlsResponse -> String
showsPrec :: Int -> ListRoutingControlsResponse -> ShowS
$cshowsPrec :: Int -> ListRoutingControlsResponse -> ShowS
Prelude.Show, (forall x.
 ListRoutingControlsResponse -> Rep ListRoutingControlsResponse x)
-> (forall x.
    Rep ListRoutingControlsResponse x -> ListRoutingControlsResponse)
-> Generic ListRoutingControlsResponse
forall x.
Rep ListRoutingControlsResponse x -> ListRoutingControlsResponse
forall x.
ListRoutingControlsResponse -> Rep ListRoutingControlsResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ListRoutingControlsResponse x -> ListRoutingControlsResponse
$cfrom :: forall x.
ListRoutingControlsResponse -> Rep ListRoutingControlsResponse x
Prelude.Generic)

-- |
-- Create a value of 'ListRoutingControlsResponse' 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', 'listRoutingControlsResponse_nextToken' - The token that identifies which batch of results you want to see.
--
-- 'routingControls', 'listRoutingControlsResponse_routingControls' - An array of routing controls.
--
-- 'httpStatus', 'listRoutingControlsResponse_httpStatus' - The response's http status code.
newListRoutingControlsResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  ListRoutingControlsResponse
newListRoutingControlsResponse :: Int -> ListRoutingControlsResponse
newListRoutingControlsResponse Int
pHttpStatus_ =
  ListRoutingControlsResponse' :: Maybe Text
-> Maybe [RoutingControl] -> Int -> ListRoutingControlsResponse
ListRoutingControlsResponse'
    { $sel:nextToken:ListRoutingControlsResponse' :: Maybe Text
nextToken =
        Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:routingControls:ListRoutingControlsResponse' :: Maybe [RoutingControl]
routingControls = Maybe [RoutingControl]
forall a. Maybe a
Prelude.Nothing,
      $sel:httpStatus:ListRoutingControlsResponse' :: Int
httpStatus = Int
pHttpStatus_
    }

-- | The token that identifies which batch of results you want to see.
listRoutingControlsResponse_nextToken :: Lens.Lens' ListRoutingControlsResponse (Prelude.Maybe Prelude.Text)
listRoutingControlsResponse_nextToken :: (Maybe Text -> f (Maybe Text))
-> ListRoutingControlsResponse -> f ListRoutingControlsResponse
listRoutingControlsResponse_nextToken = (ListRoutingControlsResponse -> Maybe Text)
-> (ListRoutingControlsResponse
    -> Maybe Text -> ListRoutingControlsResponse)
-> Lens
     ListRoutingControlsResponse
     ListRoutingControlsResponse
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListRoutingControlsResponse' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListRoutingControlsResponse' :: ListRoutingControlsResponse -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListRoutingControlsResponse
s@ListRoutingControlsResponse' {} Maybe Text
a -> ListRoutingControlsResponse
s {$sel:nextToken:ListRoutingControlsResponse' :: Maybe Text
nextToken = Maybe Text
a} :: ListRoutingControlsResponse)

-- | An array of routing controls.
listRoutingControlsResponse_routingControls :: Lens.Lens' ListRoutingControlsResponse (Prelude.Maybe [RoutingControl])
listRoutingControlsResponse_routingControls :: (Maybe [RoutingControl] -> f (Maybe [RoutingControl]))
-> ListRoutingControlsResponse -> f ListRoutingControlsResponse
listRoutingControlsResponse_routingControls = (ListRoutingControlsResponse -> Maybe [RoutingControl])
-> (ListRoutingControlsResponse
    -> Maybe [RoutingControl] -> ListRoutingControlsResponse)
-> Lens
     ListRoutingControlsResponse
     ListRoutingControlsResponse
     (Maybe [RoutingControl])
     (Maybe [RoutingControl])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListRoutingControlsResponse' {Maybe [RoutingControl]
routingControls :: Maybe [RoutingControl]
$sel:routingControls:ListRoutingControlsResponse' :: ListRoutingControlsResponse -> Maybe [RoutingControl]
routingControls} -> Maybe [RoutingControl]
routingControls) (\s :: ListRoutingControlsResponse
s@ListRoutingControlsResponse' {} Maybe [RoutingControl]
a -> ListRoutingControlsResponse
s {$sel:routingControls:ListRoutingControlsResponse' :: Maybe [RoutingControl]
routingControls = Maybe [RoutingControl]
a} :: ListRoutingControlsResponse) ((Maybe [RoutingControl] -> f (Maybe [RoutingControl]))
 -> ListRoutingControlsResponse -> f ListRoutingControlsResponse)
-> ((Maybe [RoutingControl] -> f (Maybe [RoutingControl]))
    -> Maybe [RoutingControl] -> f (Maybe [RoutingControl]))
-> (Maybe [RoutingControl] -> f (Maybe [RoutingControl]))
-> ListRoutingControlsResponse
-> f ListRoutingControlsResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
  [RoutingControl] [RoutingControl] [RoutingControl] [RoutingControl]
-> Iso
     (Maybe [RoutingControl])
     (Maybe [RoutingControl])
     (Maybe [RoutingControl])
     (Maybe [RoutingControl])
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
  [RoutingControl] [RoutingControl] [RoutingControl] [RoutingControl]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

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

instance Prelude.NFData ListRoutingControlsResponse