{-# 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.MediaLive.ListInputDevices
-- 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)
--
-- List input devices
--
-- This operation returns paginated results.
module Amazonka.MediaLive.ListInputDevices
  ( -- * Creating a Request
    ListInputDevices (..),
    newListInputDevices,

    -- * Request Lenses
    listInputDevices_nextToken,
    listInputDevices_maxResults,

    -- * Destructuring the Response
    ListInputDevicesResponse (..),
    newListInputDevicesResponse,

    -- * Response Lenses
    listInputDevicesResponse_inputDevices,
    listInputDevicesResponse_nextToken,
    listInputDevicesResponse_httpStatus,
  )
where

import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import Amazonka.MediaLive.Types
import qualified Amazonka.Prelude as Prelude
import qualified Amazonka.Request as Request
import qualified Amazonka.Response as Response

-- | Placeholder documentation for ListInputDevicesRequest
--
-- /See:/ 'newListInputDevices' smart constructor.
data ListInputDevices = ListInputDevices'
  { ListInputDevices -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
    ListInputDevices -> Maybe Natural
maxResults :: Prelude.Maybe Prelude.Natural
  }
  deriving (ListInputDevices -> ListInputDevices -> Bool
(ListInputDevices -> ListInputDevices -> Bool)
-> (ListInputDevices -> ListInputDevices -> Bool)
-> Eq ListInputDevices
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListInputDevices -> ListInputDevices -> Bool
$c/= :: ListInputDevices -> ListInputDevices -> Bool
== :: ListInputDevices -> ListInputDevices -> Bool
$c== :: ListInputDevices -> ListInputDevices -> Bool
Prelude.Eq, ReadPrec [ListInputDevices]
ReadPrec ListInputDevices
Int -> ReadS ListInputDevices
ReadS [ListInputDevices]
(Int -> ReadS ListInputDevices)
-> ReadS [ListInputDevices]
-> ReadPrec ListInputDevices
-> ReadPrec [ListInputDevices]
-> Read ListInputDevices
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListInputDevices]
$creadListPrec :: ReadPrec [ListInputDevices]
readPrec :: ReadPrec ListInputDevices
$creadPrec :: ReadPrec ListInputDevices
readList :: ReadS [ListInputDevices]
$creadList :: ReadS [ListInputDevices]
readsPrec :: Int -> ReadS ListInputDevices
$creadsPrec :: Int -> ReadS ListInputDevices
Prelude.Read, Int -> ListInputDevices -> ShowS
[ListInputDevices] -> ShowS
ListInputDevices -> String
(Int -> ListInputDevices -> ShowS)
-> (ListInputDevices -> String)
-> ([ListInputDevices] -> ShowS)
-> Show ListInputDevices
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListInputDevices] -> ShowS
$cshowList :: [ListInputDevices] -> ShowS
show :: ListInputDevices -> String
$cshow :: ListInputDevices -> String
showsPrec :: Int -> ListInputDevices -> ShowS
$cshowsPrec :: Int -> ListInputDevices -> ShowS
Prelude.Show, (forall x. ListInputDevices -> Rep ListInputDevices x)
-> (forall x. Rep ListInputDevices x -> ListInputDevices)
-> Generic ListInputDevices
forall x. Rep ListInputDevices x -> ListInputDevices
forall x. ListInputDevices -> Rep ListInputDevices x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ListInputDevices x -> ListInputDevices
$cfrom :: forall x. ListInputDevices -> Rep ListInputDevices x
Prelude.Generic)

-- |
-- Create a value of 'ListInputDevices' 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', 'listInputDevices_nextToken' - Undocumented member.
--
-- 'maxResults', 'listInputDevices_maxResults' - Undocumented member.
newListInputDevices ::
  ListInputDevices
newListInputDevices :: ListInputDevices
newListInputDevices =
  ListInputDevices' :: Maybe Text -> Maybe Natural -> ListInputDevices
ListInputDevices'
    { $sel:nextToken:ListInputDevices' :: Maybe Text
nextToken = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:maxResults:ListInputDevices' :: Maybe Natural
maxResults = Maybe Natural
forall a. Maybe a
Prelude.Nothing
    }

-- | Undocumented member.
listInputDevices_nextToken :: Lens.Lens' ListInputDevices (Prelude.Maybe Prelude.Text)
listInputDevices_nextToken :: (Maybe Text -> f (Maybe Text))
-> ListInputDevices -> f ListInputDevices
listInputDevices_nextToken = (ListInputDevices -> Maybe Text)
-> (ListInputDevices -> Maybe Text -> ListInputDevices)
-> Lens ListInputDevices ListInputDevices (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListInputDevices' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListInputDevices' :: ListInputDevices -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListInputDevices
s@ListInputDevices' {} Maybe Text
a -> ListInputDevices
s {$sel:nextToken:ListInputDevices' :: Maybe Text
nextToken = Maybe Text
a} :: ListInputDevices)

-- | Undocumented member.
listInputDevices_maxResults :: Lens.Lens' ListInputDevices (Prelude.Maybe Prelude.Natural)
listInputDevices_maxResults :: (Maybe Natural -> f (Maybe Natural))
-> ListInputDevices -> f ListInputDevices
listInputDevices_maxResults = (ListInputDevices -> Maybe Natural)
-> (ListInputDevices -> Maybe Natural -> ListInputDevices)
-> Lens
     ListInputDevices ListInputDevices (Maybe Natural) (Maybe Natural)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListInputDevices' {Maybe Natural
maxResults :: Maybe Natural
$sel:maxResults:ListInputDevices' :: ListInputDevices -> Maybe Natural
maxResults} -> Maybe Natural
maxResults) (\s :: ListInputDevices
s@ListInputDevices' {} Maybe Natural
a -> ListInputDevices
s {$sel:maxResults:ListInputDevices' :: Maybe Natural
maxResults = Maybe Natural
a} :: ListInputDevices)

instance Core.AWSPager ListInputDevices where
  page :: ListInputDevices
-> AWSResponse ListInputDevices -> Maybe ListInputDevices
page ListInputDevices
rq AWSResponse ListInputDevices
rs
    | Maybe Text -> Bool
forall a. AWSTruncated a => a -> Bool
Core.stop
        ( AWSResponse ListInputDevices
ListInputDevicesResponse
rs
            ListInputDevicesResponse
-> Getting (First Text) ListInputDevicesResponse Text -> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Text -> Const (First Text) (Maybe Text))
-> ListInputDevicesResponse
-> Const (First Text) ListInputDevicesResponse
Lens' ListInputDevicesResponse (Maybe Text)
listInputDevicesResponse_nextToken
              ((Maybe Text -> Const (First Text) (Maybe Text))
 -> ListInputDevicesResponse
 -> Const (First Text) ListInputDevicesResponse)
-> ((Text -> Const (First Text) Text)
    -> Maybe Text -> Const (First Text) (Maybe Text))
-> Getting (First Text) ListInputDevicesResponse 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 ListInputDevices
forall a. Maybe a
Prelude.Nothing
    | Maybe [InputDeviceSummary] -> Bool
forall a. AWSTruncated a => a -> Bool
Core.stop
        ( AWSResponse ListInputDevices
ListInputDevicesResponse
rs
            ListInputDevicesResponse
-> Getting
     (First [InputDeviceSummary])
     ListInputDevicesResponse
     [InputDeviceSummary]
-> Maybe [InputDeviceSummary]
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe [InputDeviceSummary]
 -> Const (First [InputDeviceSummary]) (Maybe [InputDeviceSummary]))
-> ListInputDevicesResponse
-> Const (First [InputDeviceSummary]) ListInputDevicesResponse
Lens' ListInputDevicesResponse (Maybe [InputDeviceSummary])
listInputDevicesResponse_inputDevices
              ((Maybe [InputDeviceSummary]
  -> Const (First [InputDeviceSummary]) (Maybe [InputDeviceSummary]))
 -> ListInputDevicesResponse
 -> Const (First [InputDeviceSummary]) ListInputDevicesResponse)
-> (([InputDeviceSummary]
     -> Const (First [InputDeviceSummary]) [InputDeviceSummary])
    -> Maybe [InputDeviceSummary]
    -> Const (First [InputDeviceSummary]) (Maybe [InputDeviceSummary]))
-> Getting
     (First [InputDeviceSummary])
     ListInputDevicesResponse
     [InputDeviceSummary]
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. ([InputDeviceSummary]
 -> Const (First [InputDeviceSummary]) [InputDeviceSummary])
-> Maybe [InputDeviceSummary]
-> Const (First [InputDeviceSummary]) (Maybe [InputDeviceSummary])
forall a b. Prism (Maybe a) (Maybe b) a b
Lens._Just
        ) =
      Maybe ListInputDevices
forall a. Maybe a
Prelude.Nothing
    | Bool
Prelude.otherwise =
      ListInputDevices -> Maybe ListInputDevices
forall a. a -> Maybe a
Prelude.Just (ListInputDevices -> Maybe ListInputDevices)
-> ListInputDevices -> Maybe ListInputDevices
forall a b. (a -> b) -> a -> b
Prelude.$
        ListInputDevices
rq
          ListInputDevices
-> (ListInputDevices -> ListInputDevices) -> ListInputDevices
forall a b. a -> (a -> b) -> b
Prelude.& (Maybe Text -> Identity (Maybe Text))
-> ListInputDevices -> Identity ListInputDevices
Lens ListInputDevices ListInputDevices (Maybe Text) (Maybe Text)
listInputDevices_nextToken
          ((Maybe Text -> Identity (Maybe Text))
 -> ListInputDevices -> Identity ListInputDevices)
-> Maybe Text -> ListInputDevices -> ListInputDevices
forall s t a b. ASetter s t a b -> b -> s -> t
Lens..~ AWSResponse ListInputDevices
ListInputDevicesResponse
rs
          ListInputDevicesResponse
-> Getting (First Text) ListInputDevicesResponse Text -> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Text -> Const (First Text) (Maybe Text))
-> ListInputDevicesResponse
-> Const (First Text) ListInputDevicesResponse
Lens' ListInputDevicesResponse (Maybe Text)
listInputDevicesResponse_nextToken
            ((Maybe Text -> Const (First Text) (Maybe Text))
 -> ListInputDevicesResponse
 -> Const (First Text) ListInputDevicesResponse)
-> ((Text -> Const (First Text) Text)
    -> Maybe Text -> Const (First Text) (Maybe Text))
-> Getting (First Text) ListInputDevicesResponse 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 ListInputDevices where
  type
    AWSResponse ListInputDevices =
      ListInputDevicesResponse
  request :: ListInputDevices -> Request ListInputDevices
request = Service -> ListInputDevices -> Request ListInputDevices
forall a. ToRequest a => Service -> a -> Request a
Request.get Service
defaultService
  response :: Logger
-> Service
-> Proxy ListInputDevices
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse ListInputDevices)))
response =
    (Int
 -> ResponseHeaders
 -> Object
 -> Either String (AWSResponse ListInputDevices))
-> Logger
-> Service
-> Proxy ListInputDevices
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse ListInputDevices)))
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 [InputDeviceSummary]
-> Maybe Text -> Int -> ListInputDevicesResponse
ListInputDevicesResponse'
            (Maybe [InputDeviceSummary]
 -> Maybe Text -> Int -> ListInputDevicesResponse)
-> Either String (Maybe [InputDeviceSummary])
-> Either String (Maybe Text -> Int -> ListInputDevicesResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object
-> Text -> Either String (Maybe (Maybe [InputDeviceSummary]))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"inputDevices" Either String (Maybe (Maybe [InputDeviceSummary]))
-> Maybe [InputDeviceSummary]
-> Either String (Maybe [InputDeviceSummary])
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ Maybe [InputDeviceSummary]
forall a. Monoid a => a
Prelude.mempty)
            Either String (Maybe Text -> Int -> ListInputDevicesResponse)
-> Either String (Maybe Text)
-> Either String (Int -> ListInputDevicesResponse)
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 -> ListInputDevicesResponse)
-> Either String Int -> Either String ListInputDevicesResponse
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 ListInputDevices

instance Prelude.NFData ListInputDevices

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

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

-- | Placeholder documentation for ListInputDevicesResponse
--
-- /See:/ 'newListInputDevicesResponse' smart constructor.
data ListInputDevicesResponse = ListInputDevicesResponse'
  { -- | The list of input devices.
    ListInputDevicesResponse -> Maybe [InputDeviceSummary]
inputDevices :: Prelude.Maybe [InputDeviceSummary],
    -- | A token to get additional list results.
    ListInputDevicesResponse -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
    -- | The response's http status code.
    ListInputDevicesResponse -> Int
httpStatus :: Prelude.Int
  }
  deriving (ListInputDevicesResponse -> ListInputDevicesResponse -> Bool
(ListInputDevicesResponse -> ListInputDevicesResponse -> Bool)
-> (ListInputDevicesResponse -> ListInputDevicesResponse -> Bool)
-> Eq ListInputDevicesResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListInputDevicesResponse -> ListInputDevicesResponse -> Bool
$c/= :: ListInputDevicesResponse -> ListInputDevicesResponse -> Bool
== :: ListInputDevicesResponse -> ListInputDevicesResponse -> Bool
$c== :: ListInputDevicesResponse -> ListInputDevicesResponse -> Bool
Prelude.Eq, ReadPrec [ListInputDevicesResponse]
ReadPrec ListInputDevicesResponse
Int -> ReadS ListInputDevicesResponse
ReadS [ListInputDevicesResponse]
(Int -> ReadS ListInputDevicesResponse)
-> ReadS [ListInputDevicesResponse]
-> ReadPrec ListInputDevicesResponse
-> ReadPrec [ListInputDevicesResponse]
-> Read ListInputDevicesResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListInputDevicesResponse]
$creadListPrec :: ReadPrec [ListInputDevicesResponse]
readPrec :: ReadPrec ListInputDevicesResponse
$creadPrec :: ReadPrec ListInputDevicesResponse
readList :: ReadS [ListInputDevicesResponse]
$creadList :: ReadS [ListInputDevicesResponse]
readsPrec :: Int -> ReadS ListInputDevicesResponse
$creadsPrec :: Int -> ReadS ListInputDevicesResponse
Prelude.Read, Int -> ListInputDevicesResponse -> ShowS
[ListInputDevicesResponse] -> ShowS
ListInputDevicesResponse -> String
(Int -> ListInputDevicesResponse -> ShowS)
-> (ListInputDevicesResponse -> String)
-> ([ListInputDevicesResponse] -> ShowS)
-> Show ListInputDevicesResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListInputDevicesResponse] -> ShowS
$cshowList :: [ListInputDevicesResponse] -> ShowS
show :: ListInputDevicesResponse -> String
$cshow :: ListInputDevicesResponse -> String
showsPrec :: Int -> ListInputDevicesResponse -> ShowS
$cshowsPrec :: Int -> ListInputDevicesResponse -> ShowS
Prelude.Show, (forall x.
 ListInputDevicesResponse -> Rep ListInputDevicesResponse x)
-> (forall x.
    Rep ListInputDevicesResponse x -> ListInputDevicesResponse)
-> Generic ListInputDevicesResponse
forall x.
Rep ListInputDevicesResponse x -> ListInputDevicesResponse
forall x.
ListInputDevicesResponse -> Rep ListInputDevicesResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ListInputDevicesResponse x -> ListInputDevicesResponse
$cfrom :: forall x.
ListInputDevicesResponse -> Rep ListInputDevicesResponse x
Prelude.Generic)

-- |
-- Create a value of 'ListInputDevicesResponse' 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:
--
-- 'inputDevices', 'listInputDevicesResponse_inputDevices' - The list of input devices.
--
-- 'nextToken', 'listInputDevicesResponse_nextToken' - A token to get additional list results.
--
-- 'httpStatus', 'listInputDevicesResponse_httpStatus' - The response's http status code.
newListInputDevicesResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  ListInputDevicesResponse
newListInputDevicesResponse :: Int -> ListInputDevicesResponse
newListInputDevicesResponse Int
pHttpStatus_ =
  ListInputDevicesResponse' :: Maybe [InputDeviceSummary]
-> Maybe Text -> Int -> ListInputDevicesResponse
ListInputDevicesResponse'
    { $sel:inputDevices:ListInputDevicesResponse' :: Maybe [InputDeviceSummary]
inputDevices =
        Maybe [InputDeviceSummary]
forall a. Maybe a
Prelude.Nothing,
      $sel:nextToken:ListInputDevicesResponse' :: Maybe Text
nextToken = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:httpStatus:ListInputDevicesResponse' :: Int
httpStatus = Int
pHttpStatus_
    }

-- | The list of input devices.
listInputDevicesResponse_inputDevices :: Lens.Lens' ListInputDevicesResponse (Prelude.Maybe [InputDeviceSummary])
listInputDevicesResponse_inputDevices :: (Maybe [InputDeviceSummary] -> f (Maybe [InputDeviceSummary]))
-> ListInputDevicesResponse -> f ListInputDevicesResponse
listInputDevicesResponse_inputDevices = (ListInputDevicesResponse -> Maybe [InputDeviceSummary])
-> (ListInputDevicesResponse
    -> Maybe [InputDeviceSummary] -> ListInputDevicesResponse)
-> Lens' ListInputDevicesResponse (Maybe [InputDeviceSummary])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListInputDevicesResponse' {Maybe [InputDeviceSummary]
inputDevices :: Maybe [InputDeviceSummary]
$sel:inputDevices:ListInputDevicesResponse' :: ListInputDevicesResponse -> Maybe [InputDeviceSummary]
inputDevices} -> Maybe [InputDeviceSummary]
inputDevices) (\s :: ListInputDevicesResponse
s@ListInputDevicesResponse' {} Maybe [InputDeviceSummary]
a -> ListInputDevicesResponse
s {$sel:inputDevices:ListInputDevicesResponse' :: Maybe [InputDeviceSummary]
inputDevices = Maybe [InputDeviceSummary]
a} :: ListInputDevicesResponse) ((Maybe [InputDeviceSummary] -> f (Maybe [InputDeviceSummary]))
 -> ListInputDevicesResponse -> f ListInputDevicesResponse)
-> ((Maybe [InputDeviceSummary] -> f (Maybe [InputDeviceSummary]))
    -> Maybe [InputDeviceSummary] -> f (Maybe [InputDeviceSummary]))
-> (Maybe [InputDeviceSummary] -> f (Maybe [InputDeviceSummary]))
-> ListInputDevicesResponse
-> f ListInputDevicesResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
  [InputDeviceSummary]
  [InputDeviceSummary]
  [InputDeviceSummary]
  [InputDeviceSummary]
-> Iso
     (Maybe [InputDeviceSummary])
     (Maybe [InputDeviceSummary])
     (Maybe [InputDeviceSummary])
     (Maybe [InputDeviceSummary])
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
  [InputDeviceSummary]
  [InputDeviceSummary]
  [InputDeviceSummary]
  [InputDeviceSummary]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

-- | A token to get additional list results.
listInputDevicesResponse_nextToken :: Lens.Lens' ListInputDevicesResponse (Prelude.Maybe Prelude.Text)
listInputDevicesResponse_nextToken :: (Maybe Text -> f (Maybe Text))
-> ListInputDevicesResponse -> f ListInputDevicesResponse
listInputDevicesResponse_nextToken = (ListInputDevicesResponse -> Maybe Text)
-> (ListInputDevicesResponse
    -> Maybe Text -> ListInputDevicesResponse)
-> Lens' ListInputDevicesResponse (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListInputDevicesResponse' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListInputDevicesResponse' :: ListInputDevicesResponse -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListInputDevicesResponse
s@ListInputDevicesResponse' {} Maybe Text
a -> ListInputDevicesResponse
s {$sel:nextToken:ListInputDevicesResponse' :: Maybe Text
nextToken = Maybe Text
a} :: ListInputDevicesResponse)

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

instance Prelude.NFData ListInputDevicesResponse