{-# 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.ListControlPanels
-- 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 control panels for a cluster.
module Amazonka.Route53RecoveryControlConfig.ListControlPanels
  ( -- * Creating a Request
    ListControlPanels (..),
    newListControlPanels,

    -- * Request Lenses
    listControlPanels_clusterArn,
    listControlPanels_nextToken,
    listControlPanels_maxResults,

    -- * Destructuring the Response
    ListControlPanelsResponse (..),
    newListControlPanelsResponse,

    -- * Response Lenses
    listControlPanelsResponse_nextToken,
    listControlPanelsResponse_controlPanels,
    listControlPanelsResponse_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:/ 'newListControlPanels' smart constructor.
data ListControlPanels = ListControlPanels'
  { -- | The Amazon Resource Name (ARN) of a cluster.
    ListControlPanels -> Maybe Text
clusterArn :: Prelude.Maybe Prelude.Text,
    -- | The token that identifies which batch of results you want to see.
    ListControlPanels -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
    -- | The number of objects that you want to return with this call.
    ListControlPanels -> Maybe Natural
maxResults :: Prelude.Maybe Prelude.Natural
  }
  deriving (ListControlPanels -> ListControlPanels -> Bool
(ListControlPanels -> ListControlPanels -> Bool)
-> (ListControlPanels -> ListControlPanels -> Bool)
-> Eq ListControlPanels
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListControlPanels -> ListControlPanels -> Bool
$c/= :: ListControlPanels -> ListControlPanels -> Bool
== :: ListControlPanels -> ListControlPanels -> Bool
$c== :: ListControlPanels -> ListControlPanels -> Bool
Prelude.Eq, ReadPrec [ListControlPanels]
ReadPrec ListControlPanels
Int -> ReadS ListControlPanels
ReadS [ListControlPanels]
(Int -> ReadS ListControlPanels)
-> ReadS [ListControlPanels]
-> ReadPrec ListControlPanels
-> ReadPrec [ListControlPanels]
-> Read ListControlPanels
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListControlPanels]
$creadListPrec :: ReadPrec [ListControlPanels]
readPrec :: ReadPrec ListControlPanels
$creadPrec :: ReadPrec ListControlPanels
readList :: ReadS [ListControlPanels]
$creadList :: ReadS [ListControlPanels]
readsPrec :: Int -> ReadS ListControlPanels
$creadsPrec :: Int -> ReadS ListControlPanels
Prelude.Read, Int -> ListControlPanels -> ShowS
[ListControlPanels] -> ShowS
ListControlPanels -> String
(Int -> ListControlPanels -> ShowS)
-> (ListControlPanels -> String)
-> ([ListControlPanels] -> ShowS)
-> Show ListControlPanels
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListControlPanels] -> ShowS
$cshowList :: [ListControlPanels] -> ShowS
show :: ListControlPanels -> String
$cshow :: ListControlPanels -> String
showsPrec :: Int -> ListControlPanels -> ShowS
$cshowsPrec :: Int -> ListControlPanels -> ShowS
Prelude.Show, (forall x. ListControlPanels -> Rep ListControlPanels x)
-> (forall x. Rep ListControlPanels x -> ListControlPanels)
-> Generic ListControlPanels
forall x. Rep ListControlPanels x -> ListControlPanels
forall x. ListControlPanels -> Rep ListControlPanels x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ListControlPanels x -> ListControlPanels
$cfrom :: forall x. ListControlPanels -> Rep ListControlPanels x
Prelude.Generic)

-- |
-- Create a value of 'ListControlPanels' 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:
--
-- 'clusterArn', 'listControlPanels_clusterArn' - The Amazon Resource Name (ARN) of a cluster.
--
-- 'nextToken', 'listControlPanels_nextToken' - The token that identifies which batch of results you want to see.
--
-- 'maxResults', 'listControlPanels_maxResults' - The number of objects that you want to return with this call.
newListControlPanels ::
  ListControlPanels
newListControlPanels :: ListControlPanels
newListControlPanels =
  ListControlPanels' :: Maybe Text -> Maybe Text -> Maybe Natural -> ListControlPanels
ListControlPanels'
    { $sel:clusterArn:ListControlPanels' :: Maybe Text
clusterArn = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:nextToken:ListControlPanels' :: Maybe Text
nextToken = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:maxResults:ListControlPanels' :: Maybe Natural
maxResults = Maybe Natural
forall a. Maybe a
Prelude.Nothing
    }

-- | The Amazon Resource Name (ARN) of a cluster.
listControlPanels_clusterArn :: Lens.Lens' ListControlPanels (Prelude.Maybe Prelude.Text)
listControlPanels_clusterArn :: (Maybe Text -> f (Maybe Text))
-> ListControlPanels -> f ListControlPanels
listControlPanels_clusterArn = (ListControlPanels -> Maybe Text)
-> (ListControlPanels -> Maybe Text -> ListControlPanels)
-> Lens
     ListControlPanels ListControlPanels (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListControlPanels' {Maybe Text
clusterArn :: Maybe Text
$sel:clusterArn:ListControlPanels' :: ListControlPanels -> Maybe Text
clusterArn} -> Maybe Text
clusterArn) (\s :: ListControlPanels
s@ListControlPanels' {} Maybe Text
a -> ListControlPanels
s {$sel:clusterArn:ListControlPanels' :: Maybe Text
clusterArn = Maybe Text
a} :: ListControlPanels)

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

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

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

instance Prelude.NFData ListControlPanels

instance Core.ToHeaders ListControlPanels where
  toHeaders :: ListControlPanels -> ResponseHeaders
toHeaders =
    ResponseHeaders -> ListControlPanels -> 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 ListControlPanels where
  toPath :: ListControlPanels -> ByteString
toPath = ByteString -> ListControlPanels -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/controlpanels"

instance Core.ToQuery ListControlPanels where
  toQuery :: ListControlPanels -> QueryString
toQuery ListControlPanels' {Maybe Natural
Maybe Text
maxResults :: Maybe Natural
nextToken :: Maybe Text
clusterArn :: Maybe Text
$sel:maxResults:ListControlPanels' :: ListControlPanels -> Maybe Natural
$sel:nextToken:ListControlPanels' :: ListControlPanels -> Maybe Text
$sel:clusterArn:ListControlPanels' :: ListControlPanels -> Maybe Text
..} =
    [QueryString] -> QueryString
forall a. Monoid a => [a] -> a
Prelude.mconcat
      [ ByteString
"ClusterArn" ByteString -> Maybe Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Text
clusterArn,
        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:/ 'newListControlPanelsResponse' smart constructor.
data ListControlPanelsResponse = ListControlPanelsResponse'
  { -- | The token that identifies which batch of results you want to see.
    ListControlPanelsResponse -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
    -- | The result of a successful ListControlPanel request.
    ListControlPanelsResponse -> Maybe [ControlPanel]
controlPanels :: Prelude.Maybe [ControlPanel],
    -- | The response's http status code.
    ListControlPanelsResponse -> Int
httpStatus :: Prelude.Int
  }
  deriving (ListControlPanelsResponse -> ListControlPanelsResponse -> Bool
(ListControlPanelsResponse -> ListControlPanelsResponse -> Bool)
-> (ListControlPanelsResponse -> ListControlPanelsResponse -> Bool)
-> Eq ListControlPanelsResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListControlPanelsResponse -> ListControlPanelsResponse -> Bool
$c/= :: ListControlPanelsResponse -> ListControlPanelsResponse -> Bool
== :: ListControlPanelsResponse -> ListControlPanelsResponse -> Bool
$c== :: ListControlPanelsResponse -> ListControlPanelsResponse -> Bool
Prelude.Eq, ReadPrec [ListControlPanelsResponse]
ReadPrec ListControlPanelsResponse
Int -> ReadS ListControlPanelsResponse
ReadS [ListControlPanelsResponse]
(Int -> ReadS ListControlPanelsResponse)
-> ReadS [ListControlPanelsResponse]
-> ReadPrec ListControlPanelsResponse
-> ReadPrec [ListControlPanelsResponse]
-> Read ListControlPanelsResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListControlPanelsResponse]
$creadListPrec :: ReadPrec [ListControlPanelsResponse]
readPrec :: ReadPrec ListControlPanelsResponse
$creadPrec :: ReadPrec ListControlPanelsResponse
readList :: ReadS [ListControlPanelsResponse]
$creadList :: ReadS [ListControlPanelsResponse]
readsPrec :: Int -> ReadS ListControlPanelsResponse
$creadsPrec :: Int -> ReadS ListControlPanelsResponse
Prelude.Read, Int -> ListControlPanelsResponse -> ShowS
[ListControlPanelsResponse] -> ShowS
ListControlPanelsResponse -> String
(Int -> ListControlPanelsResponse -> ShowS)
-> (ListControlPanelsResponse -> String)
-> ([ListControlPanelsResponse] -> ShowS)
-> Show ListControlPanelsResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListControlPanelsResponse] -> ShowS
$cshowList :: [ListControlPanelsResponse] -> ShowS
show :: ListControlPanelsResponse -> String
$cshow :: ListControlPanelsResponse -> String
showsPrec :: Int -> ListControlPanelsResponse -> ShowS
$cshowsPrec :: Int -> ListControlPanelsResponse -> ShowS
Prelude.Show, (forall x.
 ListControlPanelsResponse -> Rep ListControlPanelsResponse x)
-> (forall x.
    Rep ListControlPanelsResponse x -> ListControlPanelsResponse)
-> Generic ListControlPanelsResponse
forall x.
Rep ListControlPanelsResponse x -> ListControlPanelsResponse
forall x.
ListControlPanelsResponse -> Rep ListControlPanelsResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ListControlPanelsResponse x -> ListControlPanelsResponse
$cfrom :: forall x.
ListControlPanelsResponse -> Rep ListControlPanelsResponse x
Prelude.Generic)

-- |
-- Create a value of 'ListControlPanelsResponse' 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', 'listControlPanelsResponse_nextToken' - The token that identifies which batch of results you want to see.
--
-- 'controlPanels', 'listControlPanelsResponse_controlPanels' - The result of a successful ListControlPanel request.
--
-- 'httpStatus', 'listControlPanelsResponse_httpStatus' - The response's http status code.
newListControlPanelsResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  ListControlPanelsResponse
newListControlPanelsResponse :: Int -> ListControlPanelsResponse
newListControlPanelsResponse Int
pHttpStatus_ =
  ListControlPanelsResponse' :: Maybe Text
-> Maybe [ControlPanel] -> Int -> ListControlPanelsResponse
ListControlPanelsResponse'
    { $sel:nextToken:ListControlPanelsResponse' :: Maybe Text
nextToken =
        Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:controlPanels:ListControlPanelsResponse' :: Maybe [ControlPanel]
controlPanels = Maybe [ControlPanel]
forall a. Maybe a
Prelude.Nothing,
      $sel:httpStatus:ListControlPanelsResponse' :: Int
httpStatus = Int
pHttpStatus_
    }

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

-- | The result of a successful ListControlPanel request.
listControlPanelsResponse_controlPanels :: Lens.Lens' ListControlPanelsResponse (Prelude.Maybe [ControlPanel])
listControlPanelsResponse_controlPanels :: (Maybe [ControlPanel] -> f (Maybe [ControlPanel]))
-> ListControlPanelsResponse -> f ListControlPanelsResponse
listControlPanelsResponse_controlPanels = (ListControlPanelsResponse -> Maybe [ControlPanel])
-> (ListControlPanelsResponse
    -> Maybe [ControlPanel] -> ListControlPanelsResponse)
-> Lens
     ListControlPanelsResponse
     ListControlPanelsResponse
     (Maybe [ControlPanel])
     (Maybe [ControlPanel])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListControlPanelsResponse' {Maybe [ControlPanel]
controlPanels :: Maybe [ControlPanel]
$sel:controlPanels:ListControlPanelsResponse' :: ListControlPanelsResponse -> Maybe [ControlPanel]
controlPanels} -> Maybe [ControlPanel]
controlPanels) (\s :: ListControlPanelsResponse
s@ListControlPanelsResponse' {} Maybe [ControlPanel]
a -> ListControlPanelsResponse
s {$sel:controlPanels:ListControlPanelsResponse' :: Maybe [ControlPanel]
controlPanels = Maybe [ControlPanel]
a} :: ListControlPanelsResponse) ((Maybe [ControlPanel] -> f (Maybe [ControlPanel]))
 -> ListControlPanelsResponse -> f ListControlPanelsResponse)
-> ((Maybe [ControlPanel] -> f (Maybe [ControlPanel]))
    -> Maybe [ControlPanel] -> f (Maybe [ControlPanel]))
-> (Maybe [ControlPanel] -> f (Maybe [ControlPanel]))
-> ListControlPanelsResponse
-> f ListControlPanelsResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso [ControlPanel] [ControlPanel] [ControlPanel] [ControlPanel]
-> Iso
     (Maybe [ControlPanel])
     (Maybe [ControlPanel])
     (Maybe [ControlPanel])
     (Maybe [ControlPanel])
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 [ControlPanel] [ControlPanel] [ControlPanel] [ControlPanel]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

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

instance Prelude.NFData ListControlPanelsResponse