{-# 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.ListVehicles
-- Copyright   : (c) 2013-2023 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
--
-- Retrieves a list of summaries of created vehicles.
--
-- This API operation uses pagination. Specify the @nextToken@ parameter in
-- the request to return more results.
--
-- This operation returns paginated results.
module Amazonka.IoTFleetWise.ListVehicles
  ( -- * Creating a Request
    ListVehicles (..),
    newListVehicles,

    -- * Request Lenses
    listVehicles_maxResults,
    listVehicles_modelManifestArn,
    listVehicles_nextToken,

    -- * Destructuring the Response
    ListVehiclesResponse (..),
    newListVehiclesResponse,

    -- * Response Lenses
    listVehiclesResponse_nextToken,
    listVehiclesResponse_vehicleSummaries,
    listVehiclesResponse_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:/ 'newListVehicles' smart constructor.
data ListVehicles = ListVehicles'
  { -- | The maximum number of items to return, between 1 and 100, inclusive.
    ListVehicles -> Maybe Natural
maxResults :: Prelude.Maybe Prelude.Natural,
    -- | The Amazon Resource Name (ARN) of a vehicle model (model manifest). You
    -- can use this optional parameter to list only the vehicles created from a
    -- certain vehicle model.
    ListVehicles -> Maybe Text
modelManifestArn :: Prelude.Maybe Prelude.Text,
    -- | 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.
    ListVehicles -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text
  }
  deriving (ListVehicles -> ListVehicles -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListVehicles -> ListVehicles -> Bool
$c/= :: ListVehicles -> ListVehicles -> Bool
== :: ListVehicles -> ListVehicles -> Bool
$c== :: ListVehicles -> ListVehicles -> Bool
Prelude.Eq, ReadPrec [ListVehicles]
ReadPrec ListVehicles
Int -> ReadS ListVehicles
ReadS [ListVehicles]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListVehicles]
$creadListPrec :: ReadPrec [ListVehicles]
readPrec :: ReadPrec ListVehicles
$creadPrec :: ReadPrec ListVehicles
readList :: ReadS [ListVehicles]
$creadList :: ReadS [ListVehicles]
readsPrec :: Int -> ReadS ListVehicles
$creadsPrec :: Int -> ReadS ListVehicles
Prelude.Read, Int -> ListVehicles -> ShowS
[ListVehicles] -> ShowS
ListVehicles -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListVehicles] -> ShowS
$cshowList :: [ListVehicles] -> ShowS
show :: ListVehicles -> String
$cshow :: ListVehicles -> String
showsPrec :: Int -> ListVehicles -> ShowS
$cshowsPrec :: Int -> ListVehicles -> ShowS
Prelude.Show, forall x. Rep ListVehicles x -> ListVehicles
forall x. ListVehicles -> Rep ListVehicles x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ListVehicles x -> ListVehicles
$cfrom :: forall x. ListVehicles -> Rep ListVehicles x
Prelude.Generic)

-- |
-- Create a value of 'ListVehicles' 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', 'listVehicles_maxResults' - The maximum number of items to return, between 1 and 100, inclusive.
--
-- 'modelManifestArn', 'listVehicles_modelManifestArn' - The Amazon Resource Name (ARN) of a vehicle model (model manifest). You
-- can use this optional parameter to list only the vehicles created from a
-- certain vehicle model.
--
-- 'nextToken', 'listVehicles_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.
newListVehicles ::
  ListVehicles
newListVehicles :: ListVehicles
newListVehicles =
  ListVehicles'
    { $sel:maxResults:ListVehicles' :: Maybe Natural
maxResults = forall a. Maybe a
Prelude.Nothing,
      $sel:modelManifestArn:ListVehicles' :: Maybe Text
modelManifestArn = forall a. Maybe a
Prelude.Nothing,
      $sel:nextToken:ListVehicles' :: Maybe Text
nextToken = forall a. Maybe a
Prelude.Nothing
    }

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

-- | The Amazon Resource Name (ARN) of a vehicle model (model manifest). You
-- can use this optional parameter to list only the vehicles created from a
-- certain vehicle model.
listVehicles_modelManifestArn :: Lens.Lens' ListVehicles (Prelude.Maybe Prelude.Text)
listVehicles_modelManifestArn :: Lens' ListVehicles (Maybe Text)
listVehicles_modelManifestArn = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListVehicles' {Maybe Text
modelManifestArn :: Maybe Text
$sel:modelManifestArn:ListVehicles' :: ListVehicles -> Maybe Text
modelManifestArn} -> Maybe Text
modelManifestArn) (\s :: ListVehicles
s@ListVehicles' {} Maybe Text
a -> ListVehicles
s {$sel:modelManifestArn:ListVehicles' :: Maybe Text
modelManifestArn = Maybe Text
a} :: ListVehicles)

-- | 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.
listVehicles_nextToken :: Lens.Lens' ListVehicles (Prelude.Maybe Prelude.Text)
listVehicles_nextToken :: Lens' ListVehicles (Maybe Text)
listVehicles_nextToken = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListVehicles' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListVehicles' :: ListVehicles -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListVehicles
s@ListVehicles' {} Maybe Text
a -> ListVehicles
s {$sel:nextToken:ListVehicles' :: Maybe Text
nextToken = Maybe Text
a} :: ListVehicles)

instance Core.AWSPager ListVehicles where
  page :: ListVehicles -> AWSResponse ListVehicles -> Maybe ListVehicles
page ListVehicles
rq AWSResponse ListVehicles
rs
    | forall a. AWSTruncated a => a -> Bool
Core.stop
        ( AWSResponse ListVehicles
rs
            forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? Lens' ListVehiclesResponse (Maybe Text)
listVehiclesResponse_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 ListVehicles
rs
            forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? Lens' ListVehiclesResponse (Maybe [VehicleSummary])
listVehiclesResponse_vehicleSummaries
            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
    | Bool
Prelude.otherwise =
        forall a. a -> Maybe a
Prelude.Just
          forall a b. (a -> b) -> a -> b
Prelude.$ ListVehicles
rq
          forall a b. a -> (a -> b) -> b
Prelude.& Lens' ListVehicles (Maybe Text)
listVehicles_nextToken
          forall s t a b. ASetter s t a b -> b -> s -> t
Lens..~ AWSResponse ListVehicles
rs
          forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? Lens' ListVehiclesResponse (Maybe Text)
listVehiclesResponse_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 ListVehicles where
  type AWSResponse ListVehicles = ListVehiclesResponse
  request :: (Service -> Service) -> ListVehicles -> Request ListVehicles
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 ListVehicles
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse ListVehicles)))
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 [VehicleSummary] -> Int -> ListVehiclesResponse
ListVehiclesResponse'
            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
"vehicleSummaries"
                            forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ forall a. Monoid a => a
Prelude.mempty
                        )
            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 ListVehicles where
  hashWithSalt :: Int -> ListVehicles -> Int
hashWithSalt Int
_salt ListVehicles' {Maybe Natural
Maybe Text
nextToken :: Maybe Text
modelManifestArn :: Maybe Text
maxResults :: Maybe Natural
$sel:nextToken:ListVehicles' :: ListVehicles -> Maybe Text
$sel:modelManifestArn:ListVehicles' :: ListVehicles -> Maybe Text
$sel:maxResults:ListVehicles' :: ListVehicles -> 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
modelManifestArn
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
nextToken

instance Prelude.NFData ListVehicles where
  rnf :: ListVehicles -> ()
rnf ListVehicles' {Maybe Natural
Maybe Text
nextToken :: Maybe Text
modelManifestArn :: Maybe Text
maxResults :: Maybe Natural
$sel:nextToken:ListVehicles' :: ListVehicles -> Maybe Text
$sel:modelManifestArn:ListVehicles' :: ListVehicles -> Maybe Text
$sel:maxResults:ListVehicles' :: ListVehicles -> 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
modelManifestArn
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
nextToken

instance Data.ToHeaders ListVehicles where
  toHeaders :: ListVehicles -> 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.ListVehicles" ::
                          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 ListVehicles where
  toJSON :: ListVehicles -> Value
toJSON ListVehicles' {Maybe Natural
Maybe Text
nextToken :: Maybe Text
modelManifestArn :: Maybe Text
maxResults :: Maybe Natural
$sel:nextToken:ListVehicles' :: ListVehicles -> Maybe Text
$sel:modelManifestArn:ListVehicles' :: ListVehicles -> Maybe Text
$sel:maxResults:ListVehicles' :: ListVehicles -> 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
"modelManifestArn" 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
modelManifestArn,
            (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
          ]
      )

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

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

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

-- |
-- Create a value of 'ListVehiclesResponse' 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', 'listVehiclesResponse_nextToken' - The token to retrieve the next set of results, or @null@ if there are no
-- more results.
--
-- 'vehicleSummaries', 'listVehiclesResponse_vehicleSummaries' - A list of vehicles and information about them.
--
-- 'httpStatus', 'listVehiclesResponse_httpStatus' - The response's http status code.
newListVehiclesResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  ListVehiclesResponse
newListVehiclesResponse :: Int -> ListVehiclesResponse
newListVehiclesResponse Int
pHttpStatus_ =
  ListVehiclesResponse'
    { $sel:nextToken:ListVehiclesResponse' :: Maybe Text
nextToken = forall a. Maybe a
Prelude.Nothing,
      $sel:vehicleSummaries:ListVehiclesResponse' :: Maybe [VehicleSummary]
vehicleSummaries = forall a. Maybe a
Prelude.Nothing,
      $sel:httpStatus:ListVehiclesResponse' :: Int
httpStatus = Int
pHttpStatus_
    }

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

-- | A list of vehicles and information about them.
listVehiclesResponse_vehicleSummaries :: Lens.Lens' ListVehiclesResponse (Prelude.Maybe [VehicleSummary])
listVehiclesResponse_vehicleSummaries :: Lens' ListVehiclesResponse (Maybe [VehicleSummary])
listVehiclesResponse_vehicleSummaries = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListVehiclesResponse' {Maybe [VehicleSummary]
vehicleSummaries :: Maybe [VehicleSummary]
$sel:vehicleSummaries:ListVehiclesResponse' :: ListVehiclesResponse -> Maybe [VehicleSummary]
vehicleSummaries} -> Maybe [VehicleSummary]
vehicleSummaries) (\s :: ListVehiclesResponse
s@ListVehiclesResponse' {} Maybe [VehicleSummary]
a -> ListVehiclesResponse
s {$sel:vehicleSummaries:ListVehiclesResponse' :: Maybe [VehicleSummary]
vehicleSummaries = Maybe [VehicleSummary]
a} :: ListVehiclesResponse) 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.
listVehiclesResponse_httpStatus :: Lens.Lens' ListVehiclesResponse Prelude.Int
listVehiclesResponse_httpStatus :: Lens' ListVehiclesResponse Int
listVehiclesResponse_httpStatus = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListVehiclesResponse' {Int
httpStatus :: Int
$sel:httpStatus:ListVehiclesResponse' :: ListVehiclesResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: ListVehiclesResponse
s@ListVehiclesResponse' {} Int
a -> ListVehiclesResponse
s {$sel:httpStatus:ListVehiclesResponse' :: Int
httpStatus = Int
a} :: ListVehiclesResponse)

instance Prelude.NFData ListVehiclesResponse where
  rnf :: ListVehiclesResponse -> ()
rnf ListVehiclesResponse' {Int
Maybe [VehicleSummary]
Maybe Text
httpStatus :: Int
vehicleSummaries :: Maybe [VehicleSummary]
nextToken :: Maybe Text
$sel:httpStatus:ListVehiclesResponse' :: ListVehiclesResponse -> Int
$sel:vehicleSummaries:ListVehiclesResponse' :: ListVehiclesResponse -> Maybe [VehicleSummary]
$sel:nextToken:ListVehiclesResponse' :: ListVehiclesResponse -> 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 [VehicleSummary]
vehicleSummaries
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Int
httpStatus