{-# 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.Omics.GetReadSetImportJob
(
GetReadSetImportJob (..),
newGetReadSetImportJob,
getReadSetImportJob_id,
getReadSetImportJob_sequenceStoreId,
GetReadSetImportJobResponse (..),
newGetReadSetImportJobResponse,
getReadSetImportJobResponse_completionTime,
getReadSetImportJobResponse_statusMessage,
getReadSetImportJobResponse_httpStatus,
getReadSetImportJobResponse_creationTime,
getReadSetImportJobResponse_id,
getReadSetImportJobResponse_roleArn,
getReadSetImportJobResponse_sequenceStoreId,
getReadSetImportJobResponse_sources,
getReadSetImportJobResponse_status,
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Core.Lens.Internal as Lens
import qualified Amazonka.Data as Data
import Amazonka.Omics.Types
import qualified Amazonka.Prelude as Prelude
import qualified Amazonka.Request as Request
import qualified Amazonka.Response as Response
data GetReadSetImportJob = GetReadSetImportJob'
{
GetReadSetImportJob -> Text
id :: Prelude.Text,
GetReadSetImportJob -> Text
sequenceStoreId :: Prelude.Text
}
deriving (GetReadSetImportJob -> GetReadSetImportJob -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: GetReadSetImportJob -> GetReadSetImportJob -> Bool
$c/= :: GetReadSetImportJob -> GetReadSetImportJob -> Bool
== :: GetReadSetImportJob -> GetReadSetImportJob -> Bool
$c== :: GetReadSetImportJob -> GetReadSetImportJob -> Bool
Prelude.Eq, ReadPrec [GetReadSetImportJob]
ReadPrec GetReadSetImportJob
Int -> ReadS GetReadSetImportJob
ReadS [GetReadSetImportJob]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [GetReadSetImportJob]
$creadListPrec :: ReadPrec [GetReadSetImportJob]
readPrec :: ReadPrec GetReadSetImportJob
$creadPrec :: ReadPrec GetReadSetImportJob
readList :: ReadS [GetReadSetImportJob]
$creadList :: ReadS [GetReadSetImportJob]
readsPrec :: Int -> ReadS GetReadSetImportJob
$creadsPrec :: Int -> ReadS GetReadSetImportJob
Prelude.Read, Int -> GetReadSetImportJob -> ShowS
[GetReadSetImportJob] -> ShowS
GetReadSetImportJob -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [GetReadSetImportJob] -> ShowS
$cshowList :: [GetReadSetImportJob] -> ShowS
show :: GetReadSetImportJob -> String
$cshow :: GetReadSetImportJob -> String
showsPrec :: Int -> GetReadSetImportJob -> ShowS
$cshowsPrec :: Int -> GetReadSetImportJob -> ShowS
Prelude.Show, forall x. Rep GetReadSetImportJob x -> GetReadSetImportJob
forall x. GetReadSetImportJob -> Rep GetReadSetImportJob x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep GetReadSetImportJob x -> GetReadSetImportJob
$cfrom :: forall x. GetReadSetImportJob -> Rep GetReadSetImportJob x
Prelude.Generic)
newGetReadSetImportJob ::
Prelude.Text ->
Prelude.Text ->
GetReadSetImportJob
newGetReadSetImportJob :: Text -> Text -> GetReadSetImportJob
newGetReadSetImportJob Text
pId_ Text
pSequenceStoreId_ =
GetReadSetImportJob'
{ $sel:id:GetReadSetImportJob' :: Text
id = Text
pId_,
$sel:sequenceStoreId:GetReadSetImportJob' :: Text
sequenceStoreId = Text
pSequenceStoreId_
}
getReadSetImportJob_id :: Lens.Lens' GetReadSetImportJob Prelude.Text
getReadSetImportJob_id :: Lens' GetReadSetImportJob Text
getReadSetImportJob_id = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetReadSetImportJob' {Text
id :: Text
$sel:id:GetReadSetImportJob' :: GetReadSetImportJob -> Text
id} -> Text
id) (\s :: GetReadSetImportJob
s@GetReadSetImportJob' {} Text
a -> GetReadSetImportJob
s {$sel:id:GetReadSetImportJob' :: Text
id = Text
a} :: GetReadSetImportJob)
getReadSetImportJob_sequenceStoreId :: Lens.Lens' GetReadSetImportJob Prelude.Text
getReadSetImportJob_sequenceStoreId :: Lens' GetReadSetImportJob Text
getReadSetImportJob_sequenceStoreId = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetReadSetImportJob' {Text
sequenceStoreId :: Text
$sel:sequenceStoreId:GetReadSetImportJob' :: GetReadSetImportJob -> Text
sequenceStoreId} -> Text
sequenceStoreId) (\s :: GetReadSetImportJob
s@GetReadSetImportJob' {} Text
a -> GetReadSetImportJob
s {$sel:sequenceStoreId:GetReadSetImportJob' :: Text
sequenceStoreId = Text
a} :: GetReadSetImportJob)
instance Core.AWSRequest GetReadSetImportJob where
type
AWSResponse GetReadSetImportJob =
GetReadSetImportJobResponse
request :: (Service -> Service)
-> GetReadSetImportJob -> Request GetReadSetImportJob
request Service -> Service
overrides =
forall a. ToRequest a => Service -> a -> Request a
Request.get (Service -> Service
overrides Service
defaultService)
response :: forall (m :: * -> *).
MonadResource m =>
(ByteStringLazy -> IO ByteStringLazy)
-> Service
-> Proxy GetReadSetImportJob
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse GetReadSetImportJob)))
response =
forall (m :: * -> *) a.
MonadResource m =>
(Int -> ResponseHeaders -> Object -> Either String (AWSResponse a))
-> (ByteStringLazy -> IO ByteStringLazy)
-> Service
-> Proxy a
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse a)))
Response.receiveJSON
( \Int
s ResponseHeaders
h Object
x ->
Maybe ISO8601
-> Maybe Text
-> Int
-> ISO8601
-> Text
-> Text
-> Text
-> [ImportReadSetSourceItem]
-> ReadSetImportJobStatus
-> GetReadSetImportJobResponse
GetReadSetImportJobResponse'
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"completionTime")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"statusMessage")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure (forall a. Enum a => a -> Int
Prelude.fromEnum Int
s))
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Either String a
Data..:> Key
"creationTime")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Either String a
Data..:> Key
"id")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Either String a
Data..:> Key
"roleArn")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Either String a
Data..:> Key
"sequenceStoreId")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"sources" forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ forall a. Monoid a => a
Prelude.mempty)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Either String a
Data..:> Key
"status")
)
instance Prelude.Hashable GetReadSetImportJob where
hashWithSalt :: Int -> GetReadSetImportJob -> Int
hashWithSalt Int
_salt GetReadSetImportJob' {Text
sequenceStoreId :: Text
id :: Text
$sel:sequenceStoreId:GetReadSetImportJob' :: GetReadSetImportJob -> Text
$sel:id:GetReadSetImportJob' :: GetReadSetImportJob -> Text
..} =
Int
_salt
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Text
id
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Text
sequenceStoreId
instance Prelude.NFData GetReadSetImportJob where
rnf :: GetReadSetImportJob -> ()
rnf GetReadSetImportJob' {Text
sequenceStoreId :: Text
id :: Text
$sel:sequenceStoreId:GetReadSetImportJob' :: GetReadSetImportJob -> Text
$sel:id:GetReadSetImportJob' :: GetReadSetImportJob -> Text
..} =
forall a. NFData a => a -> ()
Prelude.rnf Text
id
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Text
sequenceStoreId
instance Data.ToHeaders GetReadSetImportJob where
toHeaders :: GetReadSetImportJob -> ResponseHeaders
toHeaders =
forall a b. a -> b -> a
Prelude.const
( forall a. Monoid a => [a] -> a
Prelude.mconcat
[ HeaderName
"Content-Type"
forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Data.=# ( ByteString
"application/x-amz-json-1.1" ::
Prelude.ByteString
)
]
)
instance Data.ToPath GetReadSetImportJob where
toPath :: GetReadSetImportJob -> ByteString
toPath GetReadSetImportJob' {Text
sequenceStoreId :: Text
id :: Text
$sel:sequenceStoreId:GetReadSetImportJob' :: GetReadSetImportJob -> Text
$sel:id:GetReadSetImportJob' :: GetReadSetImportJob -> Text
..} =
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ ByteString
"/sequencestore/",
forall a. ToByteString a => a -> ByteString
Data.toBS Text
sequenceStoreId,
ByteString
"/importjob/",
forall a. ToByteString a => a -> ByteString
Data.toBS Text
id
]
instance Data.ToQuery GetReadSetImportJob where
toQuery :: GetReadSetImportJob -> QueryString
toQuery = forall a b. a -> b -> a
Prelude.const forall a. Monoid a => a
Prelude.mempty
data GetReadSetImportJobResponse = GetReadSetImportJobResponse'
{
GetReadSetImportJobResponse -> Maybe ISO8601
completionTime :: Prelude.Maybe Data.ISO8601,
GetReadSetImportJobResponse -> Maybe Text
statusMessage :: Prelude.Maybe Prelude.Text,
GetReadSetImportJobResponse -> Int
httpStatus :: Prelude.Int,
GetReadSetImportJobResponse -> ISO8601
creationTime :: Data.ISO8601,
GetReadSetImportJobResponse -> Text
id :: Prelude.Text,
GetReadSetImportJobResponse -> Text
roleArn :: Prelude.Text,
GetReadSetImportJobResponse -> Text
sequenceStoreId :: Prelude.Text,
GetReadSetImportJobResponse -> [ImportReadSetSourceItem]
sources :: [ImportReadSetSourceItem],
GetReadSetImportJobResponse -> ReadSetImportJobStatus
status :: ReadSetImportJobStatus
}
deriving (GetReadSetImportJobResponse -> GetReadSetImportJobResponse -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: GetReadSetImportJobResponse -> GetReadSetImportJobResponse -> Bool
$c/= :: GetReadSetImportJobResponse -> GetReadSetImportJobResponse -> Bool
== :: GetReadSetImportJobResponse -> GetReadSetImportJobResponse -> Bool
$c== :: GetReadSetImportJobResponse -> GetReadSetImportJobResponse -> Bool
Prelude.Eq, ReadPrec [GetReadSetImportJobResponse]
ReadPrec GetReadSetImportJobResponse
Int -> ReadS GetReadSetImportJobResponse
ReadS [GetReadSetImportJobResponse]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [GetReadSetImportJobResponse]
$creadListPrec :: ReadPrec [GetReadSetImportJobResponse]
readPrec :: ReadPrec GetReadSetImportJobResponse
$creadPrec :: ReadPrec GetReadSetImportJobResponse
readList :: ReadS [GetReadSetImportJobResponse]
$creadList :: ReadS [GetReadSetImportJobResponse]
readsPrec :: Int -> ReadS GetReadSetImportJobResponse
$creadsPrec :: Int -> ReadS GetReadSetImportJobResponse
Prelude.Read, Int -> GetReadSetImportJobResponse -> ShowS
[GetReadSetImportJobResponse] -> ShowS
GetReadSetImportJobResponse -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [GetReadSetImportJobResponse] -> ShowS
$cshowList :: [GetReadSetImportJobResponse] -> ShowS
show :: GetReadSetImportJobResponse -> String
$cshow :: GetReadSetImportJobResponse -> String
showsPrec :: Int -> GetReadSetImportJobResponse -> ShowS
$cshowsPrec :: Int -> GetReadSetImportJobResponse -> ShowS
Prelude.Show, forall x.
Rep GetReadSetImportJobResponse x -> GetReadSetImportJobResponse
forall x.
GetReadSetImportJobResponse -> Rep GetReadSetImportJobResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep GetReadSetImportJobResponse x -> GetReadSetImportJobResponse
$cfrom :: forall x.
GetReadSetImportJobResponse -> Rep GetReadSetImportJobResponse x
Prelude.Generic)
newGetReadSetImportJobResponse ::
Prelude.Int ->
Prelude.UTCTime ->
Prelude.Text ->
Prelude.Text ->
Prelude.Text ->
ReadSetImportJobStatus ->
GetReadSetImportJobResponse
newGetReadSetImportJobResponse :: Int
-> UTCTime
-> Text
-> Text
-> Text
-> ReadSetImportJobStatus
-> GetReadSetImportJobResponse
newGetReadSetImportJobResponse
Int
pHttpStatus_
UTCTime
pCreationTime_
Text
pId_
Text
pRoleArn_
Text
pSequenceStoreId_
ReadSetImportJobStatus
pStatus_ =
GetReadSetImportJobResponse'
{ $sel:completionTime:GetReadSetImportJobResponse' :: Maybe ISO8601
completionTime =
forall a. Maybe a
Prelude.Nothing,
$sel:statusMessage:GetReadSetImportJobResponse' :: Maybe Text
statusMessage = forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:GetReadSetImportJobResponse' :: Int
httpStatus = Int
pHttpStatus_,
$sel:creationTime:GetReadSetImportJobResponse' :: ISO8601
creationTime =
forall (a :: Format). Iso' (Time a) UTCTime
Data._Time forall t b. AReview t b -> b -> t
Lens.# UTCTime
pCreationTime_,
$sel:id:GetReadSetImportJobResponse' :: Text
id = Text
pId_,
$sel:roleArn:GetReadSetImportJobResponse' :: Text
roleArn = Text
pRoleArn_,
$sel:sequenceStoreId:GetReadSetImportJobResponse' :: Text
sequenceStoreId = Text
pSequenceStoreId_,
$sel:sources:GetReadSetImportJobResponse' :: [ImportReadSetSourceItem]
sources = forall a. Monoid a => a
Prelude.mempty,
$sel:status:GetReadSetImportJobResponse' :: ReadSetImportJobStatus
status = ReadSetImportJobStatus
pStatus_
}
getReadSetImportJobResponse_completionTime :: Lens.Lens' GetReadSetImportJobResponse (Prelude.Maybe Prelude.UTCTime)
getReadSetImportJobResponse_completionTime :: Lens' GetReadSetImportJobResponse (Maybe UTCTime)
getReadSetImportJobResponse_completionTime = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetReadSetImportJobResponse' {Maybe ISO8601
completionTime :: Maybe ISO8601
$sel:completionTime:GetReadSetImportJobResponse' :: GetReadSetImportJobResponse -> Maybe ISO8601
completionTime} -> Maybe ISO8601
completionTime) (\s :: GetReadSetImportJobResponse
s@GetReadSetImportJobResponse' {} Maybe ISO8601
a -> GetReadSetImportJobResponse
s {$sel:completionTime:GetReadSetImportJobResponse' :: Maybe ISO8601
completionTime = Maybe ISO8601
a} :: GetReadSetImportJobResponse) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping forall (a :: Format). Iso' (Time a) UTCTime
Data._Time
getReadSetImportJobResponse_statusMessage :: Lens.Lens' GetReadSetImportJobResponse (Prelude.Maybe Prelude.Text)
getReadSetImportJobResponse_statusMessage :: Lens' GetReadSetImportJobResponse (Maybe Text)
getReadSetImportJobResponse_statusMessage = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetReadSetImportJobResponse' {Maybe Text
statusMessage :: Maybe Text
$sel:statusMessage:GetReadSetImportJobResponse' :: GetReadSetImportJobResponse -> Maybe Text
statusMessage} -> Maybe Text
statusMessage) (\s :: GetReadSetImportJobResponse
s@GetReadSetImportJobResponse' {} Maybe Text
a -> GetReadSetImportJobResponse
s {$sel:statusMessage:GetReadSetImportJobResponse' :: Maybe Text
statusMessage = Maybe Text
a} :: GetReadSetImportJobResponse)
getReadSetImportJobResponse_httpStatus :: Lens.Lens' GetReadSetImportJobResponse Prelude.Int
getReadSetImportJobResponse_httpStatus :: Lens' GetReadSetImportJobResponse Int
getReadSetImportJobResponse_httpStatus = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetReadSetImportJobResponse' {Int
httpStatus :: Int
$sel:httpStatus:GetReadSetImportJobResponse' :: GetReadSetImportJobResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: GetReadSetImportJobResponse
s@GetReadSetImportJobResponse' {} Int
a -> GetReadSetImportJobResponse
s {$sel:httpStatus:GetReadSetImportJobResponse' :: Int
httpStatus = Int
a} :: GetReadSetImportJobResponse)
getReadSetImportJobResponse_creationTime :: Lens.Lens' GetReadSetImportJobResponse Prelude.UTCTime
getReadSetImportJobResponse_creationTime :: Lens' GetReadSetImportJobResponse UTCTime
getReadSetImportJobResponse_creationTime = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetReadSetImportJobResponse' {ISO8601
creationTime :: ISO8601
$sel:creationTime:GetReadSetImportJobResponse' :: GetReadSetImportJobResponse -> ISO8601
creationTime} -> ISO8601
creationTime) (\s :: GetReadSetImportJobResponse
s@GetReadSetImportJobResponse' {} ISO8601
a -> GetReadSetImportJobResponse
s {$sel:creationTime:GetReadSetImportJobResponse' :: ISO8601
creationTime = ISO8601
a} :: GetReadSetImportJobResponse) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall (a :: Format). Iso' (Time a) UTCTime
Data._Time
getReadSetImportJobResponse_id :: Lens.Lens' GetReadSetImportJobResponse Prelude.Text
getReadSetImportJobResponse_id :: Lens' GetReadSetImportJobResponse Text
getReadSetImportJobResponse_id = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetReadSetImportJobResponse' {Text
id :: Text
$sel:id:GetReadSetImportJobResponse' :: GetReadSetImportJobResponse -> Text
id} -> Text
id) (\s :: GetReadSetImportJobResponse
s@GetReadSetImportJobResponse' {} Text
a -> GetReadSetImportJobResponse
s {$sel:id:GetReadSetImportJobResponse' :: Text
id = Text
a} :: GetReadSetImportJobResponse)
getReadSetImportJobResponse_roleArn :: Lens.Lens' GetReadSetImportJobResponse Prelude.Text
getReadSetImportJobResponse_roleArn :: Lens' GetReadSetImportJobResponse Text
getReadSetImportJobResponse_roleArn = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetReadSetImportJobResponse' {Text
roleArn :: Text
$sel:roleArn:GetReadSetImportJobResponse' :: GetReadSetImportJobResponse -> Text
roleArn} -> Text
roleArn) (\s :: GetReadSetImportJobResponse
s@GetReadSetImportJobResponse' {} Text
a -> GetReadSetImportJobResponse
s {$sel:roleArn:GetReadSetImportJobResponse' :: Text
roleArn = Text
a} :: GetReadSetImportJobResponse)
getReadSetImportJobResponse_sequenceStoreId :: Lens.Lens' GetReadSetImportJobResponse Prelude.Text
getReadSetImportJobResponse_sequenceStoreId :: Lens' GetReadSetImportJobResponse Text
getReadSetImportJobResponse_sequenceStoreId = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetReadSetImportJobResponse' {Text
sequenceStoreId :: Text
$sel:sequenceStoreId:GetReadSetImportJobResponse' :: GetReadSetImportJobResponse -> Text
sequenceStoreId} -> Text
sequenceStoreId) (\s :: GetReadSetImportJobResponse
s@GetReadSetImportJobResponse' {} Text
a -> GetReadSetImportJobResponse
s {$sel:sequenceStoreId:GetReadSetImportJobResponse' :: Text
sequenceStoreId = Text
a} :: GetReadSetImportJobResponse)
getReadSetImportJobResponse_sources :: Lens.Lens' GetReadSetImportJobResponse [ImportReadSetSourceItem]
getReadSetImportJobResponse_sources :: Lens' GetReadSetImportJobResponse [ImportReadSetSourceItem]
getReadSetImportJobResponse_sources = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetReadSetImportJobResponse' {[ImportReadSetSourceItem]
sources :: [ImportReadSetSourceItem]
$sel:sources:GetReadSetImportJobResponse' :: GetReadSetImportJobResponse -> [ImportReadSetSourceItem]
sources} -> [ImportReadSetSourceItem]
sources) (\s :: GetReadSetImportJobResponse
s@GetReadSetImportJobResponse' {} [ImportReadSetSourceItem]
a -> GetReadSetImportJobResponse
s {$sel:sources:GetReadSetImportJobResponse' :: [ImportReadSetSourceItem]
sources = [ImportReadSetSourceItem]
a} :: GetReadSetImportJobResponse) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
getReadSetImportJobResponse_status :: Lens.Lens' GetReadSetImportJobResponse ReadSetImportJobStatus
getReadSetImportJobResponse_status :: Lens' GetReadSetImportJobResponse ReadSetImportJobStatus
getReadSetImportJobResponse_status = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetReadSetImportJobResponse' {ReadSetImportJobStatus
status :: ReadSetImportJobStatus
$sel:status:GetReadSetImportJobResponse' :: GetReadSetImportJobResponse -> ReadSetImportJobStatus
status} -> ReadSetImportJobStatus
status) (\s :: GetReadSetImportJobResponse
s@GetReadSetImportJobResponse' {} ReadSetImportJobStatus
a -> GetReadSetImportJobResponse
s {$sel:status:GetReadSetImportJobResponse' :: ReadSetImportJobStatus
status = ReadSetImportJobStatus
a} :: GetReadSetImportJobResponse)
instance Prelude.NFData GetReadSetImportJobResponse where
rnf :: GetReadSetImportJobResponse -> ()
rnf GetReadSetImportJobResponse' {Int
[ImportReadSetSourceItem]
Maybe Text
Maybe ISO8601
Text
ISO8601
ReadSetImportJobStatus
status :: ReadSetImportJobStatus
sources :: [ImportReadSetSourceItem]
sequenceStoreId :: Text
roleArn :: Text
id :: Text
creationTime :: ISO8601
httpStatus :: Int
statusMessage :: Maybe Text
completionTime :: Maybe ISO8601
$sel:status:GetReadSetImportJobResponse' :: GetReadSetImportJobResponse -> ReadSetImportJobStatus
$sel:sources:GetReadSetImportJobResponse' :: GetReadSetImportJobResponse -> [ImportReadSetSourceItem]
$sel:sequenceStoreId:GetReadSetImportJobResponse' :: GetReadSetImportJobResponse -> Text
$sel:roleArn:GetReadSetImportJobResponse' :: GetReadSetImportJobResponse -> Text
$sel:id:GetReadSetImportJobResponse' :: GetReadSetImportJobResponse -> Text
$sel:creationTime:GetReadSetImportJobResponse' :: GetReadSetImportJobResponse -> ISO8601
$sel:httpStatus:GetReadSetImportJobResponse' :: GetReadSetImportJobResponse -> Int
$sel:statusMessage:GetReadSetImportJobResponse' :: GetReadSetImportJobResponse -> Maybe Text
$sel:completionTime:GetReadSetImportJobResponse' :: GetReadSetImportJobResponse -> Maybe ISO8601
..} =
forall a. NFData a => a -> ()
Prelude.rnf Maybe ISO8601
completionTime
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
statusMessage
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Int
httpStatus
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf ISO8601
creationTime
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Text
id
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Text
roleArn
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Text
sequenceStoreId
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf [ImportReadSetSourceItem]
sources
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf ReadSetImportJobStatus
status