{-# 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.ImportAssetFromSignedUrlRequestDetails where
import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
data ImportAssetFromSignedUrlRequestDetails = ImportAssetFromSignedUrlRequestDetails'
{
ImportAssetFromSignedUrlRequestDetails -> Text
dataSetId :: Prelude.Text,
ImportAssetFromSignedUrlRequestDetails -> Text
md5Hash :: Prelude.Text,
ImportAssetFromSignedUrlRequestDetails -> Text
assetName :: Prelude.Text,
ImportAssetFromSignedUrlRequestDetails -> Text
revisionId :: Prelude.Text
}
deriving (ImportAssetFromSignedUrlRequestDetails
-> ImportAssetFromSignedUrlRequestDetails -> Bool
(ImportAssetFromSignedUrlRequestDetails
-> ImportAssetFromSignedUrlRequestDetails -> Bool)
-> (ImportAssetFromSignedUrlRequestDetails
-> ImportAssetFromSignedUrlRequestDetails -> Bool)
-> Eq ImportAssetFromSignedUrlRequestDetails
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ImportAssetFromSignedUrlRequestDetails
-> ImportAssetFromSignedUrlRequestDetails -> Bool
$c/= :: ImportAssetFromSignedUrlRequestDetails
-> ImportAssetFromSignedUrlRequestDetails -> Bool
== :: ImportAssetFromSignedUrlRequestDetails
-> ImportAssetFromSignedUrlRequestDetails -> Bool
$c== :: ImportAssetFromSignedUrlRequestDetails
-> ImportAssetFromSignedUrlRequestDetails -> Bool
Prelude.Eq, ReadPrec [ImportAssetFromSignedUrlRequestDetails]
ReadPrec ImportAssetFromSignedUrlRequestDetails
Int -> ReadS ImportAssetFromSignedUrlRequestDetails
ReadS [ImportAssetFromSignedUrlRequestDetails]
(Int -> ReadS ImportAssetFromSignedUrlRequestDetails)
-> ReadS [ImportAssetFromSignedUrlRequestDetails]
-> ReadPrec ImportAssetFromSignedUrlRequestDetails
-> ReadPrec [ImportAssetFromSignedUrlRequestDetails]
-> Read ImportAssetFromSignedUrlRequestDetails
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ImportAssetFromSignedUrlRequestDetails]
$creadListPrec :: ReadPrec [ImportAssetFromSignedUrlRequestDetails]
readPrec :: ReadPrec ImportAssetFromSignedUrlRequestDetails
$creadPrec :: ReadPrec ImportAssetFromSignedUrlRequestDetails
readList :: ReadS [ImportAssetFromSignedUrlRequestDetails]
$creadList :: ReadS [ImportAssetFromSignedUrlRequestDetails]
readsPrec :: Int -> ReadS ImportAssetFromSignedUrlRequestDetails
$creadsPrec :: Int -> ReadS ImportAssetFromSignedUrlRequestDetails
Prelude.Read, Int -> ImportAssetFromSignedUrlRequestDetails -> ShowS
[ImportAssetFromSignedUrlRequestDetails] -> ShowS
ImportAssetFromSignedUrlRequestDetails -> String
(Int -> ImportAssetFromSignedUrlRequestDetails -> ShowS)
-> (ImportAssetFromSignedUrlRequestDetails -> String)
-> ([ImportAssetFromSignedUrlRequestDetails] -> ShowS)
-> Show ImportAssetFromSignedUrlRequestDetails
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ImportAssetFromSignedUrlRequestDetails] -> ShowS
$cshowList :: [ImportAssetFromSignedUrlRequestDetails] -> ShowS
show :: ImportAssetFromSignedUrlRequestDetails -> String
$cshow :: ImportAssetFromSignedUrlRequestDetails -> String
showsPrec :: Int -> ImportAssetFromSignedUrlRequestDetails -> ShowS
$cshowsPrec :: Int -> ImportAssetFromSignedUrlRequestDetails -> ShowS
Prelude.Show, (forall x.
ImportAssetFromSignedUrlRequestDetails
-> Rep ImportAssetFromSignedUrlRequestDetails x)
-> (forall x.
Rep ImportAssetFromSignedUrlRequestDetails x
-> ImportAssetFromSignedUrlRequestDetails)
-> Generic ImportAssetFromSignedUrlRequestDetails
forall x.
Rep ImportAssetFromSignedUrlRequestDetails x
-> ImportAssetFromSignedUrlRequestDetails
forall x.
ImportAssetFromSignedUrlRequestDetails
-> Rep ImportAssetFromSignedUrlRequestDetails x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ImportAssetFromSignedUrlRequestDetails x
-> ImportAssetFromSignedUrlRequestDetails
$cfrom :: forall x.
ImportAssetFromSignedUrlRequestDetails
-> Rep ImportAssetFromSignedUrlRequestDetails x
Prelude.Generic)
newImportAssetFromSignedUrlRequestDetails ::
Prelude.Text ->
Prelude.Text ->
Prelude.Text ->
Prelude.Text ->
ImportAssetFromSignedUrlRequestDetails
newImportAssetFromSignedUrlRequestDetails :: Text
-> Text -> Text -> Text -> ImportAssetFromSignedUrlRequestDetails
newImportAssetFromSignedUrlRequestDetails
Text
pDataSetId_
Text
pMd5Hash_
Text
pAssetName_
Text
pRevisionId_ =
ImportAssetFromSignedUrlRequestDetails' :: Text
-> Text -> Text -> Text -> ImportAssetFromSignedUrlRequestDetails
ImportAssetFromSignedUrlRequestDetails'
{ $sel:dataSetId:ImportAssetFromSignedUrlRequestDetails' :: Text
dataSetId =
Text
pDataSetId_,
$sel:md5Hash:ImportAssetFromSignedUrlRequestDetails' :: Text
md5Hash = Text
pMd5Hash_,
$sel:assetName:ImportAssetFromSignedUrlRequestDetails' :: Text
assetName = Text
pAssetName_,
$sel:revisionId:ImportAssetFromSignedUrlRequestDetails' :: Text
revisionId = Text
pRevisionId_
}
importAssetFromSignedUrlRequestDetails_dataSetId :: Lens.Lens' ImportAssetFromSignedUrlRequestDetails Prelude.Text
importAssetFromSignedUrlRequestDetails_dataSetId :: (Text -> f Text)
-> ImportAssetFromSignedUrlRequestDetails
-> f ImportAssetFromSignedUrlRequestDetails
importAssetFromSignedUrlRequestDetails_dataSetId = (ImportAssetFromSignedUrlRequestDetails -> Text)
-> (ImportAssetFromSignedUrlRequestDetails
-> Text -> ImportAssetFromSignedUrlRequestDetails)
-> Lens
ImportAssetFromSignedUrlRequestDetails
ImportAssetFromSignedUrlRequestDetails
Text
Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ImportAssetFromSignedUrlRequestDetails' {Text
dataSetId :: Text
$sel:dataSetId:ImportAssetFromSignedUrlRequestDetails' :: ImportAssetFromSignedUrlRequestDetails -> Text
dataSetId} -> Text
dataSetId) (\s :: ImportAssetFromSignedUrlRequestDetails
s@ImportAssetFromSignedUrlRequestDetails' {} Text
a -> ImportAssetFromSignedUrlRequestDetails
s {$sel:dataSetId:ImportAssetFromSignedUrlRequestDetails' :: Text
dataSetId = Text
a} :: ImportAssetFromSignedUrlRequestDetails)
importAssetFromSignedUrlRequestDetails_md5Hash :: Lens.Lens' ImportAssetFromSignedUrlRequestDetails Prelude.Text
importAssetFromSignedUrlRequestDetails_md5Hash :: (Text -> f Text)
-> ImportAssetFromSignedUrlRequestDetails
-> f ImportAssetFromSignedUrlRequestDetails
importAssetFromSignedUrlRequestDetails_md5Hash = (ImportAssetFromSignedUrlRequestDetails -> Text)
-> (ImportAssetFromSignedUrlRequestDetails
-> Text -> ImportAssetFromSignedUrlRequestDetails)
-> Lens
ImportAssetFromSignedUrlRequestDetails
ImportAssetFromSignedUrlRequestDetails
Text
Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ImportAssetFromSignedUrlRequestDetails' {Text
md5Hash :: Text
$sel:md5Hash:ImportAssetFromSignedUrlRequestDetails' :: ImportAssetFromSignedUrlRequestDetails -> Text
md5Hash} -> Text
md5Hash) (\s :: ImportAssetFromSignedUrlRequestDetails
s@ImportAssetFromSignedUrlRequestDetails' {} Text
a -> ImportAssetFromSignedUrlRequestDetails
s {$sel:md5Hash:ImportAssetFromSignedUrlRequestDetails' :: Text
md5Hash = Text
a} :: ImportAssetFromSignedUrlRequestDetails)
importAssetFromSignedUrlRequestDetails_assetName :: Lens.Lens' ImportAssetFromSignedUrlRequestDetails Prelude.Text
importAssetFromSignedUrlRequestDetails_assetName :: (Text -> f Text)
-> ImportAssetFromSignedUrlRequestDetails
-> f ImportAssetFromSignedUrlRequestDetails
importAssetFromSignedUrlRequestDetails_assetName = (ImportAssetFromSignedUrlRequestDetails -> Text)
-> (ImportAssetFromSignedUrlRequestDetails
-> Text -> ImportAssetFromSignedUrlRequestDetails)
-> Lens
ImportAssetFromSignedUrlRequestDetails
ImportAssetFromSignedUrlRequestDetails
Text
Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ImportAssetFromSignedUrlRequestDetails' {Text
assetName :: Text
$sel:assetName:ImportAssetFromSignedUrlRequestDetails' :: ImportAssetFromSignedUrlRequestDetails -> Text
assetName} -> Text
assetName) (\s :: ImportAssetFromSignedUrlRequestDetails
s@ImportAssetFromSignedUrlRequestDetails' {} Text
a -> ImportAssetFromSignedUrlRequestDetails
s {$sel:assetName:ImportAssetFromSignedUrlRequestDetails' :: Text
assetName = Text
a} :: ImportAssetFromSignedUrlRequestDetails)
importAssetFromSignedUrlRequestDetails_revisionId :: Lens.Lens' ImportAssetFromSignedUrlRequestDetails Prelude.Text
importAssetFromSignedUrlRequestDetails_revisionId :: (Text -> f Text)
-> ImportAssetFromSignedUrlRequestDetails
-> f ImportAssetFromSignedUrlRequestDetails
importAssetFromSignedUrlRequestDetails_revisionId = (ImportAssetFromSignedUrlRequestDetails -> Text)
-> (ImportAssetFromSignedUrlRequestDetails
-> Text -> ImportAssetFromSignedUrlRequestDetails)
-> Lens
ImportAssetFromSignedUrlRequestDetails
ImportAssetFromSignedUrlRequestDetails
Text
Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ImportAssetFromSignedUrlRequestDetails' {Text
revisionId :: Text
$sel:revisionId:ImportAssetFromSignedUrlRequestDetails' :: ImportAssetFromSignedUrlRequestDetails -> Text
revisionId} -> Text
revisionId) (\s :: ImportAssetFromSignedUrlRequestDetails
s@ImportAssetFromSignedUrlRequestDetails' {} Text
a -> ImportAssetFromSignedUrlRequestDetails
s {$sel:revisionId:ImportAssetFromSignedUrlRequestDetails' :: Text
revisionId = Text
a} :: ImportAssetFromSignedUrlRequestDetails)
instance
Prelude.Hashable
ImportAssetFromSignedUrlRequestDetails
instance
Prelude.NFData
ImportAssetFromSignedUrlRequestDetails
instance
Core.ToJSON
ImportAssetFromSignedUrlRequestDetails
where
toJSON :: ImportAssetFromSignedUrlRequestDetails -> Value
toJSON ImportAssetFromSignedUrlRequestDetails' {Text
revisionId :: Text
assetName :: Text
md5Hash :: Text
dataSetId :: Text
$sel:revisionId:ImportAssetFromSignedUrlRequestDetails' :: ImportAssetFromSignedUrlRequestDetails -> Text
$sel:assetName:ImportAssetFromSignedUrlRequestDetails' :: ImportAssetFromSignedUrlRequestDetails -> Text
$sel:md5Hash:ImportAssetFromSignedUrlRequestDetails' :: ImportAssetFromSignedUrlRequestDetails -> Text
$sel:dataSetId:ImportAssetFromSignedUrlRequestDetails' :: ImportAssetFromSignedUrlRequestDetails -> Text
..} =
[Pair] -> Value
Core.object
( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[ Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just (Text
"DataSetId" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
dataSetId),
Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just (Text
"Md5Hash" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
md5Hash),
Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just (Text
"AssetName" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
assetName),
Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just (Text
"RevisionId" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
revisionId)
]
)