{-# 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.IoTFleetWise.ListDecoderManifestSignals
-- Copyright   : (c) 2013-2023 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
--
-- A list of information about signal decoders specified in a decoder
-- manifest.
--
-- This API operation uses pagination. Specify the @nextToken@ parameter in
-- the request to return more results.
--
-- This operation returns paginated results.
module Amazonka.IoTFleetWise.ListDecoderManifestSignals
  ( -- * Creating a Request
    ListDecoderManifestSignals (..),
    newListDecoderManifestSignals,

    -- * Request Lenses
    listDecoderManifestSignals_maxResults,
    listDecoderManifestSignals_nextToken,
    listDecoderManifestSignals_name,

    -- * Destructuring the Response
    ListDecoderManifestSignalsResponse (..),
    newListDecoderManifestSignalsResponse,

    -- * Response Lenses
    listDecoderManifestSignalsResponse_nextToken,
    listDecoderManifestSignalsResponse_signalDecoders,
    listDecoderManifestSignalsResponse_httpStatus,
  )
where

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

-- | /See:/ 'newListDecoderManifestSignals' smart constructor.
data ListDecoderManifestSignals = ListDecoderManifestSignals'
  { -- | The maximum number of items to return, between 1 and 100, inclusive.
    ListDecoderManifestSignals -> Maybe Natural
maxResults :: Prelude.Maybe Prelude.Natural,
    -- | A pagination token for the next set of results.
    --
    -- If the results of a search are large, only a portion of the results are
    -- returned, and a @nextToken@ pagination token is returned in the
    -- response. To retrieve the next set of results, reissue the search
    -- request and include the returned token. When all results have been
    -- returned, the response does not contain a pagination token value.
    ListDecoderManifestSignals -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
    -- | The name of the decoder manifest to list information about.
    ListDecoderManifestSignals -> Text
name :: Prelude.Text
  }
  deriving (ListDecoderManifestSignals -> ListDecoderManifestSignals -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListDecoderManifestSignals -> ListDecoderManifestSignals -> Bool
$c/= :: ListDecoderManifestSignals -> ListDecoderManifestSignals -> Bool
== :: ListDecoderManifestSignals -> ListDecoderManifestSignals -> Bool
$c== :: ListDecoderManifestSignals -> ListDecoderManifestSignals -> Bool
Prelude.Eq, ReadPrec [ListDecoderManifestSignals]
ReadPrec ListDecoderManifestSignals
Int -> ReadS ListDecoderManifestSignals
ReadS [ListDecoderManifestSignals]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListDecoderManifestSignals]
$creadListPrec :: ReadPrec [ListDecoderManifestSignals]
readPrec :: ReadPrec ListDecoderManifestSignals
$creadPrec :: ReadPrec ListDecoderManifestSignals
readList :: ReadS [ListDecoderManifestSignals]
$creadList :: ReadS [ListDecoderManifestSignals]
readsPrec :: Int -> ReadS ListDecoderManifestSignals
$creadsPrec :: Int -> ReadS ListDecoderManifestSignals
Prelude.Read, Int -> ListDecoderManifestSignals -> ShowS
[ListDecoderManifestSignals] -> ShowS
ListDecoderManifestSignals -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListDecoderManifestSignals] -> ShowS
$cshowList :: [ListDecoderManifestSignals] -> ShowS
show :: ListDecoderManifestSignals -> String
$cshow :: ListDecoderManifestSignals -> String
showsPrec :: Int -> ListDecoderManifestSignals -> ShowS
$cshowsPrec :: Int -> ListDecoderManifestSignals -> ShowS
Prelude.Show, forall x.
Rep ListDecoderManifestSignals x -> ListDecoderManifestSignals
forall x.
ListDecoderManifestSignals -> Rep ListDecoderManifestSignals x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ListDecoderManifestSignals x -> ListDecoderManifestSignals
$cfrom :: forall x.
ListDecoderManifestSignals -> Rep ListDecoderManifestSignals x
Prelude.Generic)

-- |
-- Create a value of 'ListDecoderManifestSignals' 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', 'listDecoderManifestSignals_maxResults' - The maximum number of items to return, between 1 and 100, inclusive.
--
-- 'nextToken', 'listDecoderManifestSignals_nextToken' - A pagination token for the next set of results.
--
-- If the results of a search are large, only a portion of the results are
-- returned, and a @nextToken@ pagination token is returned in the
-- response. To retrieve the next set of results, reissue the search
-- request and include the returned token. When all results have been
-- returned, the response does not contain a pagination token value.
--
-- 'name', 'listDecoderManifestSignals_name' - The name of the decoder manifest to list information about.
newListDecoderManifestSignals ::
  -- | 'name'
  Prelude.Text ->
  ListDecoderManifestSignals
newListDecoderManifestSignals :: Text -> ListDecoderManifestSignals
newListDecoderManifestSignals Text
pName_ =
  ListDecoderManifestSignals'
    { $sel:maxResults:ListDecoderManifestSignals' :: Maybe Natural
maxResults =
        forall a. Maybe a
Prelude.Nothing,
      $sel:nextToken:ListDecoderManifestSignals' :: Maybe Text
nextToken = forall a. Maybe a
Prelude.Nothing,
      $sel:name:ListDecoderManifestSignals' :: Text
name = Text
pName_
    }

-- | The maximum number of items to return, between 1 and 100, inclusive.
listDecoderManifestSignals_maxResults :: Lens.Lens' ListDecoderManifestSignals (Prelude.Maybe Prelude.Natural)
listDecoderManifestSignals_maxResults :: Lens' ListDecoderManifestSignals (Maybe Natural)
listDecoderManifestSignals_maxResults = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListDecoderManifestSignals' {Maybe Natural
maxResults :: Maybe Natural
$sel:maxResults:ListDecoderManifestSignals' :: ListDecoderManifestSignals -> Maybe Natural
maxResults} -> Maybe Natural
maxResults) (\s :: ListDecoderManifestSignals
s@ListDecoderManifestSignals' {} Maybe Natural
a -> ListDecoderManifestSignals
s {$sel:maxResults:ListDecoderManifestSignals' :: Maybe Natural
maxResults = Maybe Natural
a} :: ListDecoderManifestSignals)

-- | A pagination token for the next set of results.
--
-- If the results of a search are large, only a portion of the results are
-- returned, and a @nextToken@ pagination token is returned in the
-- response. To retrieve the next set of results, reissue the search
-- request and include the returned token. When all results have been
-- returned, the response does not contain a pagination token value.
listDecoderManifestSignals_nextToken :: Lens.Lens' ListDecoderManifestSignals (Prelude.Maybe Prelude.Text)
listDecoderManifestSignals_nextToken :: Lens' ListDecoderManifestSignals (Maybe Text)
listDecoderManifestSignals_nextToken = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListDecoderManifestSignals' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListDecoderManifestSignals' :: ListDecoderManifestSignals -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListDecoderManifestSignals
s@ListDecoderManifestSignals' {} Maybe Text
a -> ListDecoderManifestSignals
s {$sel:nextToken:ListDecoderManifestSignals' :: Maybe Text
nextToken = Maybe Text
a} :: ListDecoderManifestSignals)

-- | The name of the decoder manifest to list information about.
listDecoderManifestSignals_name :: Lens.Lens' ListDecoderManifestSignals Prelude.Text
listDecoderManifestSignals_name :: Lens' ListDecoderManifestSignals Text
listDecoderManifestSignals_name = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListDecoderManifestSignals' {Text
name :: Text
$sel:name:ListDecoderManifestSignals' :: ListDecoderManifestSignals -> Text
name} -> Text
name) (\s :: ListDecoderManifestSignals
s@ListDecoderManifestSignals' {} Text
a -> ListDecoderManifestSignals
s {$sel:name:ListDecoderManifestSignals' :: Text
name = Text
a} :: ListDecoderManifestSignals)

instance Core.AWSPager ListDecoderManifestSignals where
  page :: ListDecoderManifestSignals
-> AWSResponse ListDecoderManifestSignals
-> Maybe ListDecoderManifestSignals
page ListDecoderManifestSignals
rq AWSResponse ListDecoderManifestSignals
rs
    | forall a. AWSTruncated a => a -> Bool
Core.stop
        ( AWSResponse ListDecoderManifestSignals
rs
            forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? Lens' ListDecoderManifestSignalsResponse (Maybe Text)
listDecoderManifestSignalsResponse_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 ListDecoderManifestSignals
rs
            forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? Lens'
  ListDecoderManifestSignalsResponse (Maybe (NonEmpty SignalDecoder))
listDecoderManifestSignalsResponse_signalDecoders
            forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall a b. Prism (Maybe a) (Maybe b) a b
Lens._Just
            forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall (p :: * -> * -> *) (f :: * -> *) s a.
(Profunctor p, Contravariant f) =>
(s -> a) -> Optic' p f s a
Lens.to forall l. IsList l => l -> [Item l]
Prelude.toList
        ) =
        forall a. Maybe a
Prelude.Nothing
    | Bool
Prelude.otherwise =
        forall a. a -> Maybe a
Prelude.Just
          forall a b. (a -> b) -> a -> b
Prelude.$ ListDecoderManifestSignals
rq
          forall a b. a -> (a -> b) -> b
Prelude.& Lens' ListDecoderManifestSignals (Maybe Text)
listDecoderManifestSignals_nextToken
          forall s t a b. ASetter s t a b -> b -> s -> t
Lens..~ AWSResponse ListDecoderManifestSignals
rs
          forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? Lens' ListDecoderManifestSignalsResponse (Maybe Text)
listDecoderManifestSignalsResponse_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 ListDecoderManifestSignals where
  type
    AWSResponse ListDecoderManifestSignals =
      ListDecoderManifestSignalsResponse
  request :: (Service -> Service)
-> ListDecoderManifestSignals -> Request ListDecoderManifestSignals
request Service -> Service
overrides =
    forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON (Service -> Service
overrides Service
defaultService)
  response :: forall (m :: * -> *).
MonadResource m =>
(ByteStringLazy -> IO ByteStringLazy)
-> Service
-> Proxy ListDecoderManifestSignals
-> ClientResponse ClientBody
-> m (Either
        Error (ClientResponse (AWSResponse ListDecoderManifestSignals)))
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 (NonEmpty SignalDecoder)
-> Int
-> ListDecoderManifestSignalsResponse
ListDecoderManifestSignalsResponse'
            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
"signalDecoders")
            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 ListDecoderManifestSignals where
  hashWithSalt :: Int -> ListDecoderManifestSignals -> Int
hashWithSalt Int
_salt ListDecoderManifestSignals' {Maybe Natural
Maybe Text
Text
name :: Text
nextToken :: Maybe Text
maxResults :: Maybe Natural
$sel:name:ListDecoderManifestSignals' :: ListDecoderManifestSignals -> Text
$sel:nextToken:ListDecoderManifestSignals' :: ListDecoderManifestSignals -> Maybe Text
$sel:maxResults:ListDecoderManifestSignals' :: ListDecoderManifestSignals -> 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
name

instance Prelude.NFData ListDecoderManifestSignals where
  rnf :: ListDecoderManifestSignals -> ()
rnf ListDecoderManifestSignals' {Maybe Natural
Maybe Text
Text
name :: Text
nextToken :: Maybe Text
maxResults :: Maybe Natural
$sel:name:ListDecoderManifestSignals' :: ListDecoderManifestSignals -> Text
$sel:nextToken:ListDecoderManifestSignals' :: ListDecoderManifestSignals -> Maybe Text
$sel:maxResults:ListDecoderManifestSignals' :: ListDecoderManifestSignals -> 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
name

instance Data.ToHeaders ListDecoderManifestSignals where
  toHeaders :: ListDecoderManifestSignals -> ResponseHeaders
toHeaders =
    forall a b. a -> b -> a
Prelude.const
      ( forall a. Monoid a => [a] -> a
Prelude.mconcat
          [ HeaderName
"X-Amz-Target"
              forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Data.=# ( ByteString
"IoTAutobahnControlPlane.ListDecoderManifestSignals" ::
                          Prelude.ByteString
                      ),
            HeaderName
"Content-Type"
              forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Data.=# ( ByteString
"application/x-amz-json-1.0" ::
                          Prelude.ByteString
                      )
          ]
      )

instance Data.ToJSON ListDecoderManifestSignals where
  toJSON :: ListDecoderManifestSignals -> Value
toJSON ListDecoderManifestSignals' {Maybe Natural
Maybe Text
Text
name :: Text
nextToken :: Maybe Text
maxResults :: Maybe Natural
$sel:name:ListDecoderManifestSignals' :: ListDecoderManifestSignals -> Text
$sel:nextToken:ListDecoderManifestSignals' :: ListDecoderManifestSignals -> Maybe Text
$sel:maxResults:ListDecoderManifestSignals' :: ListDecoderManifestSignals -> Maybe Natural
..} =
    [Pair] -> Value
Data.object
      ( forall a. [Maybe a] -> [a]
Prelude.catMaybes
          [ (Key
"maxResults" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=) forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Natural
maxResults,
            (Key
"nextToken" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=) forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
nextToken,
            forall a. a -> Maybe a
Prelude.Just (Key
"name" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..= Text
name)
          ]
      )

instance Data.ToPath ListDecoderManifestSignals where
  toPath :: ListDecoderManifestSignals -> ByteString
toPath = forall a b. a -> b -> a
Prelude.const ByteString
"/"

instance Data.ToQuery ListDecoderManifestSignals where
  toQuery :: ListDecoderManifestSignals -> QueryString
toQuery = forall a b. a -> b -> a
Prelude.const forall a. Monoid a => a
Prelude.mempty

-- | /See:/ 'newListDecoderManifestSignalsResponse' smart constructor.
data ListDecoderManifestSignalsResponse = ListDecoderManifestSignalsResponse'
  { -- | The token to retrieve the next set of results, or @null@ if there are no
    -- more results.
    ListDecoderManifestSignalsResponse -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
    -- | Information about a list of signals to decode.
    ListDecoderManifestSignalsResponse
-> Maybe (NonEmpty SignalDecoder)
signalDecoders :: Prelude.Maybe (Prelude.NonEmpty SignalDecoder),
    -- | The response's http status code.
    ListDecoderManifestSignalsResponse -> Int
httpStatus :: Prelude.Int
  }
  deriving (ListDecoderManifestSignalsResponse
-> ListDecoderManifestSignalsResponse -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListDecoderManifestSignalsResponse
-> ListDecoderManifestSignalsResponse -> Bool
$c/= :: ListDecoderManifestSignalsResponse
-> ListDecoderManifestSignalsResponse -> Bool
== :: ListDecoderManifestSignalsResponse
-> ListDecoderManifestSignalsResponse -> Bool
$c== :: ListDecoderManifestSignalsResponse
-> ListDecoderManifestSignalsResponse -> Bool
Prelude.Eq, ReadPrec [ListDecoderManifestSignalsResponse]
ReadPrec ListDecoderManifestSignalsResponse
Int -> ReadS ListDecoderManifestSignalsResponse
ReadS [ListDecoderManifestSignalsResponse]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListDecoderManifestSignalsResponse]
$creadListPrec :: ReadPrec [ListDecoderManifestSignalsResponse]
readPrec :: ReadPrec ListDecoderManifestSignalsResponse
$creadPrec :: ReadPrec ListDecoderManifestSignalsResponse
readList :: ReadS [ListDecoderManifestSignalsResponse]
$creadList :: ReadS [ListDecoderManifestSignalsResponse]
readsPrec :: Int -> ReadS ListDecoderManifestSignalsResponse
$creadsPrec :: Int -> ReadS ListDecoderManifestSignalsResponse
Prelude.Read, Int -> ListDecoderManifestSignalsResponse -> ShowS
[ListDecoderManifestSignalsResponse] -> ShowS
ListDecoderManifestSignalsResponse -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListDecoderManifestSignalsResponse] -> ShowS
$cshowList :: [ListDecoderManifestSignalsResponse] -> ShowS
show :: ListDecoderManifestSignalsResponse -> String
$cshow :: ListDecoderManifestSignalsResponse -> String
showsPrec :: Int -> ListDecoderManifestSignalsResponse -> ShowS
$cshowsPrec :: Int -> ListDecoderManifestSignalsResponse -> ShowS
Prelude.Show, forall x.
Rep ListDecoderManifestSignalsResponse x
-> ListDecoderManifestSignalsResponse
forall x.
ListDecoderManifestSignalsResponse
-> Rep ListDecoderManifestSignalsResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ListDecoderManifestSignalsResponse x
-> ListDecoderManifestSignalsResponse
$cfrom :: forall x.
ListDecoderManifestSignalsResponse
-> Rep ListDecoderManifestSignalsResponse x
Prelude.Generic)

-- |
-- Create a value of 'ListDecoderManifestSignalsResponse' 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', 'listDecoderManifestSignalsResponse_nextToken' - The token to retrieve the next set of results, or @null@ if there are no
-- more results.
--
-- 'signalDecoders', 'listDecoderManifestSignalsResponse_signalDecoders' - Information about a list of signals to decode.
--
-- 'httpStatus', 'listDecoderManifestSignalsResponse_httpStatus' - The response's http status code.
newListDecoderManifestSignalsResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  ListDecoderManifestSignalsResponse
newListDecoderManifestSignalsResponse :: Int -> ListDecoderManifestSignalsResponse
newListDecoderManifestSignalsResponse Int
pHttpStatus_ =
  ListDecoderManifestSignalsResponse'
    { $sel:nextToken:ListDecoderManifestSignalsResponse' :: Maybe Text
nextToken =
        forall a. Maybe a
Prelude.Nothing,
      $sel:signalDecoders:ListDecoderManifestSignalsResponse' :: Maybe (NonEmpty SignalDecoder)
signalDecoders = forall a. Maybe a
Prelude.Nothing,
      $sel:httpStatus:ListDecoderManifestSignalsResponse' :: Int
httpStatus = Int
pHttpStatus_
    }

-- | The token to retrieve the next set of results, or @null@ if there are no
-- more results.
listDecoderManifestSignalsResponse_nextToken :: Lens.Lens' ListDecoderManifestSignalsResponse (Prelude.Maybe Prelude.Text)
listDecoderManifestSignalsResponse_nextToken :: Lens' ListDecoderManifestSignalsResponse (Maybe Text)
listDecoderManifestSignalsResponse_nextToken = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListDecoderManifestSignalsResponse' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListDecoderManifestSignalsResponse' :: ListDecoderManifestSignalsResponse -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListDecoderManifestSignalsResponse
s@ListDecoderManifestSignalsResponse' {} Maybe Text
a -> ListDecoderManifestSignalsResponse
s {$sel:nextToken:ListDecoderManifestSignalsResponse' :: Maybe Text
nextToken = Maybe Text
a} :: ListDecoderManifestSignalsResponse)

-- | Information about a list of signals to decode.
listDecoderManifestSignalsResponse_signalDecoders :: Lens.Lens' ListDecoderManifestSignalsResponse (Prelude.Maybe (Prelude.NonEmpty SignalDecoder))
listDecoderManifestSignalsResponse_signalDecoders :: Lens'
  ListDecoderManifestSignalsResponse (Maybe (NonEmpty SignalDecoder))
listDecoderManifestSignalsResponse_signalDecoders = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListDecoderManifestSignalsResponse' {Maybe (NonEmpty SignalDecoder)
signalDecoders :: Maybe (NonEmpty SignalDecoder)
$sel:signalDecoders:ListDecoderManifestSignalsResponse' :: ListDecoderManifestSignalsResponse
-> Maybe (NonEmpty SignalDecoder)
signalDecoders} -> Maybe (NonEmpty SignalDecoder)
signalDecoders) (\s :: ListDecoderManifestSignalsResponse
s@ListDecoderManifestSignalsResponse' {} Maybe (NonEmpty SignalDecoder)
a -> ListDecoderManifestSignalsResponse
s {$sel:signalDecoders:ListDecoderManifestSignalsResponse' :: Maybe (NonEmpty SignalDecoder)
signalDecoders = Maybe (NonEmpty SignalDecoder)
a} :: ListDecoderManifestSignalsResponse) 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.
listDecoderManifestSignalsResponse_httpStatus :: Lens.Lens' ListDecoderManifestSignalsResponse Prelude.Int
listDecoderManifestSignalsResponse_httpStatus :: Lens' ListDecoderManifestSignalsResponse Int
listDecoderManifestSignalsResponse_httpStatus = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListDecoderManifestSignalsResponse' {Int
httpStatus :: Int
$sel:httpStatus:ListDecoderManifestSignalsResponse' :: ListDecoderManifestSignalsResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: ListDecoderManifestSignalsResponse
s@ListDecoderManifestSignalsResponse' {} Int
a -> ListDecoderManifestSignalsResponse
s {$sel:httpStatus:ListDecoderManifestSignalsResponse' :: Int
httpStatus = Int
a} :: ListDecoderManifestSignalsResponse)

instance
  Prelude.NFData
    ListDecoderManifestSignalsResponse
  where
  rnf :: ListDecoderManifestSignalsResponse -> ()
rnf ListDecoderManifestSignalsResponse' {Int
Maybe (NonEmpty SignalDecoder)
Maybe Text
httpStatus :: Int
signalDecoders :: Maybe (NonEmpty SignalDecoder)
nextToken :: Maybe Text
$sel:httpStatus:ListDecoderManifestSignalsResponse' :: ListDecoderManifestSignalsResponse -> Int
$sel:signalDecoders:ListDecoderManifestSignalsResponse' :: ListDecoderManifestSignalsResponse
-> Maybe (NonEmpty SignalDecoder)
$sel:nextToken:ListDecoderManifestSignalsResponse' :: ListDecoderManifestSignalsResponse -> 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 (NonEmpty SignalDecoder)
signalDecoders
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Int
httpStatus