{-# 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 #-}
module Amazonka.Backup.ListRestoreJobs
(
ListRestoreJobs (..),
newListRestoreJobs,
listRestoreJobs_byCreatedAfter,
listRestoreJobs_byStatus,
listRestoreJobs_byAccountId,
listRestoreJobs_byCreatedBefore,
listRestoreJobs_nextToken,
listRestoreJobs_maxResults,
ListRestoreJobsResponse (..),
newListRestoreJobsResponse,
listRestoreJobsResponse_nextToken,
listRestoreJobsResponse_restoreJobs,
listRestoreJobsResponse_httpStatus,
)
where
import Amazonka.Backup.Types
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
data ListRestoreJobs = ListRestoreJobs'
{
ListRestoreJobs -> Maybe POSIX
byCreatedAfter :: Prelude.Maybe Core.POSIX,
ListRestoreJobs -> Maybe RestoreJobStatus
byStatus :: Prelude.Maybe RestoreJobStatus,
ListRestoreJobs -> Maybe Text
byAccountId :: Prelude.Maybe Prelude.Text,
ListRestoreJobs -> Maybe POSIX
byCreatedBefore :: Prelude.Maybe Core.POSIX,
ListRestoreJobs -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
ListRestoreJobs -> Maybe Natural
maxResults :: Prelude.Maybe Prelude.Natural
}
deriving (ListRestoreJobs -> ListRestoreJobs -> Bool
(ListRestoreJobs -> ListRestoreJobs -> Bool)
-> (ListRestoreJobs -> ListRestoreJobs -> Bool)
-> Eq ListRestoreJobs
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListRestoreJobs -> ListRestoreJobs -> Bool
$c/= :: ListRestoreJobs -> ListRestoreJobs -> Bool
== :: ListRestoreJobs -> ListRestoreJobs -> Bool
$c== :: ListRestoreJobs -> ListRestoreJobs -> Bool
Prelude.Eq, ReadPrec [ListRestoreJobs]
ReadPrec ListRestoreJobs
Int -> ReadS ListRestoreJobs
ReadS [ListRestoreJobs]
(Int -> ReadS ListRestoreJobs)
-> ReadS [ListRestoreJobs]
-> ReadPrec ListRestoreJobs
-> ReadPrec [ListRestoreJobs]
-> Read ListRestoreJobs
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListRestoreJobs]
$creadListPrec :: ReadPrec [ListRestoreJobs]
readPrec :: ReadPrec ListRestoreJobs
$creadPrec :: ReadPrec ListRestoreJobs
readList :: ReadS [ListRestoreJobs]
$creadList :: ReadS [ListRestoreJobs]
readsPrec :: Int -> ReadS ListRestoreJobs
$creadsPrec :: Int -> ReadS ListRestoreJobs
Prelude.Read, Int -> ListRestoreJobs -> ShowS
[ListRestoreJobs] -> ShowS
ListRestoreJobs -> String
(Int -> ListRestoreJobs -> ShowS)
-> (ListRestoreJobs -> String)
-> ([ListRestoreJobs] -> ShowS)
-> Show ListRestoreJobs
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListRestoreJobs] -> ShowS
$cshowList :: [ListRestoreJobs] -> ShowS
show :: ListRestoreJobs -> String
$cshow :: ListRestoreJobs -> String
showsPrec :: Int -> ListRestoreJobs -> ShowS
$cshowsPrec :: Int -> ListRestoreJobs -> ShowS
Prelude.Show, (forall x. ListRestoreJobs -> Rep ListRestoreJobs x)
-> (forall x. Rep ListRestoreJobs x -> ListRestoreJobs)
-> Generic ListRestoreJobs
forall x. Rep ListRestoreJobs x -> ListRestoreJobs
forall x. ListRestoreJobs -> Rep ListRestoreJobs x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ListRestoreJobs x -> ListRestoreJobs
$cfrom :: forall x. ListRestoreJobs -> Rep ListRestoreJobs x
Prelude.Generic)
newListRestoreJobs ::
ListRestoreJobs
newListRestoreJobs :: ListRestoreJobs
newListRestoreJobs =
ListRestoreJobs' :: Maybe POSIX
-> Maybe RestoreJobStatus
-> Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe Natural
-> ListRestoreJobs
ListRestoreJobs'
{ $sel:byCreatedAfter:ListRestoreJobs' :: Maybe POSIX
byCreatedAfter = Maybe POSIX
forall a. Maybe a
Prelude.Nothing,
$sel:byStatus:ListRestoreJobs' :: Maybe RestoreJobStatus
byStatus = Maybe RestoreJobStatus
forall a. Maybe a
Prelude.Nothing,
$sel:byAccountId:ListRestoreJobs' :: Maybe Text
byAccountId = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:byCreatedBefore:ListRestoreJobs' :: Maybe POSIX
byCreatedBefore = Maybe POSIX
forall a. Maybe a
Prelude.Nothing,
$sel:nextToken:ListRestoreJobs' :: Maybe Text
nextToken = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:maxResults:ListRestoreJobs' :: Maybe Natural
maxResults = Maybe Natural
forall a. Maybe a
Prelude.Nothing
}
listRestoreJobs_byCreatedAfter :: Lens.Lens' ListRestoreJobs (Prelude.Maybe Prelude.UTCTime)
listRestoreJobs_byCreatedAfter :: (Maybe UTCTime -> f (Maybe UTCTime))
-> ListRestoreJobs -> f ListRestoreJobs
listRestoreJobs_byCreatedAfter = (ListRestoreJobs -> Maybe POSIX)
-> (ListRestoreJobs -> Maybe POSIX -> ListRestoreJobs)
-> Lens ListRestoreJobs ListRestoreJobs (Maybe POSIX) (Maybe POSIX)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListRestoreJobs' {Maybe POSIX
byCreatedAfter :: Maybe POSIX
$sel:byCreatedAfter:ListRestoreJobs' :: ListRestoreJobs -> Maybe POSIX
byCreatedAfter} -> Maybe POSIX
byCreatedAfter) (\s :: ListRestoreJobs
s@ListRestoreJobs' {} Maybe POSIX
a -> ListRestoreJobs
s {$sel:byCreatedAfter:ListRestoreJobs' :: Maybe POSIX
byCreatedAfter = Maybe POSIX
a} :: ListRestoreJobs) ((Maybe POSIX -> f (Maybe POSIX))
-> ListRestoreJobs -> f ListRestoreJobs)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
-> Maybe POSIX -> f (Maybe POSIX))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> ListRestoreJobs
-> f ListRestoreJobs
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
listRestoreJobs_byStatus :: Lens.Lens' ListRestoreJobs (Prelude.Maybe RestoreJobStatus)
listRestoreJobs_byStatus :: (Maybe RestoreJobStatus -> f (Maybe RestoreJobStatus))
-> ListRestoreJobs -> f ListRestoreJobs
listRestoreJobs_byStatus = (ListRestoreJobs -> Maybe RestoreJobStatus)
-> (ListRestoreJobs -> Maybe RestoreJobStatus -> ListRestoreJobs)
-> Lens
ListRestoreJobs
ListRestoreJobs
(Maybe RestoreJobStatus)
(Maybe RestoreJobStatus)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListRestoreJobs' {Maybe RestoreJobStatus
byStatus :: Maybe RestoreJobStatus
$sel:byStatus:ListRestoreJobs' :: ListRestoreJobs -> Maybe RestoreJobStatus
byStatus} -> Maybe RestoreJobStatus
byStatus) (\s :: ListRestoreJobs
s@ListRestoreJobs' {} Maybe RestoreJobStatus
a -> ListRestoreJobs
s {$sel:byStatus:ListRestoreJobs' :: Maybe RestoreJobStatus
byStatus = Maybe RestoreJobStatus
a} :: ListRestoreJobs)
listRestoreJobs_byAccountId :: Lens.Lens' ListRestoreJobs (Prelude.Maybe Prelude.Text)
listRestoreJobs_byAccountId :: (Maybe Text -> f (Maybe Text))
-> ListRestoreJobs -> f ListRestoreJobs
listRestoreJobs_byAccountId = (ListRestoreJobs -> Maybe Text)
-> (ListRestoreJobs -> Maybe Text -> ListRestoreJobs)
-> Lens ListRestoreJobs ListRestoreJobs (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListRestoreJobs' {Maybe Text
byAccountId :: Maybe Text
$sel:byAccountId:ListRestoreJobs' :: ListRestoreJobs -> Maybe Text
byAccountId} -> Maybe Text
byAccountId) (\s :: ListRestoreJobs
s@ListRestoreJobs' {} Maybe Text
a -> ListRestoreJobs
s {$sel:byAccountId:ListRestoreJobs' :: Maybe Text
byAccountId = Maybe Text
a} :: ListRestoreJobs)
listRestoreJobs_byCreatedBefore :: Lens.Lens' ListRestoreJobs (Prelude.Maybe Prelude.UTCTime)
listRestoreJobs_byCreatedBefore :: (Maybe UTCTime -> f (Maybe UTCTime))
-> ListRestoreJobs -> f ListRestoreJobs
listRestoreJobs_byCreatedBefore = (ListRestoreJobs -> Maybe POSIX)
-> (ListRestoreJobs -> Maybe POSIX -> ListRestoreJobs)
-> Lens ListRestoreJobs ListRestoreJobs (Maybe POSIX) (Maybe POSIX)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListRestoreJobs' {Maybe POSIX
byCreatedBefore :: Maybe POSIX
$sel:byCreatedBefore:ListRestoreJobs' :: ListRestoreJobs -> Maybe POSIX
byCreatedBefore} -> Maybe POSIX
byCreatedBefore) (\s :: ListRestoreJobs
s@ListRestoreJobs' {} Maybe POSIX
a -> ListRestoreJobs
s {$sel:byCreatedBefore:ListRestoreJobs' :: Maybe POSIX
byCreatedBefore = Maybe POSIX
a} :: ListRestoreJobs) ((Maybe POSIX -> f (Maybe POSIX))
-> ListRestoreJobs -> f ListRestoreJobs)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
-> Maybe POSIX -> f (Maybe POSIX))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> ListRestoreJobs
-> f ListRestoreJobs
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
listRestoreJobs_nextToken :: Lens.Lens' ListRestoreJobs (Prelude.Maybe Prelude.Text)
listRestoreJobs_nextToken :: (Maybe Text -> f (Maybe Text))
-> ListRestoreJobs -> f ListRestoreJobs
listRestoreJobs_nextToken = (ListRestoreJobs -> Maybe Text)
-> (ListRestoreJobs -> Maybe Text -> ListRestoreJobs)
-> Lens ListRestoreJobs ListRestoreJobs (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListRestoreJobs' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListRestoreJobs' :: ListRestoreJobs -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListRestoreJobs
s@ListRestoreJobs' {} Maybe Text
a -> ListRestoreJobs
s {$sel:nextToken:ListRestoreJobs' :: Maybe Text
nextToken = Maybe Text
a} :: ListRestoreJobs)
listRestoreJobs_maxResults :: Lens.Lens' ListRestoreJobs (Prelude.Maybe Prelude.Natural)
listRestoreJobs_maxResults :: (Maybe Natural -> f (Maybe Natural))
-> ListRestoreJobs -> f ListRestoreJobs
listRestoreJobs_maxResults = (ListRestoreJobs -> Maybe Natural)
-> (ListRestoreJobs -> Maybe Natural -> ListRestoreJobs)
-> Lens
ListRestoreJobs ListRestoreJobs (Maybe Natural) (Maybe Natural)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListRestoreJobs' {Maybe Natural
maxResults :: Maybe Natural
$sel:maxResults:ListRestoreJobs' :: ListRestoreJobs -> Maybe Natural
maxResults} -> Maybe Natural
maxResults) (\s :: ListRestoreJobs
s@ListRestoreJobs' {} Maybe Natural
a -> ListRestoreJobs
s {$sel:maxResults:ListRestoreJobs' :: Maybe Natural
maxResults = Maybe Natural
a} :: ListRestoreJobs)
instance Core.AWSRequest ListRestoreJobs where
type
AWSResponse ListRestoreJobs =
ListRestoreJobsResponse
request :: ListRestoreJobs -> Request ListRestoreJobs
request = Service -> ListRestoreJobs -> Request ListRestoreJobs
forall a. ToRequest a => Service -> a -> Request a
Request.get Service
defaultService
response :: Logger
-> Service
-> Proxy ListRestoreJobs
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse ListRestoreJobs)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse ListRestoreJobs))
-> Logger
-> Service
-> Proxy ListRestoreJobs
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse ListRestoreJobs)))
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
-> Maybe [RestoreJobsListMember] -> Int -> ListRestoreJobsResponse
ListRestoreJobsResponse'
(Maybe Text
-> Maybe [RestoreJobsListMember] -> Int -> ListRestoreJobsResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe [RestoreJobsListMember] -> Int -> ListRestoreJobsResponse)
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
(Maybe [RestoreJobsListMember] -> Int -> ListRestoreJobsResponse)
-> Either String (Maybe [RestoreJobsListMember])
-> Either String (Int -> ListRestoreJobsResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object
-> Text -> Either String (Maybe (Maybe [RestoreJobsListMember]))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"RestoreJobs" Either String (Maybe (Maybe [RestoreJobsListMember]))
-> Maybe [RestoreJobsListMember]
-> Either String (Maybe [RestoreJobsListMember])
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ Maybe [RestoreJobsListMember]
forall a. Monoid a => a
Prelude.mempty)
Either String (Int -> ListRestoreJobsResponse)
-> Either String Int -> Either String ListRestoreJobsResponse
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Int -> Either String Int
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure (Int -> Int
forall a. Enum a => a -> Int
Prelude.fromEnum Int
s))
)
instance Prelude.Hashable ListRestoreJobs
instance Prelude.NFData ListRestoreJobs
instance Core.ToHeaders ListRestoreJobs where
toHeaders :: ListRestoreJobs -> ResponseHeaders
toHeaders =
ResponseHeaders -> ListRestoreJobs -> ResponseHeaders
forall a b. a -> b -> a
Prelude.const
( [ResponseHeaders] -> ResponseHeaders
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ HeaderName
"Content-Type"
HeaderName -> ByteString -> ResponseHeaders
forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Core.=# ( ByteString
"application/x-amz-json-1.1" ::
Prelude.ByteString
)
]
)
instance Core.ToPath ListRestoreJobs where
toPath :: ListRestoreJobs -> ByteString
toPath = ByteString -> ListRestoreJobs -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/restore-jobs/"
instance Core.ToQuery ListRestoreJobs where
toQuery :: ListRestoreJobs -> QueryString
toQuery ListRestoreJobs' {Maybe Natural
Maybe Text
Maybe POSIX
Maybe RestoreJobStatus
maxResults :: Maybe Natural
nextToken :: Maybe Text
byCreatedBefore :: Maybe POSIX
byAccountId :: Maybe Text
byStatus :: Maybe RestoreJobStatus
byCreatedAfter :: Maybe POSIX
$sel:maxResults:ListRestoreJobs' :: ListRestoreJobs -> Maybe Natural
$sel:nextToken:ListRestoreJobs' :: ListRestoreJobs -> Maybe Text
$sel:byCreatedBefore:ListRestoreJobs' :: ListRestoreJobs -> Maybe POSIX
$sel:byAccountId:ListRestoreJobs' :: ListRestoreJobs -> Maybe Text
$sel:byStatus:ListRestoreJobs' :: ListRestoreJobs -> Maybe RestoreJobStatus
$sel:byCreatedAfter:ListRestoreJobs' :: ListRestoreJobs -> Maybe POSIX
..} =
[QueryString] -> QueryString
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ ByteString
"createdAfter" ByteString -> Maybe POSIX -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe POSIX
byCreatedAfter,
ByteString
"status" ByteString -> Maybe RestoreJobStatus -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe RestoreJobStatus
byStatus,
ByteString
"accountId" ByteString -> Maybe Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Text
byAccountId,
ByteString
"createdBefore" ByteString -> Maybe POSIX -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe POSIX
byCreatedBefore,
ByteString
"nextToken" ByteString -> Maybe Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Text
nextToken,
ByteString
"maxResults" ByteString -> Maybe Natural -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Natural
maxResults
]
data ListRestoreJobsResponse = ListRestoreJobsResponse'
{
ListRestoreJobsResponse -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
ListRestoreJobsResponse -> Maybe [RestoreJobsListMember]
restoreJobs :: Prelude.Maybe [RestoreJobsListMember],
ListRestoreJobsResponse -> Int
httpStatus :: Prelude.Int
}
deriving (ListRestoreJobsResponse -> ListRestoreJobsResponse -> Bool
(ListRestoreJobsResponse -> ListRestoreJobsResponse -> Bool)
-> (ListRestoreJobsResponse -> ListRestoreJobsResponse -> Bool)
-> Eq ListRestoreJobsResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListRestoreJobsResponse -> ListRestoreJobsResponse -> Bool
$c/= :: ListRestoreJobsResponse -> ListRestoreJobsResponse -> Bool
== :: ListRestoreJobsResponse -> ListRestoreJobsResponse -> Bool
$c== :: ListRestoreJobsResponse -> ListRestoreJobsResponse -> Bool
Prelude.Eq, ReadPrec [ListRestoreJobsResponse]
ReadPrec ListRestoreJobsResponse
Int -> ReadS ListRestoreJobsResponse
ReadS [ListRestoreJobsResponse]
(Int -> ReadS ListRestoreJobsResponse)
-> ReadS [ListRestoreJobsResponse]
-> ReadPrec ListRestoreJobsResponse
-> ReadPrec [ListRestoreJobsResponse]
-> Read ListRestoreJobsResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListRestoreJobsResponse]
$creadListPrec :: ReadPrec [ListRestoreJobsResponse]
readPrec :: ReadPrec ListRestoreJobsResponse
$creadPrec :: ReadPrec ListRestoreJobsResponse
readList :: ReadS [ListRestoreJobsResponse]
$creadList :: ReadS [ListRestoreJobsResponse]
readsPrec :: Int -> ReadS ListRestoreJobsResponse
$creadsPrec :: Int -> ReadS ListRestoreJobsResponse
Prelude.Read, Int -> ListRestoreJobsResponse -> ShowS
[ListRestoreJobsResponse] -> ShowS
ListRestoreJobsResponse -> String
(Int -> ListRestoreJobsResponse -> ShowS)
-> (ListRestoreJobsResponse -> String)
-> ([ListRestoreJobsResponse] -> ShowS)
-> Show ListRestoreJobsResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListRestoreJobsResponse] -> ShowS
$cshowList :: [ListRestoreJobsResponse] -> ShowS
show :: ListRestoreJobsResponse -> String
$cshow :: ListRestoreJobsResponse -> String
showsPrec :: Int -> ListRestoreJobsResponse -> ShowS
$cshowsPrec :: Int -> ListRestoreJobsResponse -> ShowS
Prelude.Show, (forall x.
ListRestoreJobsResponse -> Rep ListRestoreJobsResponse x)
-> (forall x.
Rep ListRestoreJobsResponse x -> ListRestoreJobsResponse)
-> Generic ListRestoreJobsResponse
forall x. Rep ListRestoreJobsResponse x -> ListRestoreJobsResponse
forall x. ListRestoreJobsResponse -> Rep ListRestoreJobsResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ListRestoreJobsResponse x -> ListRestoreJobsResponse
$cfrom :: forall x. ListRestoreJobsResponse -> Rep ListRestoreJobsResponse x
Prelude.Generic)
newListRestoreJobsResponse ::
Prelude.Int ->
ListRestoreJobsResponse
newListRestoreJobsResponse :: Int -> ListRestoreJobsResponse
newListRestoreJobsResponse Int
pHttpStatus_ =
ListRestoreJobsResponse' :: Maybe Text
-> Maybe [RestoreJobsListMember] -> Int -> ListRestoreJobsResponse
ListRestoreJobsResponse'
{ $sel:nextToken:ListRestoreJobsResponse' :: Maybe Text
nextToken =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:restoreJobs:ListRestoreJobsResponse' :: Maybe [RestoreJobsListMember]
restoreJobs = Maybe [RestoreJobsListMember]
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:ListRestoreJobsResponse' :: Int
httpStatus = Int
pHttpStatus_
}
listRestoreJobsResponse_nextToken :: Lens.Lens' ListRestoreJobsResponse (Prelude.Maybe Prelude.Text)
listRestoreJobsResponse_nextToken :: (Maybe Text -> f (Maybe Text))
-> ListRestoreJobsResponse -> f ListRestoreJobsResponse
listRestoreJobsResponse_nextToken = (ListRestoreJobsResponse -> Maybe Text)
-> (ListRestoreJobsResponse
-> Maybe Text -> ListRestoreJobsResponse)
-> Lens
ListRestoreJobsResponse
ListRestoreJobsResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListRestoreJobsResponse' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListRestoreJobsResponse' :: ListRestoreJobsResponse -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListRestoreJobsResponse
s@ListRestoreJobsResponse' {} Maybe Text
a -> ListRestoreJobsResponse
s {$sel:nextToken:ListRestoreJobsResponse' :: Maybe Text
nextToken = Maybe Text
a} :: ListRestoreJobsResponse)
listRestoreJobsResponse_restoreJobs :: Lens.Lens' ListRestoreJobsResponse (Prelude.Maybe [RestoreJobsListMember])
listRestoreJobsResponse_restoreJobs :: (Maybe [RestoreJobsListMember]
-> f (Maybe [RestoreJobsListMember]))
-> ListRestoreJobsResponse -> f ListRestoreJobsResponse
listRestoreJobsResponse_restoreJobs = (ListRestoreJobsResponse -> Maybe [RestoreJobsListMember])
-> (ListRestoreJobsResponse
-> Maybe [RestoreJobsListMember] -> ListRestoreJobsResponse)
-> Lens
ListRestoreJobsResponse
ListRestoreJobsResponse
(Maybe [RestoreJobsListMember])
(Maybe [RestoreJobsListMember])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListRestoreJobsResponse' {Maybe [RestoreJobsListMember]
restoreJobs :: Maybe [RestoreJobsListMember]
$sel:restoreJobs:ListRestoreJobsResponse' :: ListRestoreJobsResponse -> Maybe [RestoreJobsListMember]
restoreJobs} -> Maybe [RestoreJobsListMember]
restoreJobs) (\s :: ListRestoreJobsResponse
s@ListRestoreJobsResponse' {} Maybe [RestoreJobsListMember]
a -> ListRestoreJobsResponse
s {$sel:restoreJobs:ListRestoreJobsResponse' :: Maybe [RestoreJobsListMember]
restoreJobs = Maybe [RestoreJobsListMember]
a} :: ListRestoreJobsResponse) ((Maybe [RestoreJobsListMember]
-> f (Maybe [RestoreJobsListMember]))
-> ListRestoreJobsResponse -> f ListRestoreJobsResponse)
-> ((Maybe [RestoreJobsListMember]
-> f (Maybe [RestoreJobsListMember]))
-> Maybe [RestoreJobsListMember]
-> f (Maybe [RestoreJobsListMember]))
-> (Maybe [RestoreJobsListMember]
-> f (Maybe [RestoreJobsListMember]))
-> ListRestoreJobsResponse
-> f ListRestoreJobsResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
[RestoreJobsListMember]
[RestoreJobsListMember]
[RestoreJobsListMember]
[RestoreJobsListMember]
-> Iso
(Maybe [RestoreJobsListMember])
(Maybe [RestoreJobsListMember])
(Maybe [RestoreJobsListMember])
(Maybe [RestoreJobsListMember])
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
[RestoreJobsListMember]
[RestoreJobsListMember]
[RestoreJobsListMember]
[RestoreJobsListMember]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
listRestoreJobsResponse_httpStatus :: Lens.Lens' ListRestoreJobsResponse Prelude.Int
listRestoreJobsResponse_httpStatus :: (Int -> f Int)
-> ListRestoreJobsResponse -> f ListRestoreJobsResponse
listRestoreJobsResponse_httpStatus = (ListRestoreJobsResponse -> Int)
-> (ListRestoreJobsResponse -> Int -> ListRestoreJobsResponse)
-> Lens ListRestoreJobsResponse ListRestoreJobsResponse Int Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListRestoreJobsResponse' {Int
httpStatus :: Int
$sel:httpStatus:ListRestoreJobsResponse' :: ListRestoreJobsResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: ListRestoreJobsResponse
s@ListRestoreJobsResponse' {} Int
a -> ListRestoreJobsResponse
s {$sel:httpStatus:ListRestoreJobsResponse' :: Int
httpStatus = Int
a} :: ListRestoreJobsResponse)
instance Prelude.NFData ListRestoreJobsResponse