{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DuplicateRecordFields #-}
{-# LANGUAGE NamedFieldPuns #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
{-# OPTIONS_GHC -fno-warn-unused-matches #-}
module Amazonka.DataExchange.Types.ImportAssetFromSignedUrlResponseDetails where
import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
data ImportAssetFromSignedUrlResponseDetails = ImportAssetFromSignedUrlResponseDetails'
{
ImportAssetFromSignedUrlResponseDetails -> Maybe Text
signedUrl :: Prelude.Maybe Prelude.Text,
ImportAssetFromSignedUrlResponseDetails -> Maybe POSIX
signedUrlExpiresAt :: Prelude.Maybe Core.POSIX,
ImportAssetFromSignedUrlResponseDetails -> Maybe Text
md5Hash :: Prelude.Maybe Prelude.Text,
ImportAssetFromSignedUrlResponseDetails -> Text
dataSetId :: Prelude.Text,
ImportAssetFromSignedUrlResponseDetails -> Text
assetName :: Prelude.Text,
ImportAssetFromSignedUrlResponseDetails -> Text
revisionId :: Prelude.Text
}
deriving (ImportAssetFromSignedUrlResponseDetails
-> ImportAssetFromSignedUrlResponseDetails -> Bool
(ImportAssetFromSignedUrlResponseDetails
-> ImportAssetFromSignedUrlResponseDetails -> Bool)
-> (ImportAssetFromSignedUrlResponseDetails
-> ImportAssetFromSignedUrlResponseDetails -> Bool)
-> Eq ImportAssetFromSignedUrlResponseDetails
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ImportAssetFromSignedUrlResponseDetails
-> ImportAssetFromSignedUrlResponseDetails -> Bool
$c/= :: ImportAssetFromSignedUrlResponseDetails
-> ImportAssetFromSignedUrlResponseDetails -> Bool
== :: ImportAssetFromSignedUrlResponseDetails
-> ImportAssetFromSignedUrlResponseDetails -> Bool
$c== :: ImportAssetFromSignedUrlResponseDetails
-> ImportAssetFromSignedUrlResponseDetails -> Bool
Prelude.Eq, ReadPrec [ImportAssetFromSignedUrlResponseDetails]
ReadPrec ImportAssetFromSignedUrlResponseDetails
Int -> ReadS ImportAssetFromSignedUrlResponseDetails
ReadS [ImportAssetFromSignedUrlResponseDetails]
(Int -> ReadS ImportAssetFromSignedUrlResponseDetails)
-> ReadS [ImportAssetFromSignedUrlResponseDetails]
-> ReadPrec ImportAssetFromSignedUrlResponseDetails
-> ReadPrec [ImportAssetFromSignedUrlResponseDetails]
-> Read ImportAssetFromSignedUrlResponseDetails
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ImportAssetFromSignedUrlResponseDetails]
$creadListPrec :: ReadPrec [ImportAssetFromSignedUrlResponseDetails]
readPrec :: ReadPrec ImportAssetFromSignedUrlResponseDetails
$creadPrec :: ReadPrec ImportAssetFromSignedUrlResponseDetails
readList :: ReadS [ImportAssetFromSignedUrlResponseDetails]
$creadList :: ReadS [ImportAssetFromSignedUrlResponseDetails]
readsPrec :: Int -> ReadS ImportAssetFromSignedUrlResponseDetails
$creadsPrec :: Int -> ReadS ImportAssetFromSignedUrlResponseDetails
Prelude.Read, Int -> ImportAssetFromSignedUrlResponseDetails -> ShowS
[ImportAssetFromSignedUrlResponseDetails] -> ShowS
ImportAssetFromSignedUrlResponseDetails -> String
(Int -> ImportAssetFromSignedUrlResponseDetails -> ShowS)
-> (ImportAssetFromSignedUrlResponseDetails -> String)
-> ([ImportAssetFromSignedUrlResponseDetails] -> ShowS)
-> Show ImportAssetFromSignedUrlResponseDetails
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ImportAssetFromSignedUrlResponseDetails] -> ShowS
$cshowList :: [ImportAssetFromSignedUrlResponseDetails] -> ShowS
show :: ImportAssetFromSignedUrlResponseDetails -> String
$cshow :: ImportAssetFromSignedUrlResponseDetails -> String
showsPrec :: Int -> ImportAssetFromSignedUrlResponseDetails -> ShowS
$cshowsPrec :: Int -> ImportAssetFromSignedUrlResponseDetails -> ShowS
Prelude.Show, (forall x.
ImportAssetFromSignedUrlResponseDetails
-> Rep ImportAssetFromSignedUrlResponseDetails x)
-> (forall x.
Rep ImportAssetFromSignedUrlResponseDetails x
-> ImportAssetFromSignedUrlResponseDetails)
-> Generic ImportAssetFromSignedUrlResponseDetails
forall x.
Rep ImportAssetFromSignedUrlResponseDetails x
-> ImportAssetFromSignedUrlResponseDetails
forall x.
ImportAssetFromSignedUrlResponseDetails
-> Rep ImportAssetFromSignedUrlResponseDetails x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ImportAssetFromSignedUrlResponseDetails x
-> ImportAssetFromSignedUrlResponseDetails
$cfrom :: forall x.
ImportAssetFromSignedUrlResponseDetails
-> Rep ImportAssetFromSignedUrlResponseDetails x
Prelude.Generic)
newImportAssetFromSignedUrlResponseDetails ::
Prelude.Text ->
Prelude.Text ->
Prelude.Text ->
ImportAssetFromSignedUrlResponseDetails
newImportAssetFromSignedUrlResponseDetails :: Text -> Text -> Text -> ImportAssetFromSignedUrlResponseDetails
newImportAssetFromSignedUrlResponseDetails
Text
pDataSetId_
Text
pAssetName_
Text
pRevisionId_ =
ImportAssetFromSignedUrlResponseDetails' :: Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Text
-> Text
-> Text
-> ImportAssetFromSignedUrlResponseDetails
ImportAssetFromSignedUrlResponseDetails'
{ $sel:signedUrl:ImportAssetFromSignedUrlResponseDetails' :: Maybe Text
signedUrl =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:signedUrlExpiresAt:ImportAssetFromSignedUrlResponseDetails' :: Maybe POSIX
signedUrlExpiresAt =
Maybe POSIX
forall a. Maybe a
Prelude.Nothing,
$sel:md5Hash:ImportAssetFromSignedUrlResponseDetails' :: Maybe Text
md5Hash = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:dataSetId:ImportAssetFromSignedUrlResponseDetails' :: Text
dataSetId = Text
pDataSetId_,
$sel:assetName:ImportAssetFromSignedUrlResponseDetails' :: Text
assetName = Text
pAssetName_,
$sel:revisionId:ImportAssetFromSignedUrlResponseDetails' :: Text
revisionId = Text
pRevisionId_
}
importAssetFromSignedUrlResponseDetails_signedUrl :: Lens.Lens' ImportAssetFromSignedUrlResponseDetails (Prelude.Maybe Prelude.Text)
importAssetFromSignedUrlResponseDetails_signedUrl :: (Maybe Text -> f (Maybe Text))
-> ImportAssetFromSignedUrlResponseDetails
-> f ImportAssetFromSignedUrlResponseDetails
importAssetFromSignedUrlResponseDetails_signedUrl = (ImportAssetFromSignedUrlResponseDetails -> Maybe Text)
-> (ImportAssetFromSignedUrlResponseDetails
-> Maybe Text -> ImportAssetFromSignedUrlResponseDetails)
-> Lens
ImportAssetFromSignedUrlResponseDetails
ImportAssetFromSignedUrlResponseDetails
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ImportAssetFromSignedUrlResponseDetails' {Maybe Text
signedUrl :: Maybe Text
$sel:signedUrl:ImportAssetFromSignedUrlResponseDetails' :: ImportAssetFromSignedUrlResponseDetails -> Maybe Text
signedUrl} -> Maybe Text
signedUrl) (\s :: ImportAssetFromSignedUrlResponseDetails
s@ImportAssetFromSignedUrlResponseDetails' {} Maybe Text
a -> ImportAssetFromSignedUrlResponseDetails
s {$sel:signedUrl:ImportAssetFromSignedUrlResponseDetails' :: Maybe Text
signedUrl = Maybe Text
a} :: ImportAssetFromSignedUrlResponseDetails)
importAssetFromSignedUrlResponseDetails_signedUrlExpiresAt :: Lens.Lens' ImportAssetFromSignedUrlResponseDetails (Prelude.Maybe Prelude.UTCTime)
importAssetFromSignedUrlResponseDetails_signedUrlExpiresAt :: (Maybe UTCTime -> f (Maybe UTCTime))
-> ImportAssetFromSignedUrlResponseDetails
-> f ImportAssetFromSignedUrlResponseDetails
importAssetFromSignedUrlResponseDetails_signedUrlExpiresAt = (ImportAssetFromSignedUrlResponseDetails -> Maybe POSIX)
-> (ImportAssetFromSignedUrlResponseDetails
-> Maybe POSIX -> ImportAssetFromSignedUrlResponseDetails)
-> Lens
ImportAssetFromSignedUrlResponseDetails
ImportAssetFromSignedUrlResponseDetails
(Maybe POSIX)
(Maybe POSIX)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ImportAssetFromSignedUrlResponseDetails' {Maybe POSIX
signedUrlExpiresAt :: Maybe POSIX
$sel:signedUrlExpiresAt:ImportAssetFromSignedUrlResponseDetails' :: ImportAssetFromSignedUrlResponseDetails -> Maybe POSIX
signedUrlExpiresAt} -> Maybe POSIX
signedUrlExpiresAt) (\s :: ImportAssetFromSignedUrlResponseDetails
s@ImportAssetFromSignedUrlResponseDetails' {} Maybe POSIX
a -> ImportAssetFromSignedUrlResponseDetails
s {$sel:signedUrlExpiresAt:ImportAssetFromSignedUrlResponseDetails' :: Maybe POSIX
signedUrlExpiresAt = Maybe POSIX
a} :: ImportAssetFromSignedUrlResponseDetails) ((Maybe POSIX -> f (Maybe POSIX))
-> ImportAssetFromSignedUrlResponseDetails
-> f ImportAssetFromSignedUrlResponseDetails)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
-> Maybe POSIX -> f (Maybe POSIX))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> ImportAssetFromSignedUrlResponseDetails
-> f ImportAssetFromSignedUrlResponseDetails
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
importAssetFromSignedUrlResponseDetails_md5Hash :: Lens.Lens' ImportAssetFromSignedUrlResponseDetails (Prelude.Maybe Prelude.Text)
importAssetFromSignedUrlResponseDetails_md5Hash :: (Maybe Text -> f (Maybe Text))
-> ImportAssetFromSignedUrlResponseDetails
-> f ImportAssetFromSignedUrlResponseDetails
importAssetFromSignedUrlResponseDetails_md5Hash = (ImportAssetFromSignedUrlResponseDetails -> Maybe Text)
-> (ImportAssetFromSignedUrlResponseDetails
-> Maybe Text -> ImportAssetFromSignedUrlResponseDetails)
-> Lens
ImportAssetFromSignedUrlResponseDetails
ImportAssetFromSignedUrlResponseDetails
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ImportAssetFromSignedUrlResponseDetails' {Maybe Text
md5Hash :: Maybe Text
$sel:md5Hash:ImportAssetFromSignedUrlResponseDetails' :: ImportAssetFromSignedUrlResponseDetails -> Maybe Text
md5Hash} -> Maybe Text
md5Hash) (\s :: ImportAssetFromSignedUrlResponseDetails
s@ImportAssetFromSignedUrlResponseDetails' {} Maybe Text
a -> ImportAssetFromSignedUrlResponseDetails
s {$sel:md5Hash:ImportAssetFromSignedUrlResponseDetails' :: Maybe Text
md5Hash = Maybe Text
a} :: ImportAssetFromSignedUrlResponseDetails)
importAssetFromSignedUrlResponseDetails_dataSetId :: Lens.Lens' ImportAssetFromSignedUrlResponseDetails Prelude.Text
importAssetFromSignedUrlResponseDetails_dataSetId :: (Text -> f Text)
-> ImportAssetFromSignedUrlResponseDetails
-> f ImportAssetFromSignedUrlResponseDetails
importAssetFromSignedUrlResponseDetails_dataSetId = (ImportAssetFromSignedUrlResponseDetails -> Text)
-> (ImportAssetFromSignedUrlResponseDetails
-> Text -> ImportAssetFromSignedUrlResponseDetails)
-> Lens
ImportAssetFromSignedUrlResponseDetails
ImportAssetFromSignedUrlResponseDetails
Text
Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ImportAssetFromSignedUrlResponseDetails' {Text
dataSetId :: Text
$sel:dataSetId:ImportAssetFromSignedUrlResponseDetails' :: ImportAssetFromSignedUrlResponseDetails -> Text
dataSetId} -> Text
dataSetId) (\s :: ImportAssetFromSignedUrlResponseDetails
s@ImportAssetFromSignedUrlResponseDetails' {} Text
a -> ImportAssetFromSignedUrlResponseDetails
s {$sel:dataSetId:ImportAssetFromSignedUrlResponseDetails' :: Text
dataSetId = Text
a} :: ImportAssetFromSignedUrlResponseDetails)
importAssetFromSignedUrlResponseDetails_assetName :: Lens.Lens' ImportAssetFromSignedUrlResponseDetails Prelude.Text
importAssetFromSignedUrlResponseDetails_assetName :: (Text -> f Text)
-> ImportAssetFromSignedUrlResponseDetails
-> f ImportAssetFromSignedUrlResponseDetails
importAssetFromSignedUrlResponseDetails_assetName = (ImportAssetFromSignedUrlResponseDetails -> Text)
-> (ImportAssetFromSignedUrlResponseDetails
-> Text -> ImportAssetFromSignedUrlResponseDetails)
-> Lens
ImportAssetFromSignedUrlResponseDetails
ImportAssetFromSignedUrlResponseDetails
Text
Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ImportAssetFromSignedUrlResponseDetails' {Text
assetName :: Text
$sel:assetName:ImportAssetFromSignedUrlResponseDetails' :: ImportAssetFromSignedUrlResponseDetails -> Text
assetName} -> Text
assetName) (\s :: ImportAssetFromSignedUrlResponseDetails
s@ImportAssetFromSignedUrlResponseDetails' {} Text
a -> ImportAssetFromSignedUrlResponseDetails
s {$sel:assetName:ImportAssetFromSignedUrlResponseDetails' :: Text
assetName = Text
a} :: ImportAssetFromSignedUrlResponseDetails)
importAssetFromSignedUrlResponseDetails_revisionId :: Lens.Lens' ImportAssetFromSignedUrlResponseDetails Prelude.Text
importAssetFromSignedUrlResponseDetails_revisionId :: (Text -> f Text)
-> ImportAssetFromSignedUrlResponseDetails
-> f ImportAssetFromSignedUrlResponseDetails
importAssetFromSignedUrlResponseDetails_revisionId = (ImportAssetFromSignedUrlResponseDetails -> Text)
-> (ImportAssetFromSignedUrlResponseDetails
-> Text -> ImportAssetFromSignedUrlResponseDetails)
-> Lens
ImportAssetFromSignedUrlResponseDetails
ImportAssetFromSignedUrlResponseDetails
Text
Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ImportAssetFromSignedUrlResponseDetails' {Text
revisionId :: Text
$sel:revisionId:ImportAssetFromSignedUrlResponseDetails' :: ImportAssetFromSignedUrlResponseDetails -> Text
revisionId} -> Text
revisionId) (\s :: ImportAssetFromSignedUrlResponseDetails
s@ImportAssetFromSignedUrlResponseDetails' {} Text
a -> ImportAssetFromSignedUrlResponseDetails
s {$sel:revisionId:ImportAssetFromSignedUrlResponseDetails' :: Text
revisionId = Text
a} :: ImportAssetFromSignedUrlResponseDetails)
instance
Core.FromJSON
ImportAssetFromSignedUrlResponseDetails
where
parseJSON :: Value -> Parser ImportAssetFromSignedUrlResponseDetails
parseJSON =
String
-> (Object -> Parser ImportAssetFromSignedUrlResponseDetails)
-> Value
-> Parser ImportAssetFromSignedUrlResponseDetails
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Core.withObject
String
"ImportAssetFromSignedUrlResponseDetails"
( \Object
x ->
Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Text
-> Text
-> Text
-> ImportAssetFromSignedUrlResponseDetails
ImportAssetFromSignedUrlResponseDetails'
(Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Text
-> Text
-> Text
-> ImportAssetFromSignedUrlResponseDetails)
-> Parser (Maybe Text)
-> Parser
(Maybe POSIX
-> Maybe Text
-> Text
-> Text
-> Text
-> ImportAssetFromSignedUrlResponseDetails)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"SignedUrl")
Parser
(Maybe POSIX
-> Maybe Text
-> Text
-> Text
-> Text
-> ImportAssetFromSignedUrlResponseDetails)
-> Parser (Maybe POSIX)
-> Parser
(Maybe Text
-> Text -> Text -> Text -> ImportAssetFromSignedUrlResponseDetails)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe POSIX)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"SignedUrlExpiresAt")
Parser
(Maybe Text
-> Text -> Text -> Text -> ImportAssetFromSignedUrlResponseDetails)
-> Parser (Maybe Text)
-> Parser
(Text -> Text -> Text -> ImportAssetFromSignedUrlResponseDetails)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"Md5Hash")
Parser
(Text -> Text -> Text -> ImportAssetFromSignedUrlResponseDetails)
-> Parser Text
-> Parser (Text -> Text -> ImportAssetFromSignedUrlResponseDetails)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser Text
forall a. FromJSON a => Object -> Text -> Parser a
Core..: Text
"DataSetId")
Parser (Text -> Text -> ImportAssetFromSignedUrlResponseDetails)
-> Parser Text
-> Parser (Text -> ImportAssetFromSignedUrlResponseDetails)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser Text
forall a. FromJSON a => Object -> Text -> Parser a
Core..: Text
"AssetName")
Parser (Text -> ImportAssetFromSignedUrlResponseDetails)
-> Parser Text -> Parser ImportAssetFromSignedUrlResponseDetails
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser Text
forall a. FromJSON a => Object -> Text -> Parser a
Core..: Text
"RevisionId")
)
instance
Prelude.Hashable
ImportAssetFromSignedUrlResponseDetails
instance
Prelude.NFData
ImportAssetFromSignedUrlResponseDetails