{-# 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.ListEdgePackagingJobs
-- 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 edge packaging jobs.
--
-- This operation returns paginated results.
module Amazonka.SageMaker.ListEdgePackagingJobs
  ( -- * Creating a Request
    ListEdgePackagingJobs (..),
    newListEdgePackagingJobs,

    -- * Request Lenses
    listEdgePackagingJobs_nameContains,
    listEdgePackagingJobs_lastModifiedTimeBefore,
    listEdgePackagingJobs_creationTimeAfter,
    listEdgePackagingJobs_nextToken,
    listEdgePackagingJobs_sortOrder,
    listEdgePackagingJobs_lastModifiedTimeAfter,
    listEdgePackagingJobs_creationTimeBefore,
    listEdgePackagingJobs_modelNameContains,
    listEdgePackagingJobs_statusEquals,
    listEdgePackagingJobs_maxResults,
    listEdgePackagingJobs_sortBy,

    -- * Destructuring the Response
    ListEdgePackagingJobsResponse (..),
    newListEdgePackagingJobsResponse,

    -- * Response Lenses
    listEdgePackagingJobsResponse_nextToken,
    listEdgePackagingJobsResponse_httpStatus,
    listEdgePackagingJobsResponse_edgePackagingJobSummaries,
  )
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:/ 'newListEdgePackagingJobs' smart constructor.
data ListEdgePackagingJobs = ListEdgePackagingJobs'
  { -- | Filter for jobs containing this name in their packaging job name.
    ListEdgePackagingJobs -> Maybe Text
nameContains :: Prelude.Maybe Prelude.Text,
    -- | Select jobs where the job was updated before specified time.
    ListEdgePackagingJobs -> Maybe POSIX
lastModifiedTimeBefore :: Prelude.Maybe Core.POSIX,
    -- | Select jobs where the job was created after specified time.
    ListEdgePackagingJobs -> Maybe POSIX
creationTimeAfter :: Prelude.Maybe Core.POSIX,
    -- | The response from the last list when returning a list large enough to
    -- need tokening.
    ListEdgePackagingJobs -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
    -- | What direction to sort by.
    ListEdgePackagingJobs -> Maybe SortOrder
sortOrder :: Prelude.Maybe SortOrder,
    -- | Select jobs where the job was updated after specified time.
    ListEdgePackagingJobs -> Maybe POSIX
lastModifiedTimeAfter :: Prelude.Maybe Core.POSIX,
    -- | Select jobs where the job was created before specified time.
    ListEdgePackagingJobs -> Maybe POSIX
creationTimeBefore :: Prelude.Maybe Core.POSIX,
    -- | Filter for jobs where the model name contains this string.
    ListEdgePackagingJobs -> Maybe Text
modelNameContains :: Prelude.Maybe Prelude.Text,
    -- | The job status to filter for.
    ListEdgePackagingJobs -> Maybe EdgePackagingJobStatus
statusEquals :: Prelude.Maybe EdgePackagingJobStatus,
    -- | Maximum number of results to select.
    ListEdgePackagingJobs -> Maybe Int
maxResults :: Prelude.Maybe Prelude.Int,
    -- | Use to specify what column to sort by.
    ListEdgePackagingJobs -> Maybe ListEdgePackagingJobsSortBy
sortBy :: Prelude.Maybe ListEdgePackagingJobsSortBy
  }
  deriving (ListEdgePackagingJobs -> ListEdgePackagingJobs -> Bool
(ListEdgePackagingJobs -> ListEdgePackagingJobs -> Bool)
-> (ListEdgePackagingJobs -> ListEdgePackagingJobs -> Bool)
-> Eq ListEdgePackagingJobs
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListEdgePackagingJobs -> ListEdgePackagingJobs -> Bool
$c/= :: ListEdgePackagingJobs -> ListEdgePackagingJobs -> Bool
== :: ListEdgePackagingJobs -> ListEdgePackagingJobs -> Bool
$c== :: ListEdgePackagingJobs -> ListEdgePackagingJobs -> Bool
Prelude.Eq, ReadPrec [ListEdgePackagingJobs]
ReadPrec ListEdgePackagingJobs
Int -> ReadS ListEdgePackagingJobs
ReadS [ListEdgePackagingJobs]
(Int -> ReadS ListEdgePackagingJobs)
-> ReadS [ListEdgePackagingJobs]
-> ReadPrec ListEdgePackagingJobs
-> ReadPrec [ListEdgePackagingJobs]
-> Read ListEdgePackagingJobs
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListEdgePackagingJobs]
$creadListPrec :: ReadPrec [ListEdgePackagingJobs]
readPrec :: ReadPrec ListEdgePackagingJobs
$creadPrec :: ReadPrec ListEdgePackagingJobs
readList :: ReadS [ListEdgePackagingJobs]
$creadList :: ReadS [ListEdgePackagingJobs]
readsPrec :: Int -> ReadS ListEdgePackagingJobs
$creadsPrec :: Int -> ReadS ListEdgePackagingJobs
Prelude.Read, Int -> ListEdgePackagingJobs -> ShowS
[ListEdgePackagingJobs] -> ShowS
ListEdgePackagingJobs -> String
(Int -> ListEdgePackagingJobs -> ShowS)
-> (ListEdgePackagingJobs -> String)
-> ([ListEdgePackagingJobs] -> ShowS)
-> Show ListEdgePackagingJobs
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListEdgePackagingJobs] -> ShowS
$cshowList :: [ListEdgePackagingJobs] -> ShowS
show :: ListEdgePackagingJobs -> String
$cshow :: ListEdgePackagingJobs -> String
showsPrec :: Int -> ListEdgePackagingJobs -> ShowS
$cshowsPrec :: Int -> ListEdgePackagingJobs -> ShowS
Prelude.Show, (forall x. ListEdgePackagingJobs -> Rep ListEdgePackagingJobs x)
-> (forall x. Rep ListEdgePackagingJobs x -> ListEdgePackagingJobs)
-> Generic ListEdgePackagingJobs
forall x. Rep ListEdgePackagingJobs x -> ListEdgePackagingJobs
forall x. ListEdgePackagingJobs -> Rep ListEdgePackagingJobs x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ListEdgePackagingJobs x -> ListEdgePackagingJobs
$cfrom :: forall x. ListEdgePackagingJobs -> Rep ListEdgePackagingJobs x
Prelude.Generic)

-- |
-- Create a value of 'ListEdgePackagingJobs' 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', 'listEdgePackagingJobs_nameContains' - Filter for jobs containing this name in their packaging job name.
--
-- 'lastModifiedTimeBefore', 'listEdgePackagingJobs_lastModifiedTimeBefore' - Select jobs where the job was updated before specified time.
--
-- 'creationTimeAfter', 'listEdgePackagingJobs_creationTimeAfter' - Select jobs where the job was created after specified time.
--
-- 'nextToken', 'listEdgePackagingJobs_nextToken' - The response from the last list when returning a list large enough to
-- need tokening.
--
-- 'sortOrder', 'listEdgePackagingJobs_sortOrder' - What direction to sort by.
--
-- 'lastModifiedTimeAfter', 'listEdgePackagingJobs_lastModifiedTimeAfter' - Select jobs where the job was updated after specified time.
--
-- 'creationTimeBefore', 'listEdgePackagingJobs_creationTimeBefore' - Select jobs where the job was created before specified time.
--
-- 'modelNameContains', 'listEdgePackagingJobs_modelNameContains' - Filter for jobs where the model name contains this string.
--
-- 'statusEquals', 'listEdgePackagingJobs_statusEquals' - The job status to filter for.
--
-- 'maxResults', 'listEdgePackagingJobs_maxResults' - Maximum number of results to select.
--
-- 'sortBy', 'listEdgePackagingJobs_sortBy' - Use to specify what column to sort by.
newListEdgePackagingJobs ::
  ListEdgePackagingJobs
newListEdgePackagingJobs :: ListEdgePackagingJobs
newListEdgePackagingJobs =
  ListEdgePackagingJobs' :: Maybe Text
-> Maybe POSIX
-> Maybe POSIX
-> Maybe Text
-> Maybe SortOrder
-> Maybe POSIX
-> Maybe POSIX
-> Maybe Text
-> Maybe EdgePackagingJobStatus
-> Maybe Int
-> Maybe ListEdgePackagingJobsSortBy
-> ListEdgePackagingJobs
ListEdgePackagingJobs'
    { $sel:nameContains:ListEdgePackagingJobs' :: Maybe Text
nameContains =
        Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:lastModifiedTimeBefore:ListEdgePackagingJobs' :: Maybe POSIX
lastModifiedTimeBefore = Maybe POSIX
forall a. Maybe a
Prelude.Nothing,
      $sel:creationTimeAfter:ListEdgePackagingJobs' :: Maybe POSIX
creationTimeAfter = Maybe POSIX
forall a. Maybe a
Prelude.Nothing,
      $sel:nextToken:ListEdgePackagingJobs' :: Maybe Text
nextToken = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:sortOrder:ListEdgePackagingJobs' :: Maybe SortOrder
sortOrder = Maybe SortOrder
forall a. Maybe a
Prelude.Nothing,
      $sel:lastModifiedTimeAfter:ListEdgePackagingJobs' :: Maybe POSIX
lastModifiedTimeAfter = Maybe POSIX
forall a. Maybe a
Prelude.Nothing,
      $sel:creationTimeBefore:ListEdgePackagingJobs' :: Maybe POSIX
creationTimeBefore = Maybe POSIX
forall a. Maybe a
Prelude.Nothing,
      $sel:modelNameContains:ListEdgePackagingJobs' :: Maybe Text
modelNameContains = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:statusEquals:ListEdgePackagingJobs' :: Maybe EdgePackagingJobStatus
statusEquals = Maybe EdgePackagingJobStatus
forall a. Maybe a
Prelude.Nothing,
      $sel:maxResults:ListEdgePackagingJobs' :: Maybe Int
maxResults = Maybe Int
forall a. Maybe a
Prelude.Nothing,
      $sel:sortBy:ListEdgePackagingJobs' :: Maybe ListEdgePackagingJobsSortBy
sortBy = Maybe ListEdgePackagingJobsSortBy
forall a. Maybe a
Prelude.Nothing
    }

-- | Filter for jobs containing this name in their packaging job name.
listEdgePackagingJobs_nameContains :: Lens.Lens' ListEdgePackagingJobs (Prelude.Maybe Prelude.Text)
listEdgePackagingJobs_nameContains :: (Maybe Text -> f (Maybe Text))
-> ListEdgePackagingJobs -> f ListEdgePackagingJobs
listEdgePackagingJobs_nameContains = (ListEdgePackagingJobs -> Maybe Text)
-> (ListEdgePackagingJobs -> Maybe Text -> ListEdgePackagingJobs)
-> Lens
     ListEdgePackagingJobs
     ListEdgePackagingJobs
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListEdgePackagingJobs' {Maybe Text
nameContains :: Maybe Text
$sel:nameContains:ListEdgePackagingJobs' :: ListEdgePackagingJobs -> Maybe Text
nameContains} -> Maybe Text
nameContains) (\s :: ListEdgePackagingJobs
s@ListEdgePackagingJobs' {} Maybe Text
a -> ListEdgePackagingJobs
s {$sel:nameContains:ListEdgePackagingJobs' :: Maybe Text
nameContains = Maybe Text
a} :: ListEdgePackagingJobs)

-- | Select jobs where the job was updated before specified time.
listEdgePackagingJobs_lastModifiedTimeBefore :: Lens.Lens' ListEdgePackagingJobs (Prelude.Maybe Prelude.UTCTime)
listEdgePackagingJobs_lastModifiedTimeBefore :: (Maybe UTCTime -> f (Maybe UTCTime))
-> ListEdgePackagingJobs -> f ListEdgePackagingJobs
listEdgePackagingJobs_lastModifiedTimeBefore = (ListEdgePackagingJobs -> Maybe POSIX)
-> (ListEdgePackagingJobs -> Maybe POSIX -> ListEdgePackagingJobs)
-> Lens
     ListEdgePackagingJobs
     ListEdgePackagingJobs
     (Maybe POSIX)
     (Maybe POSIX)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListEdgePackagingJobs' {Maybe POSIX
lastModifiedTimeBefore :: Maybe POSIX
$sel:lastModifiedTimeBefore:ListEdgePackagingJobs' :: ListEdgePackagingJobs -> Maybe POSIX
lastModifiedTimeBefore} -> Maybe POSIX
lastModifiedTimeBefore) (\s :: ListEdgePackagingJobs
s@ListEdgePackagingJobs' {} Maybe POSIX
a -> ListEdgePackagingJobs
s {$sel:lastModifiedTimeBefore:ListEdgePackagingJobs' :: Maybe POSIX
lastModifiedTimeBefore = Maybe POSIX
a} :: ListEdgePackagingJobs) ((Maybe POSIX -> f (Maybe POSIX))
 -> ListEdgePackagingJobs -> f ListEdgePackagingJobs)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
    -> Maybe POSIX -> f (Maybe POSIX))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> ListEdgePackagingJobs
-> f ListEdgePackagingJobs
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

-- | Select jobs where the job was created after specified time.
listEdgePackagingJobs_creationTimeAfter :: Lens.Lens' ListEdgePackagingJobs (Prelude.Maybe Prelude.UTCTime)
listEdgePackagingJobs_creationTimeAfter :: (Maybe UTCTime -> f (Maybe UTCTime))
-> ListEdgePackagingJobs -> f ListEdgePackagingJobs
listEdgePackagingJobs_creationTimeAfter = (ListEdgePackagingJobs -> Maybe POSIX)
-> (ListEdgePackagingJobs -> Maybe POSIX -> ListEdgePackagingJobs)
-> Lens
     ListEdgePackagingJobs
     ListEdgePackagingJobs
     (Maybe POSIX)
     (Maybe POSIX)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListEdgePackagingJobs' {Maybe POSIX
creationTimeAfter :: Maybe POSIX
$sel:creationTimeAfter:ListEdgePackagingJobs' :: ListEdgePackagingJobs -> Maybe POSIX
creationTimeAfter} -> Maybe POSIX
creationTimeAfter) (\s :: ListEdgePackagingJobs
s@ListEdgePackagingJobs' {} Maybe POSIX
a -> ListEdgePackagingJobs
s {$sel:creationTimeAfter:ListEdgePackagingJobs' :: Maybe POSIX
creationTimeAfter = Maybe POSIX
a} :: ListEdgePackagingJobs) ((Maybe POSIX -> f (Maybe POSIX))
 -> ListEdgePackagingJobs -> f ListEdgePackagingJobs)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
    -> Maybe POSIX -> f (Maybe POSIX))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> ListEdgePackagingJobs
-> f ListEdgePackagingJobs
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.
listEdgePackagingJobs_nextToken :: Lens.Lens' ListEdgePackagingJobs (Prelude.Maybe Prelude.Text)
listEdgePackagingJobs_nextToken :: (Maybe Text -> f (Maybe Text))
-> ListEdgePackagingJobs -> f ListEdgePackagingJobs
listEdgePackagingJobs_nextToken = (ListEdgePackagingJobs -> Maybe Text)
-> (ListEdgePackagingJobs -> Maybe Text -> ListEdgePackagingJobs)
-> Lens
     ListEdgePackagingJobs
     ListEdgePackagingJobs
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListEdgePackagingJobs' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListEdgePackagingJobs' :: ListEdgePackagingJobs -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListEdgePackagingJobs
s@ListEdgePackagingJobs' {} Maybe Text
a -> ListEdgePackagingJobs
s {$sel:nextToken:ListEdgePackagingJobs' :: Maybe Text
nextToken = Maybe Text
a} :: ListEdgePackagingJobs)

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

-- | Select jobs where the job was updated after specified time.
listEdgePackagingJobs_lastModifiedTimeAfter :: Lens.Lens' ListEdgePackagingJobs (Prelude.Maybe Prelude.UTCTime)
listEdgePackagingJobs_lastModifiedTimeAfter :: (Maybe UTCTime -> f (Maybe UTCTime))
-> ListEdgePackagingJobs -> f ListEdgePackagingJobs
listEdgePackagingJobs_lastModifiedTimeAfter = (ListEdgePackagingJobs -> Maybe POSIX)
-> (ListEdgePackagingJobs -> Maybe POSIX -> ListEdgePackagingJobs)
-> Lens
     ListEdgePackagingJobs
     ListEdgePackagingJobs
     (Maybe POSIX)
     (Maybe POSIX)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListEdgePackagingJobs' {Maybe POSIX
lastModifiedTimeAfter :: Maybe POSIX
$sel:lastModifiedTimeAfter:ListEdgePackagingJobs' :: ListEdgePackagingJobs -> Maybe POSIX
lastModifiedTimeAfter} -> Maybe POSIX
lastModifiedTimeAfter) (\s :: ListEdgePackagingJobs
s@ListEdgePackagingJobs' {} Maybe POSIX
a -> ListEdgePackagingJobs
s {$sel:lastModifiedTimeAfter:ListEdgePackagingJobs' :: Maybe POSIX
lastModifiedTimeAfter = Maybe POSIX
a} :: ListEdgePackagingJobs) ((Maybe POSIX -> f (Maybe POSIX))
 -> ListEdgePackagingJobs -> f ListEdgePackagingJobs)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
    -> Maybe POSIX -> f (Maybe POSIX))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> ListEdgePackagingJobs
-> f ListEdgePackagingJobs
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

-- | Select jobs where the job was created before specified time.
listEdgePackagingJobs_creationTimeBefore :: Lens.Lens' ListEdgePackagingJobs (Prelude.Maybe Prelude.UTCTime)
listEdgePackagingJobs_creationTimeBefore :: (Maybe UTCTime -> f (Maybe UTCTime))
-> ListEdgePackagingJobs -> f ListEdgePackagingJobs
listEdgePackagingJobs_creationTimeBefore = (ListEdgePackagingJobs -> Maybe POSIX)
-> (ListEdgePackagingJobs -> Maybe POSIX -> ListEdgePackagingJobs)
-> Lens
     ListEdgePackagingJobs
     ListEdgePackagingJobs
     (Maybe POSIX)
     (Maybe POSIX)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListEdgePackagingJobs' {Maybe POSIX
creationTimeBefore :: Maybe POSIX
$sel:creationTimeBefore:ListEdgePackagingJobs' :: ListEdgePackagingJobs -> Maybe POSIX
creationTimeBefore} -> Maybe POSIX
creationTimeBefore) (\s :: ListEdgePackagingJobs
s@ListEdgePackagingJobs' {} Maybe POSIX
a -> ListEdgePackagingJobs
s {$sel:creationTimeBefore:ListEdgePackagingJobs' :: Maybe POSIX
creationTimeBefore = Maybe POSIX
a} :: ListEdgePackagingJobs) ((Maybe POSIX -> f (Maybe POSIX))
 -> ListEdgePackagingJobs -> f ListEdgePackagingJobs)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
    -> Maybe POSIX -> f (Maybe POSIX))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> ListEdgePackagingJobs
-> f ListEdgePackagingJobs
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 for jobs where the model name contains this string.
listEdgePackagingJobs_modelNameContains :: Lens.Lens' ListEdgePackagingJobs (Prelude.Maybe Prelude.Text)
listEdgePackagingJobs_modelNameContains :: (Maybe Text -> f (Maybe Text))
-> ListEdgePackagingJobs -> f ListEdgePackagingJobs
listEdgePackagingJobs_modelNameContains = (ListEdgePackagingJobs -> Maybe Text)
-> (ListEdgePackagingJobs -> Maybe Text -> ListEdgePackagingJobs)
-> Lens
     ListEdgePackagingJobs
     ListEdgePackagingJobs
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListEdgePackagingJobs' {Maybe Text
modelNameContains :: Maybe Text
$sel:modelNameContains:ListEdgePackagingJobs' :: ListEdgePackagingJobs -> Maybe Text
modelNameContains} -> Maybe Text
modelNameContains) (\s :: ListEdgePackagingJobs
s@ListEdgePackagingJobs' {} Maybe Text
a -> ListEdgePackagingJobs
s {$sel:modelNameContains:ListEdgePackagingJobs' :: Maybe Text
modelNameContains = Maybe Text
a} :: ListEdgePackagingJobs)

-- | The job status to filter for.
listEdgePackagingJobs_statusEquals :: Lens.Lens' ListEdgePackagingJobs (Prelude.Maybe EdgePackagingJobStatus)
listEdgePackagingJobs_statusEquals :: (Maybe EdgePackagingJobStatus -> f (Maybe EdgePackagingJobStatus))
-> ListEdgePackagingJobs -> f ListEdgePackagingJobs
listEdgePackagingJobs_statusEquals = (ListEdgePackagingJobs -> Maybe EdgePackagingJobStatus)
-> (ListEdgePackagingJobs
    -> Maybe EdgePackagingJobStatus -> ListEdgePackagingJobs)
-> Lens
     ListEdgePackagingJobs
     ListEdgePackagingJobs
     (Maybe EdgePackagingJobStatus)
     (Maybe EdgePackagingJobStatus)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListEdgePackagingJobs' {Maybe EdgePackagingJobStatus
statusEquals :: Maybe EdgePackagingJobStatus
$sel:statusEquals:ListEdgePackagingJobs' :: ListEdgePackagingJobs -> Maybe EdgePackagingJobStatus
statusEquals} -> Maybe EdgePackagingJobStatus
statusEquals) (\s :: ListEdgePackagingJobs
s@ListEdgePackagingJobs' {} Maybe EdgePackagingJobStatus
a -> ListEdgePackagingJobs
s {$sel:statusEquals:ListEdgePackagingJobs' :: Maybe EdgePackagingJobStatus
statusEquals = Maybe EdgePackagingJobStatus
a} :: ListEdgePackagingJobs)

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

-- | Use to specify what column to sort by.
listEdgePackagingJobs_sortBy :: Lens.Lens' ListEdgePackagingJobs (Prelude.Maybe ListEdgePackagingJobsSortBy)
listEdgePackagingJobs_sortBy :: (Maybe ListEdgePackagingJobsSortBy
 -> f (Maybe ListEdgePackagingJobsSortBy))
-> ListEdgePackagingJobs -> f ListEdgePackagingJobs
listEdgePackagingJobs_sortBy = (ListEdgePackagingJobs -> Maybe ListEdgePackagingJobsSortBy)
-> (ListEdgePackagingJobs
    -> Maybe ListEdgePackagingJobsSortBy -> ListEdgePackagingJobs)
-> Lens
     ListEdgePackagingJobs
     ListEdgePackagingJobs
     (Maybe ListEdgePackagingJobsSortBy)
     (Maybe ListEdgePackagingJobsSortBy)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListEdgePackagingJobs' {Maybe ListEdgePackagingJobsSortBy
sortBy :: Maybe ListEdgePackagingJobsSortBy
$sel:sortBy:ListEdgePackagingJobs' :: ListEdgePackagingJobs -> Maybe ListEdgePackagingJobsSortBy
sortBy} -> Maybe ListEdgePackagingJobsSortBy
sortBy) (\s :: ListEdgePackagingJobs
s@ListEdgePackagingJobs' {} Maybe ListEdgePackagingJobsSortBy
a -> ListEdgePackagingJobs
s {$sel:sortBy:ListEdgePackagingJobs' :: Maybe ListEdgePackagingJobsSortBy
sortBy = Maybe ListEdgePackagingJobsSortBy
a} :: ListEdgePackagingJobs)

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

instance Prelude.Hashable ListEdgePackagingJobs

instance Prelude.NFData ListEdgePackagingJobs

instance Core.ToHeaders ListEdgePackagingJobs where
  toHeaders :: ListEdgePackagingJobs -> ResponseHeaders
toHeaders =
    ResponseHeaders -> ListEdgePackagingJobs -> 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.ListEdgePackagingJobs" ::
                          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 ListEdgePackagingJobs where
  toJSON :: ListEdgePackagingJobs -> Value
toJSON ListEdgePackagingJobs' {Maybe Int
Maybe Text
Maybe POSIX
Maybe EdgePackagingJobStatus
Maybe ListEdgePackagingJobsSortBy
Maybe SortOrder
sortBy :: Maybe ListEdgePackagingJobsSortBy
maxResults :: Maybe Int
statusEquals :: Maybe EdgePackagingJobStatus
modelNameContains :: Maybe Text
creationTimeBefore :: Maybe POSIX
lastModifiedTimeAfter :: Maybe POSIX
sortOrder :: Maybe SortOrder
nextToken :: Maybe Text
creationTimeAfter :: Maybe POSIX
lastModifiedTimeBefore :: Maybe POSIX
nameContains :: Maybe Text
$sel:sortBy:ListEdgePackagingJobs' :: ListEdgePackagingJobs -> Maybe ListEdgePackagingJobsSortBy
$sel:maxResults:ListEdgePackagingJobs' :: ListEdgePackagingJobs -> Maybe Int
$sel:statusEquals:ListEdgePackagingJobs' :: ListEdgePackagingJobs -> Maybe EdgePackagingJobStatus
$sel:modelNameContains:ListEdgePackagingJobs' :: ListEdgePackagingJobs -> Maybe Text
$sel:creationTimeBefore:ListEdgePackagingJobs' :: ListEdgePackagingJobs -> Maybe POSIX
$sel:lastModifiedTimeAfter:ListEdgePackagingJobs' :: ListEdgePackagingJobs -> Maybe POSIX
$sel:sortOrder:ListEdgePackagingJobs' :: ListEdgePackagingJobs -> Maybe SortOrder
$sel:nextToken:ListEdgePackagingJobs' :: ListEdgePackagingJobs -> Maybe Text
$sel:creationTimeAfter:ListEdgePackagingJobs' :: ListEdgePackagingJobs -> Maybe POSIX
$sel:lastModifiedTimeBefore:ListEdgePackagingJobs' :: ListEdgePackagingJobs -> Maybe POSIX
$sel:nameContains:ListEdgePackagingJobs' :: ListEdgePackagingJobs -> 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
"ModelNameContains" 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
modelNameContains,
            (Text
"StatusEquals" Text -> EdgePackagingJobStatus -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (EdgePackagingJobStatus -> Pair)
-> Maybe EdgePackagingJobStatus -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe EdgePackagingJobStatus
statusEquals,
            (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 -> ListEdgePackagingJobsSortBy -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (ListEdgePackagingJobsSortBy -> Pair)
-> Maybe ListEdgePackagingJobsSortBy -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe ListEdgePackagingJobsSortBy
sortBy
          ]
      )

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

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

-- | /See:/ 'newListEdgePackagingJobsResponse' smart constructor.
data ListEdgePackagingJobsResponse = ListEdgePackagingJobsResponse'
  { -- | Token to use when calling the next page of results.
    ListEdgePackagingJobsResponse -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
    -- | The response's http status code.
    ListEdgePackagingJobsResponse -> Int
httpStatus :: Prelude.Int,
    -- | Summaries of edge packaging jobs.
    ListEdgePackagingJobsResponse -> [EdgePackagingJobSummary]
edgePackagingJobSummaries :: [EdgePackagingJobSummary]
  }
  deriving (ListEdgePackagingJobsResponse
-> ListEdgePackagingJobsResponse -> Bool
(ListEdgePackagingJobsResponse
 -> ListEdgePackagingJobsResponse -> Bool)
-> (ListEdgePackagingJobsResponse
    -> ListEdgePackagingJobsResponse -> Bool)
-> Eq ListEdgePackagingJobsResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListEdgePackagingJobsResponse
-> ListEdgePackagingJobsResponse -> Bool
$c/= :: ListEdgePackagingJobsResponse
-> ListEdgePackagingJobsResponse -> Bool
== :: ListEdgePackagingJobsResponse
-> ListEdgePackagingJobsResponse -> Bool
$c== :: ListEdgePackagingJobsResponse
-> ListEdgePackagingJobsResponse -> Bool
Prelude.Eq, ReadPrec [ListEdgePackagingJobsResponse]
ReadPrec ListEdgePackagingJobsResponse
Int -> ReadS ListEdgePackagingJobsResponse
ReadS [ListEdgePackagingJobsResponse]
(Int -> ReadS ListEdgePackagingJobsResponse)
-> ReadS [ListEdgePackagingJobsResponse]
-> ReadPrec ListEdgePackagingJobsResponse
-> ReadPrec [ListEdgePackagingJobsResponse]
-> Read ListEdgePackagingJobsResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListEdgePackagingJobsResponse]
$creadListPrec :: ReadPrec [ListEdgePackagingJobsResponse]
readPrec :: ReadPrec ListEdgePackagingJobsResponse
$creadPrec :: ReadPrec ListEdgePackagingJobsResponse
readList :: ReadS [ListEdgePackagingJobsResponse]
$creadList :: ReadS [ListEdgePackagingJobsResponse]
readsPrec :: Int -> ReadS ListEdgePackagingJobsResponse
$creadsPrec :: Int -> ReadS ListEdgePackagingJobsResponse
Prelude.Read, Int -> ListEdgePackagingJobsResponse -> ShowS
[ListEdgePackagingJobsResponse] -> ShowS
ListEdgePackagingJobsResponse -> String
(Int -> ListEdgePackagingJobsResponse -> ShowS)
-> (ListEdgePackagingJobsResponse -> String)
-> ([ListEdgePackagingJobsResponse] -> ShowS)
-> Show ListEdgePackagingJobsResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListEdgePackagingJobsResponse] -> ShowS
$cshowList :: [ListEdgePackagingJobsResponse] -> ShowS
show :: ListEdgePackagingJobsResponse -> String
$cshow :: ListEdgePackagingJobsResponse -> String
showsPrec :: Int -> ListEdgePackagingJobsResponse -> ShowS
$cshowsPrec :: Int -> ListEdgePackagingJobsResponse -> ShowS
Prelude.Show, (forall x.
 ListEdgePackagingJobsResponse
 -> Rep ListEdgePackagingJobsResponse x)
-> (forall x.
    Rep ListEdgePackagingJobsResponse x
    -> ListEdgePackagingJobsResponse)
-> Generic ListEdgePackagingJobsResponse
forall x.
Rep ListEdgePackagingJobsResponse x
-> ListEdgePackagingJobsResponse
forall x.
ListEdgePackagingJobsResponse
-> Rep ListEdgePackagingJobsResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ListEdgePackagingJobsResponse x
-> ListEdgePackagingJobsResponse
$cfrom :: forall x.
ListEdgePackagingJobsResponse
-> Rep ListEdgePackagingJobsResponse x
Prelude.Generic)

-- |
-- Create a value of 'ListEdgePackagingJobsResponse' 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', 'listEdgePackagingJobsResponse_nextToken' - Token to use when calling the next page of results.
--
-- 'httpStatus', 'listEdgePackagingJobsResponse_httpStatus' - The response's http status code.
--
-- 'edgePackagingJobSummaries', 'listEdgePackagingJobsResponse_edgePackagingJobSummaries' - Summaries of edge packaging jobs.
newListEdgePackagingJobsResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  ListEdgePackagingJobsResponse
newListEdgePackagingJobsResponse :: Int -> ListEdgePackagingJobsResponse
newListEdgePackagingJobsResponse Int
pHttpStatus_ =
  ListEdgePackagingJobsResponse' :: Maybe Text
-> Int
-> [EdgePackagingJobSummary]
-> ListEdgePackagingJobsResponse
ListEdgePackagingJobsResponse'
    { $sel:nextToken:ListEdgePackagingJobsResponse' :: Maybe Text
nextToken =
        Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:httpStatus:ListEdgePackagingJobsResponse' :: Int
httpStatus = Int
pHttpStatus_,
      $sel:edgePackagingJobSummaries:ListEdgePackagingJobsResponse' :: [EdgePackagingJobSummary]
edgePackagingJobSummaries = [EdgePackagingJobSummary]
forall a. Monoid a => a
Prelude.mempty
    }

-- | Token to use when calling the next page of results.
listEdgePackagingJobsResponse_nextToken :: Lens.Lens' ListEdgePackagingJobsResponse (Prelude.Maybe Prelude.Text)
listEdgePackagingJobsResponse_nextToken :: (Maybe Text -> f (Maybe Text))
-> ListEdgePackagingJobsResponse -> f ListEdgePackagingJobsResponse
listEdgePackagingJobsResponse_nextToken = (ListEdgePackagingJobsResponse -> Maybe Text)
-> (ListEdgePackagingJobsResponse
    -> Maybe Text -> ListEdgePackagingJobsResponse)
-> Lens' ListEdgePackagingJobsResponse (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListEdgePackagingJobsResponse' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListEdgePackagingJobsResponse' :: ListEdgePackagingJobsResponse -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListEdgePackagingJobsResponse
s@ListEdgePackagingJobsResponse' {} Maybe Text
a -> ListEdgePackagingJobsResponse
s {$sel:nextToken:ListEdgePackagingJobsResponse' :: Maybe Text
nextToken = Maybe Text
a} :: ListEdgePackagingJobsResponse)

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

-- | Summaries of edge packaging jobs.
listEdgePackagingJobsResponse_edgePackagingJobSummaries :: Lens.Lens' ListEdgePackagingJobsResponse [EdgePackagingJobSummary]
listEdgePackagingJobsResponse_edgePackagingJobSummaries :: ([EdgePackagingJobSummary] -> f [EdgePackagingJobSummary])
-> ListEdgePackagingJobsResponse -> f ListEdgePackagingJobsResponse
listEdgePackagingJobsResponse_edgePackagingJobSummaries = (ListEdgePackagingJobsResponse -> [EdgePackagingJobSummary])
-> (ListEdgePackagingJobsResponse
    -> [EdgePackagingJobSummary] -> ListEdgePackagingJobsResponse)
-> Lens' ListEdgePackagingJobsResponse [EdgePackagingJobSummary]
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListEdgePackagingJobsResponse' {[EdgePackagingJobSummary]
edgePackagingJobSummaries :: [EdgePackagingJobSummary]
$sel:edgePackagingJobSummaries:ListEdgePackagingJobsResponse' :: ListEdgePackagingJobsResponse -> [EdgePackagingJobSummary]
edgePackagingJobSummaries} -> [EdgePackagingJobSummary]
edgePackagingJobSummaries) (\s :: ListEdgePackagingJobsResponse
s@ListEdgePackagingJobsResponse' {} [EdgePackagingJobSummary]
a -> ListEdgePackagingJobsResponse
s {$sel:edgePackagingJobSummaries:ListEdgePackagingJobsResponse' :: [EdgePackagingJobSummary]
edgePackagingJobSummaries = [EdgePackagingJobSummary]
a} :: ListEdgePackagingJobsResponse) (([EdgePackagingJobSummary] -> f [EdgePackagingJobSummary])
 -> ListEdgePackagingJobsResponse
 -> f ListEdgePackagingJobsResponse)
-> (([EdgePackagingJobSummary] -> f [EdgePackagingJobSummary])
    -> [EdgePackagingJobSummary] -> f [EdgePackagingJobSummary])
-> ([EdgePackagingJobSummary] -> f [EdgePackagingJobSummary])
-> ListEdgePackagingJobsResponse
-> f ListEdgePackagingJobsResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. ([EdgePackagingJobSummary] -> f [EdgePackagingJobSummary])
-> [EdgePackagingJobSummary] -> f [EdgePackagingJobSummary]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

instance Prelude.NFData ListEdgePackagingJobsResponse