{-# 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.SageMaker.ListDeviceFleets
-- 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 a list of devices in the fleet.
--
-- This operation returns paginated results.
module Amazonka.SageMaker.ListDeviceFleets
  ( -- * Creating a Request
    ListDeviceFleets (..),
    newListDeviceFleets,

    -- * Request Lenses
    listDeviceFleets_nameContains,
    listDeviceFleets_lastModifiedTimeBefore,
    listDeviceFleets_creationTimeAfter,
    listDeviceFleets_nextToken,
    listDeviceFleets_sortOrder,
    listDeviceFleets_lastModifiedTimeAfter,
    listDeviceFleets_creationTimeBefore,
    listDeviceFleets_maxResults,
    listDeviceFleets_sortBy,

    -- * Destructuring the Response
    ListDeviceFleetsResponse (..),
    newListDeviceFleetsResponse,

    -- * Response Lenses
    listDeviceFleetsResponse_nextToken,
    listDeviceFleetsResponse_httpStatus,
    listDeviceFleetsResponse_deviceFleetSummaries,
  )
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.SageMaker.Types

-- | /See:/ 'newListDeviceFleets' smart constructor.
data ListDeviceFleets = ListDeviceFleets'
  { -- | Filter for fleets containing this name in their fleet device name.
    ListDeviceFleets -> Maybe Text
nameContains :: Prelude.Maybe Prelude.Text,
    -- | Select fleets where the job was updated before X
    ListDeviceFleets -> Maybe POSIX
lastModifiedTimeBefore :: Prelude.Maybe Core.POSIX,
    -- | Filter fleets where packaging job was created after specified time.
    ListDeviceFleets -> Maybe POSIX
creationTimeAfter :: Prelude.Maybe Core.POSIX,
    -- | The response from the last list when returning a list large enough to
    -- need tokening.
    ListDeviceFleets -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
    -- | What direction to sort in.
    ListDeviceFleets -> Maybe SortOrder
sortOrder :: Prelude.Maybe SortOrder,
    -- | Select fleets where the job was updated after X
    ListDeviceFleets -> Maybe POSIX
lastModifiedTimeAfter :: Prelude.Maybe Core.POSIX,
    -- | Filter fleets where the edge packaging job was created before specified
    -- time.
    ListDeviceFleets -> Maybe POSIX
creationTimeBefore :: Prelude.Maybe Core.POSIX,
    -- | The maximum number of results to select.
    ListDeviceFleets -> Maybe Int
maxResults :: Prelude.Maybe Prelude.Int,
    -- | The column to sort by.
    ListDeviceFleets -> Maybe ListDeviceFleetsSortBy
sortBy :: Prelude.Maybe ListDeviceFleetsSortBy
  }
  deriving (ListDeviceFleets -> ListDeviceFleets -> Bool
(ListDeviceFleets -> ListDeviceFleets -> Bool)
-> (ListDeviceFleets -> ListDeviceFleets -> Bool)
-> Eq ListDeviceFleets
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListDeviceFleets -> ListDeviceFleets -> Bool
$c/= :: ListDeviceFleets -> ListDeviceFleets -> Bool
== :: ListDeviceFleets -> ListDeviceFleets -> Bool
$c== :: ListDeviceFleets -> ListDeviceFleets -> Bool
Prelude.Eq, ReadPrec [ListDeviceFleets]
ReadPrec ListDeviceFleets
Int -> ReadS ListDeviceFleets
ReadS [ListDeviceFleets]
(Int -> ReadS ListDeviceFleets)
-> ReadS [ListDeviceFleets]
-> ReadPrec ListDeviceFleets
-> ReadPrec [ListDeviceFleets]
-> Read ListDeviceFleets
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListDeviceFleets]
$creadListPrec :: ReadPrec [ListDeviceFleets]
readPrec :: ReadPrec ListDeviceFleets
$creadPrec :: ReadPrec ListDeviceFleets
readList :: ReadS [ListDeviceFleets]
$creadList :: ReadS [ListDeviceFleets]
readsPrec :: Int -> ReadS ListDeviceFleets
$creadsPrec :: Int -> ReadS ListDeviceFleets
Prelude.Read, Int -> ListDeviceFleets -> ShowS
[ListDeviceFleets] -> ShowS
ListDeviceFleets -> String
(Int -> ListDeviceFleets -> ShowS)
-> (ListDeviceFleets -> String)
-> ([ListDeviceFleets] -> ShowS)
-> Show ListDeviceFleets
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListDeviceFleets] -> ShowS
$cshowList :: [ListDeviceFleets] -> ShowS
show :: ListDeviceFleets -> String
$cshow :: ListDeviceFleets -> String
showsPrec :: Int -> ListDeviceFleets -> ShowS
$cshowsPrec :: Int -> ListDeviceFleets -> ShowS
Prelude.Show, (forall x. ListDeviceFleets -> Rep ListDeviceFleets x)
-> (forall x. Rep ListDeviceFleets x -> ListDeviceFleets)
-> Generic ListDeviceFleets
forall x. Rep ListDeviceFleets x -> ListDeviceFleets
forall x. ListDeviceFleets -> Rep ListDeviceFleets x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ListDeviceFleets x -> ListDeviceFleets
$cfrom :: forall x. ListDeviceFleets -> Rep ListDeviceFleets x
Prelude.Generic)

-- |
-- Create a value of 'ListDeviceFleets' 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:
--
-- 'nameContains', 'listDeviceFleets_nameContains' - Filter for fleets containing this name in their fleet device name.
--
-- 'lastModifiedTimeBefore', 'listDeviceFleets_lastModifiedTimeBefore' - Select fleets where the job was updated before X
--
-- 'creationTimeAfter', 'listDeviceFleets_creationTimeAfter' - Filter fleets where packaging job was created after specified time.
--
-- 'nextToken', 'listDeviceFleets_nextToken' - The response from the last list when returning a list large enough to
-- need tokening.
--
-- 'sortOrder', 'listDeviceFleets_sortOrder' - What direction to sort in.
--
-- 'lastModifiedTimeAfter', 'listDeviceFleets_lastModifiedTimeAfter' - Select fleets where the job was updated after X
--
-- 'creationTimeBefore', 'listDeviceFleets_creationTimeBefore' - Filter fleets where the edge packaging job was created before specified
-- time.
--
-- 'maxResults', 'listDeviceFleets_maxResults' - The maximum number of results to select.
--
-- 'sortBy', 'listDeviceFleets_sortBy' - The column to sort by.
newListDeviceFleets ::
  ListDeviceFleets
newListDeviceFleets :: ListDeviceFleets
newListDeviceFleets =
  ListDeviceFleets' :: Maybe Text
-> Maybe POSIX
-> Maybe POSIX
-> Maybe Text
-> Maybe SortOrder
-> Maybe POSIX
-> Maybe POSIX
-> Maybe Int
-> Maybe ListDeviceFleetsSortBy
-> ListDeviceFleets
ListDeviceFleets'
    { $sel:nameContains:ListDeviceFleets' :: Maybe Text
nameContains = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:lastModifiedTimeBefore:ListDeviceFleets' :: Maybe POSIX
lastModifiedTimeBefore = Maybe POSIX
forall a. Maybe a
Prelude.Nothing,
      $sel:creationTimeAfter:ListDeviceFleets' :: Maybe POSIX
creationTimeAfter = Maybe POSIX
forall a. Maybe a
Prelude.Nothing,
      $sel:nextToken:ListDeviceFleets' :: Maybe Text
nextToken = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:sortOrder:ListDeviceFleets' :: Maybe SortOrder
sortOrder = Maybe SortOrder
forall a. Maybe a
Prelude.Nothing,
      $sel:lastModifiedTimeAfter:ListDeviceFleets' :: Maybe POSIX
lastModifiedTimeAfter = Maybe POSIX
forall a. Maybe a
Prelude.Nothing,
      $sel:creationTimeBefore:ListDeviceFleets' :: Maybe POSIX
creationTimeBefore = Maybe POSIX
forall a. Maybe a
Prelude.Nothing,
      $sel:maxResults:ListDeviceFleets' :: Maybe Int
maxResults = Maybe Int
forall a. Maybe a
Prelude.Nothing,
      $sel:sortBy:ListDeviceFleets' :: Maybe ListDeviceFleetsSortBy
sortBy = Maybe ListDeviceFleetsSortBy
forall a. Maybe a
Prelude.Nothing
    }

-- | Filter for fleets containing this name in their fleet device name.
listDeviceFleets_nameContains :: Lens.Lens' ListDeviceFleets (Prelude.Maybe Prelude.Text)
listDeviceFleets_nameContains :: (Maybe Text -> f (Maybe Text))
-> ListDeviceFleets -> f ListDeviceFleets
listDeviceFleets_nameContains = (ListDeviceFleets -> Maybe Text)
-> (ListDeviceFleets -> Maybe Text -> ListDeviceFleets)
-> Lens ListDeviceFleets ListDeviceFleets (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListDeviceFleets' {Maybe Text
nameContains :: Maybe Text
$sel:nameContains:ListDeviceFleets' :: ListDeviceFleets -> Maybe Text
nameContains} -> Maybe Text
nameContains) (\s :: ListDeviceFleets
s@ListDeviceFleets' {} Maybe Text
a -> ListDeviceFleets
s {$sel:nameContains:ListDeviceFleets' :: Maybe Text
nameContains = Maybe Text
a} :: ListDeviceFleets)

-- | Select fleets where the job was updated before X
listDeviceFleets_lastModifiedTimeBefore :: Lens.Lens' ListDeviceFleets (Prelude.Maybe Prelude.UTCTime)
listDeviceFleets_lastModifiedTimeBefore :: (Maybe UTCTime -> f (Maybe UTCTime))
-> ListDeviceFleets -> f ListDeviceFleets
listDeviceFleets_lastModifiedTimeBefore = (ListDeviceFleets -> Maybe POSIX)
-> (ListDeviceFleets -> Maybe POSIX -> ListDeviceFleets)
-> Lens
     ListDeviceFleets ListDeviceFleets (Maybe POSIX) (Maybe POSIX)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListDeviceFleets' {Maybe POSIX
lastModifiedTimeBefore :: Maybe POSIX
$sel:lastModifiedTimeBefore:ListDeviceFleets' :: ListDeviceFleets -> Maybe POSIX
lastModifiedTimeBefore} -> Maybe POSIX
lastModifiedTimeBefore) (\s :: ListDeviceFleets
s@ListDeviceFleets' {} Maybe POSIX
a -> ListDeviceFleets
s {$sel:lastModifiedTimeBefore:ListDeviceFleets' :: Maybe POSIX
lastModifiedTimeBefore = Maybe POSIX
a} :: ListDeviceFleets) ((Maybe POSIX -> f (Maybe POSIX))
 -> ListDeviceFleets -> f ListDeviceFleets)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
    -> Maybe POSIX -> f (Maybe POSIX))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> ListDeviceFleets
-> f ListDeviceFleets
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso POSIX POSIX UTCTime UTCTime
-> Iso (Maybe POSIX) (Maybe POSIX) (Maybe UTCTime) (Maybe UTCTime)
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 POSIX POSIX UTCTime UTCTime
forall (a :: Format). Iso' (Time a) UTCTime
Core._Time

-- | Filter fleets where packaging job was created after specified time.
listDeviceFleets_creationTimeAfter :: Lens.Lens' ListDeviceFleets (Prelude.Maybe Prelude.UTCTime)
listDeviceFleets_creationTimeAfter :: (Maybe UTCTime -> f (Maybe UTCTime))
-> ListDeviceFleets -> f ListDeviceFleets
listDeviceFleets_creationTimeAfter = (ListDeviceFleets -> Maybe POSIX)
-> (ListDeviceFleets -> Maybe POSIX -> ListDeviceFleets)
-> Lens
     ListDeviceFleets ListDeviceFleets (Maybe POSIX) (Maybe POSIX)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListDeviceFleets' {Maybe POSIX
creationTimeAfter :: Maybe POSIX
$sel:creationTimeAfter:ListDeviceFleets' :: ListDeviceFleets -> Maybe POSIX
creationTimeAfter} -> Maybe POSIX
creationTimeAfter) (\s :: ListDeviceFleets
s@ListDeviceFleets' {} Maybe POSIX
a -> ListDeviceFleets
s {$sel:creationTimeAfter:ListDeviceFleets' :: Maybe POSIX
creationTimeAfter = Maybe POSIX
a} :: ListDeviceFleets) ((Maybe POSIX -> f (Maybe POSIX))
 -> ListDeviceFleets -> f ListDeviceFleets)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
    -> Maybe POSIX -> f (Maybe POSIX))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> ListDeviceFleets
-> f ListDeviceFleets
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso POSIX POSIX UTCTime UTCTime
-> Iso (Maybe POSIX) (Maybe POSIX) (Maybe UTCTime) (Maybe UTCTime)
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 POSIX POSIX UTCTime UTCTime
forall (a :: Format). Iso' (Time a) UTCTime
Core._Time

-- | The response from the last list when returning a list large enough to
-- need tokening.
listDeviceFleets_nextToken :: Lens.Lens' ListDeviceFleets (Prelude.Maybe Prelude.Text)
listDeviceFleets_nextToken :: (Maybe Text -> f (Maybe Text))
-> ListDeviceFleets -> f ListDeviceFleets
listDeviceFleets_nextToken = (ListDeviceFleets -> Maybe Text)
-> (ListDeviceFleets -> Maybe Text -> ListDeviceFleets)
-> Lens ListDeviceFleets ListDeviceFleets (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListDeviceFleets' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListDeviceFleets' :: ListDeviceFleets -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListDeviceFleets
s@ListDeviceFleets' {} Maybe Text
a -> ListDeviceFleets
s {$sel:nextToken:ListDeviceFleets' :: Maybe Text
nextToken = Maybe Text
a} :: ListDeviceFleets)

-- | What direction to sort in.
listDeviceFleets_sortOrder :: Lens.Lens' ListDeviceFleets (Prelude.Maybe SortOrder)
listDeviceFleets_sortOrder :: (Maybe SortOrder -> f (Maybe SortOrder))
-> ListDeviceFleets -> f ListDeviceFleets
listDeviceFleets_sortOrder = (ListDeviceFleets -> Maybe SortOrder)
-> (ListDeviceFleets -> Maybe SortOrder -> ListDeviceFleets)
-> Lens
     ListDeviceFleets
     ListDeviceFleets
     (Maybe SortOrder)
     (Maybe SortOrder)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListDeviceFleets' {Maybe SortOrder
sortOrder :: Maybe SortOrder
$sel:sortOrder:ListDeviceFleets' :: ListDeviceFleets -> Maybe SortOrder
sortOrder} -> Maybe SortOrder
sortOrder) (\s :: ListDeviceFleets
s@ListDeviceFleets' {} Maybe SortOrder
a -> ListDeviceFleets
s {$sel:sortOrder:ListDeviceFleets' :: Maybe SortOrder
sortOrder = Maybe SortOrder
a} :: ListDeviceFleets)

-- | Select fleets where the job was updated after X
listDeviceFleets_lastModifiedTimeAfter :: Lens.Lens' ListDeviceFleets (Prelude.Maybe Prelude.UTCTime)
listDeviceFleets_lastModifiedTimeAfter :: (Maybe UTCTime -> f (Maybe UTCTime))
-> ListDeviceFleets -> f ListDeviceFleets
listDeviceFleets_lastModifiedTimeAfter = (ListDeviceFleets -> Maybe POSIX)
-> (ListDeviceFleets -> Maybe POSIX -> ListDeviceFleets)
-> Lens
     ListDeviceFleets ListDeviceFleets (Maybe POSIX) (Maybe POSIX)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListDeviceFleets' {Maybe POSIX
lastModifiedTimeAfter :: Maybe POSIX
$sel:lastModifiedTimeAfter:ListDeviceFleets' :: ListDeviceFleets -> Maybe POSIX
lastModifiedTimeAfter} -> Maybe POSIX
lastModifiedTimeAfter) (\s :: ListDeviceFleets
s@ListDeviceFleets' {} Maybe POSIX
a -> ListDeviceFleets
s {$sel:lastModifiedTimeAfter:ListDeviceFleets' :: Maybe POSIX
lastModifiedTimeAfter = Maybe POSIX
a} :: ListDeviceFleets) ((Maybe POSIX -> f (Maybe POSIX))
 -> ListDeviceFleets -> f ListDeviceFleets)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
    -> Maybe POSIX -> f (Maybe POSIX))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> ListDeviceFleets
-> f ListDeviceFleets
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso POSIX POSIX UTCTime UTCTime
-> Iso (Maybe POSIX) (Maybe POSIX) (Maybe UTCTime) (Maybe UTCTime)
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 POSIX POSIX UTCTime UTCTime
forall (a :: Format). Iso' (Time a) UTCTime
Core._Time

-- | Filter fleets where the edge packaging job was created before specified
-- time.
listDeviceFleets_creationTimeBefore :: Lens.Lens' ListDeviceFleets (Prelude.Maybe Prelude.UTCTime)
listDeviceFleets_creationTimeBefore :: (Maybe UTCTime -> f (Maybe UTCTime))
-> ListDeviceFleets -> f ListDeviceFleets
listDeviceFleets_creationTimeBefore = (ListDeviceFleets -> Maybe POSIX)
-> (ListDeviceFleets -> Maybe POSIX -> ListDeviceFleets)
-> Lens
     ListDeviceFleets ListDeviceFleets (Maybe POSIX) (Maybe POSIX)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListDeviceFleets' {Maybe POSIX
creationTimeBefore :: Maybe POSIX
$sel:creationTimeBefore:ListDeviceFleets' :: ListDeviceFleets -> Maybe POSIX
creationTimeBefore} -> Maybe POSIX
creationTimeBefore) (\s :: ListDeviceFleets
s@ListDeviceFleets' {} Maybe POSIX
a -> ListDeviceFleets
s {$sel:creationTimeBefore:ListDeviceFleets' :: Maybe POSIX
creationTimeBefore = Maybe POSIX
a} :: ListDeviceFleets) ((Maybe POSIX -> f (Maybe POSIX))
 -> ListDeviceFleets -> f ListDeviceFleets)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
    -> Maybe POSIX -> f (Maybe POSIX))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> ListDeviceFleets
-> f ListDeviceFleets
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso POSIX POSIX UTCTime UTCTime
-> Iso (Maybe POSIX) (Maybe POSIX) (Maybe UTCTime) (Maybe UTCTime)
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 POSIX POSIX UTCTime UTCTime
forall (a :: Format). Iso' (Time a) UTCTime
Core._Time

-- | The maximum number of results to select.
listDeviceFleets_maxResults :: Lens.Lens' ListDeviceFleets (Prelude.Maybe Prelude.Int)
listDeviceFleets_maxResults :: (Maybe Int -> f (Maybe Int))
-> ListDeviceFleets -> f ListDeviceFleets
listDeviceFleets_maxResults = (ListDeviceFleets -> Maybe Int)
-> (ListDeviceFleets -> Maybe Int -> ListDeviceFleets)
-> Lens ListDeviceFleets ListDeviceFleets (Maybe Int) (Maybe Int)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListDeviceFleets' {Maybe Int
maxResults :: Maybe Int
$sel:maxResults:ListDeviceFleets' :: ListDeviceFleets -> Maybe Int
maxResults} -> Maybe Int
maxResults) (\s :: ListDeviceFleets
s@ListDeviceFleets' {} Maybe Int
a -> ListDeviceFleets
s {$sel:maxResults:ListDeviceFleets' :: Maybe Int
maxResults = Maybe Int
a} :: ListDeviceFleets)

-- | The column to sort by.
listDeviceFleets_sortBy :: Lens.Lens' ListDeviceFleets (Prelude.Maybe ListDeviceFleetsSortBy)
listDeviceFleets_sortBy :: (Maybe ListDeviceFleetsSortBy -> f (Maybe ListDeviceFleetsSortBy))
-> ListDeviceFleets -> f ListDeviceFleets
listDeviceFleets_sortBy = (ListDeviceFleets -> Maybe ListDeviceFleetsSortBy)
-> (ListDeviceFleets
    -> Maybe ListDeviceFleetsSortBy -> ListDeviceFleets)
-> Lens
     ListDeviceFleets
     ListDeviceFleets
     (Maybe ListDeviceFleetsSortBy)
     (Maybe ListDeviceFleetsSortBy)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListDeviceFleets' {Maybe ListDeviceFleetsSortBy
sortBy :: Maybe ListDeviceFleetsSortBy
$sel:sortBy:ListDeviceFleets' :: ListDeviceFleets -> Maybe ListDeviceFleetsSortBy
sortBy} -> Maybe ListDeviceFleetsSortBy
sortBy) (\s :: ListDeviceFleets
s@ListDeviceFleets' {} Maybe ListDeviceFleetsSortBy
a -> ListDeviceFleets
s {$sel:sortBy:ListDeviceFleets' :: Maybe ListDeviceFleetsSortBy
sortBy = Maybe ListDeviceFleetsSortBy
a} :: ListDeviceFleets)

instance Core.AWSPager ListDeviceFleets where
  page :: ListDeviceFleets
-> AWSResponse ListDeviceFleets -> Maybe ListDeviceFleets
page ListDeviceFleets
rq AWSResponse ListDeviceFleets
rs
    | Maybe Text -> Bool
forall a. AWSTruncated a => a -> Bool
Core.stop
        ( AWSResponse ListDeviceFleets
ListDeviceFleetsResponse
rs
            ListDeviceFleetsResponse
-> Getting (First Text) ListDeviceFleetsResponse Text -> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Text -> Const (First Text) (Maybe Text))
-> ListDeviceFleetsResponse
-> Const (First Text) ListDeviceFleetsResponse
Lens' ListDeviceFleetsResponse (Maybe Text)
listDeviceFleetsResponse_nextToken
              ((Maybe Text -> Const (First Text) (Maybe Text))
 -> ListDeviceFleetsResponse
 -> Const (First Text) ListDeviceFleetsResponse)
-> ((Text -> Const (First Text) Text)
    -> Maybe Text -> Const (First Text) (Maybe Text))
-> Getting (First Text) ListDeviceFleetsResponse 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 ListDeviceFleets
forall a. Maybe a
Prelude.Nothing
    | [DeviceFleetSummary] -> Bool
forall a. AWSTruncated a => a -> Bool
Core.stop
        ( AWSResponse ListDeviceFleets
ListDeviceFleetsResponse
rs
            ListDeviceFleetsResponse
-> Getting
     [DeviceFleetSummary] ListDeviceFleetsResponse [DeviceFleetSummary]
-> [DeviceFleetSummary]
forall s a. s -> Getting a s a -> a
Lens.^. Getting
  [DeviceFleetSummary] ListDeviceFleetsResponse [DeviceFleetSummary]
Lens' ListDeviceFleetsResponse [DeviceFleetSummary]
listDeviceFleetsResponse_deviceFleetSummaries
        ) =
      Maybe ListDeviceFleets
forall a. Maybe a
Prelude.Nothing
    | Bool
Prelude.otherwise =
      ListDeviceFleets -> Maybe ListDeviceFleets
forall a. a -> Maybe a
Prelude.Just (ListDeviceFleets -> Maybe ListDeviceFleets)
-> ListDeviceFleets -> Maybe ListDeviceFleets
forall a b. (a -> b) -> a -> b
Prelude.$
        ListDeviceFleets
rq
          ListDeviceFleets
-> (ListDeviceFleets -> ListDeviceFleets) -> ListDeviceFleets
forall a b. a -> (a -> b) -> b
Prelude.& (Maybe Text -> Identity (Maybe Text))
-> ListDeviceFleets -> Identity ListDeviceFleets
Lens ListDeviceFleets ListDeviceFleets (Maybe Text) (Maybe Text)
listDeviceFleets_nextToken
          ((Maybe Text -> Identity (Maybe Text))
 -> ListDeviceFleets -> Identity ListDeviceFleets)
-> Maybe Text -> ListDeviceFleets -> ListDeviceFleets
forall s t a b. ASetter s t a b -> b -> s -> t
Lens..~ AWSResponse ListDeviceFleets
ListDeviceFleetsResponse
rs
          ListDeviceFleetsResponse
-> Getting (First Text) ListDeviceFleetsResponse Text -> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Text -> Const (First Text) (Maybe Text))
-> ListDeviceFleetsResponse
-> Const (First Text) ListDeviceFleetsResponse
Lens' ListDeviceFleetsResponse (Maybe Text)
listDeviceFleetsResponse_nextToken
            ((Maybe Text -> Const (First Text) (Maybe Text))
 -> ListDeviceFleetsResponse
 -> Const (First Text) ListDeviceFleetsResponse)
-> ((Text -> Const (First Text) Text)
    -> Maybe Text -> Const (First Text) (Maybe Text))
-> Getting (First Text) ListDeviceFleetsResponse 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 ListDeviceFleets where
  type
    AWSResponse ListDeviceFleets =
      ListDeviceFleetsResponse
  request :: ListDeviceFleets -> Request ListDeviceFleets
request = Service -> ListDeviceFleets -> Request ListDeviceFleets
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
  response :: Logger
-> Service
-> Proxy ListDeviceFleets
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse ListDeviceFleets)))
response =
    (Int
 -> ResponseHeaders
 -> Object
 -> Either String (AWSResponse ListDeviceFleets))
-> Logger
-> Service
-> Proxy ListDeviceFleets
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse ListDeviceFleets)))
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
-> Int -> [DeviceFleetSummary] -> ListDeviceFleetsResponse
ListDeviceFleetsResponse'
            (Maybe Text
 -> Int -> [DeviceFleetSummary] -> ListDeviceFleetsResponse)
-> Either String (Maybe Text)
-> Either
     String (Int -> [DeviceFleetSummary] -> ListDeviceFleetsResponse)
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 (Int -> [DeviceFleetSummary] -> ListDeviceFleetsResponse)
-> Either String Int
-> Either String ([DeviceFleetSummary] -> ListDeviceFleetsResponse)
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))
            Either String ([DeviceFleetSummary] -> ListDeviceFleetsResponse)
-> Either String [DeviceFleetSummary]
-> Either String ListDeviceFleetsResponse
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ( Object
x Object -> Text -> Either String (Maybe [DeviceFleetSummary])
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"DeviceFleetSummaries"
                            Either String (Maybe [DeviceFleetSummary])
-> [DeviceFleetSummary] -> Either String [DeviceFleetSummary]
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ [DeviceFleetSummary]
forall a. Monoid a => a
Prelude.mempty
                        )
      )

instance Prelude.Hashable ListDeviceFleets

instance Prelude.NFData ListDeviceFleets

instance Core.ToHeaders ListDeviceFleets where
  toHeaders :: ListDeviceFleets -> ResponseHeaders
toHeaders =
    ResponseHeaders -> ListDeviceFleets -> ResponseHeaders
forall a b. a -> b -> a
Prelude.const
      ( [ResponseHeaders] -> ResponseHeaders
forall a. Monoid a => [a] -> a
Prelude.mconcat
          [ HeaderName
"X-Amz-Target"
              HeaderName -> ByteString -> ResponseHeaders
forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Core.=# (ByteString
"SageMaker.ListDeviceFleets" :: Prelude.ByteString),
            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.ToJSON ListDeviceFleets where
  toJSON :: ListDeviceFleets -> Value
toJSON ListDeviceFleets' {Maybe Int
Maybe Text
Maybe POSIX
Maybe ListDeviceFleetsSortBy
Maybe SortOrder
sortBy :: Maybe ListDeviceFleetsSortBy
maxResults :: Maybe Int
creationTimeBefore :: Maybe POSIX
lastModifiedTimeAfter :: Maybe POSIX
sortOrder :: Maybe SortOrder
nextToken :: Maybe Text
creationTimeAfter :: Maybe POSIX
lastModifiedTimeBefore :: Maybe POSIX
nameContains :: Maybe Text
$sel:sortBy:ListDeviceFleets' :: ListDeviceFleets -> Maybe ListDeviceFleetsSortBy
$sel:maxResults:ListDeviceFleets' :: ListDeviceFleets -> Maybe Int
$sel:creationTimeBefore:ListDeviceFleets' :: ListDeviceFleets -> Maybe POSIX
$sel:lastModifiedTimeAfter:ListDeviceFleets' :: ListDeviceFleets -> Maybe POSIX
$sel:sortOrder:ListDeviceFleets' :: ListDeviceFleets -> Maybe SortOrder
$sel:nextToken:ListDeviceFleets' :: ListDeviceFleets -> Maybe Text
$sel:creationTimeAfter:ListDeviceFleets' :: ListDeviceFleets -> Maybe POSIX
$sel:lastModifiedTimeBefore:ListDeviceFleets' :: ListDeviceFleets -> Maybe POSIX
$sel:nameContains:ListDeviceFleets' :: ListDeviceFleets -> Maybe Text
..} =
    [Pair] -> Value
Core.object
      ( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
          [ (Text
"NameContains" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (Text -> Pair) -> Maybe Text -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
nameContains,
            (Text
"LastModifiedTimeBefore" Text -> POSIX -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
              (POSIX -> Pair) -> Maybe POSIX -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe POSIX
lastModifiedTimeBefore,
            (Text
"CreationTimeAfter" Text -> POSIX -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
              (POSIX -> Pair) -> Maybe POSIX -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe POSIX
creationTimeAfter,
            (Text
"NextToken" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (Text -> Pair) -> Maybe Text -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
nextToken,
            (Text
"SortOrder" Text -> SortOrder -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (SortOrder -> Pair) -> Maybe SortOrder -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe SortOrder
sortOrder,
            (Text
"LastModifiedTimeAfter" Text -> POSIX -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
              (POSIX -> Pair) -> Maybe POSIX -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe POSIX
lastModifiedTimeAfter,
            (Text
"CreationTimeBefore" Text -> POSIX -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
              (POSIX -> Pair) -> Maybe POSIX -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe POSIX
creationTimeBefore,
            (Text
"MaxResults" Text -> Int -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (Int -> Pair) -> Maybe Int -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Int
maxResults,
            (Text
"SortBy" Text -> ListDeviceFleetsSortBy -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (ListDeviceFleetsSortBy -> Pair)
-> Maybe ListDeviceFleetsSortBy -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe ListDeviceFleetsSortBy
sortBy
          ]
      )

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

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

-- | /See:/ 'newListDeviceFleetsResponse' smart constructor.
data ListDeviceFleetsResponse = ListDeviceFleetsResponse'
  { -- | The response from the last list when returning a list large enough to
    -- need tokening.
    ListDeviceFleetsResponse -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
    -- | The response's http status code.
    ListDeviceFleetsResponse -> Int
httpStatus :: Prelude.Int,
    -- | Summary of the device fleet.
    ListDeviceFleetsResponse -> [DeviceFleetSummary]
deviceFleetSummaries :: [DeviceFleetSummary]
  }
  deriving (ListDeviceFleetsResponse -> ListDeviceFleetsResponse -> Bool
(ListDeviceFleetsResponse -> ListDeviceFleetsResponse -> Bool)
-> (ListDeviceFleetsResponse -> ListDeviceFleetsResponse -> Bool)
-> Eq ListDeviceFleetsResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListDeviceFleetsResponse -> ListDeviceFleetsResponse -> Bool
$c/= :: ListDeviceFleetsResponse -> ListDeviceFleetsResponse -> Bool
== :: ListDeviceFleetsResponse -> ListDeviceFleetsResponse -> Bool
$c== :: ListDeviceFleetsResponse -> ListDeviceFleetsResponse -> Bool
Prelude.Eq, ReadPrec [ListDeviceFleetsResponse]
ReadPrec ListDeviceFleetsResponse
Int -> ReadS ListDeviceFleetsResponse
ReadS [ListDeviceFleetsResponse]
(Int -> ReadS ListDeviceFleetsResponse)
-> ReadS [ListDeviceFleetsResponse]
-> ReadPrec ListDeviceFleetsResponse
-> ReadPrec [ListDeviceFleetsResponse]
-> Read ListDeviceFleetsResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListDeviceFleetsResponse]
$creadListPrec :: ReadPrec [ListDeviceFleetsResponse]
readPrec :: ReadPrec ListDeviceFleetsResponse
$creadPrec :: ReadPrec ListDeviceFleetsResponse
readList :: ReadS [ListDeviceFleetsResponse]
$creadList :: ReadS [ListDeviceFleetsResponse]
readsPrec :: Int -> ReadS ListDeviceFleetsResponse
$creadsPrec :: Int -> ReadS ListDeviceFleetsResponse
Prelude.Read, Int -> ListDeviceFleetsResponse -> ShowS
[ListDeviceFleetsResponse] -> ShowS
ListDeviceFleetsResponse -> String
(Int -> ListDeviceFleetsResponse -> ShowS)
-> (ListDeviceFleetsResponse -> String)
-> ([ListDeviceFleetsResponse] -> ShowS)
-> Show ListDeviceFleetsResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListDeviceFleetsResponse] -> ShowS
$cshowList :: [ListDeviceFleetsResponse] -> ShowS
show :: ListDeviceFleetsResponse -> String
$cshow :: ListDeviceFleetsResponse -> String
showsPrec :: Int -> ListDeviceFleetsResponse -> ShowS
$cshowsPrec :: Int -> ListDeviceFleetsResponse -> ShowS
Prelude.Show, (forall x.
 ListDeviceFleetsResponse -> Rep ListDeviceFleetsResponse x)
-> (forall x.
    Rep ListDeviceFleetsResponse x -> ListDeviceFleetsResponse)
-> Generic ListDeviceFleetsResponse
forall x.
Rep ListDeviceFleetsResponse x -> ListDeviceFleetsResponse
forall x.
ListDeviceFleetsResponse -> Rep ListDeviceFleetsResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ListDeviceFleetsResponse x -> ListDeviceFleetsResponse
$cfrom :: forall x.
ListDeviceFleetsResponse -> Rep ListDeviceFleetsResponse x
Prelude.Generic)

-- |
-- Create a value of 'ListDeviceFleetsResponse' 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', 'listDeviceFleetsResponse_nextToken' - The response from the last list when returning a list large enough to
-- need tokening.
--
-- 'httpStatus', 'listDeviceFleetsResponse_httpStatus' - The response's http status code.
--
-- 'deviceFleetSummaries', 'listDeviceFleetsResponse_deviceFleetSummaries' - Summary of the device fleet.
newListDeviceFleetsResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  ListDeviceFleetsResponse
newListDeviceFleetsResponse :: Int -> ListDeviceFleetsResponse
newListDeviceFleetsResponse Int
pHttpStatus_ =
  ListDeviceFleetsResponse' :: Maybe Text
-> Int -> [DeviceFleetSummary] -> ListDeviceFleetsResponse
ListDeviceFleetsResponse'
    { $sel:nextToken:ListDeviceFleetsResponse' :: Maybe Text
nextToken =
        Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:httpStatus:ListDeviceFleetsResponse' :: Int
httpStatus = Int
pHttpStatus_,
      $sel:deviceFleetSummaries:ListDeviceFleetsResponse' :: [DeviceFleetSummary]
deviceFleetSummaries = [DeviceFleetSummary]
forall a. Monoid a => a
Prelude.mempty
    }

-- | The response from the last list when returning a list large enough to
-- need tokening.
listDeviceFleetsResponse_nextToken :: Lens.Lens' ListDeviceFleetsResponse (Prelude.Maybe Prelude.Text)
listDeviceFleetsResponse_nextToken :: (Maybe Text -> f (Maybe Text))
-> ListDeviceFleetsResponse -> f ListDeviceFleetsResponse
listDeviceFleetsResponse_nextToken = (ListDeviceFleetsResponse -> Maybe Text)
-> (ListDeviceFleetsResponse
    -> Maybe Text -> ListDeviceFleetsResponse)
-> Lens' ListDeviceFleetsResponse (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListDeviceFleetsResponse' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListDeviceFleetsResponse' :: ListDeviceFleetsResponse -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListDeviceFleetsResponse
s@ListDeviceFleetsResponse' {} Maybe Text
a -> ListDeviceFleetsResponse
s {$sel:nextToken:ListDeviceFleetsResponse' :: Maybe Text
nextToken = Maybe Text
a} :: ListDeviceFleetsResponse)

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

-- | Summary of the device fleet.
listDeviceFleetsResponse_deviceFleetSummaries :: Lens.Lens' ListDeviceFleetsResponse [DeviceFleetSummary]
listDeviceFleetsResponse_deviceFleetSummaries :: ([DeviceFleetSummary] -> f [DeviceFleetSummary])
-> ListDeviceFleetsResponse -> f ListDeviceFleetsResponse
listDeviceFleetsResponse_deviceFleetSummaries = (ListDeviceFleetsResponse -> [DeviceFleetSummary])
-> (ListDeviceFleetsResponse
    -> [DeviceFleetSummary] -> ListDeviceFleetsResponse)
-> Lens' ListDeviceFleetsResponse [DeviceFleetSummary]
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListDeviceFleetsResponse' {[DeviceFleetSummary]
deviceFleetSummaries :: [DeviceFleetSummary]
$sel:deviceFleetSummaries:ListDeviceFleetsResponse' :: ListDeviceFleetsResponse -> [DeviceFleetSummary]
deviceFleetSummaries} -> [DeviceFleetSummary]
deviceFleetSummaries) (\s :: ListDeviceFleetsResponse
s@ListDeviceFleetsResponse' {} [DeviceFleetSummary]
a -> ListDeviceFleetsResponse
s {$sel:deviceFleetSummaries:ListDeviceFleetsResponse' :: [DeviceFleetSummary]
deviceFleetSummaries = [DeviceFleetSummary]
a} :: ListDeviceFleetsResponse) (([DeviceFleetSummary] -> f [DeviceFleetSummary])
 -> ListDeviceFleetsResponse -> f ListDeviceFleetsResponse)
-> (([DeviceFleetSummary] -> f [DeviceFleetSummary])
    -> [DeviceFleetSummary] -> f [DeviceFleetSummary])
-> ([DeviceFleetSummary] -> f [DeviceFleetSummary])
-> ListDeviceFleetsResponse
-> f ListDeviceFleetsResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. ([DeviceFleetSummary] -> f [DeviceFleetSummary])
-> [DeviceFleetSummary] -> f [DeviceFleetSummary]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

instance Prelude.NFData ListDeviceFleetsResponse