{-# 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.ImportAssetFromSignedUrlJobErrorDetails where
import qualified Amazonka.Core as Core
import qualified Amazonka.Core.Lens.Internal as Lens
import qualified Amazonka.Data as Data
import qualified Amazonka.Prelude as Prelude
data ImportAssetFromSignedUrlJobErrorDetails = ImportAssetFromSignedUrlJobErrorDetails'
{
ImportAssetFromSignedUrlJobErrorDetails -> Text
assetName :: Prelude.Text
}
deriving (ImportAssetFromSignedUrlJobErrorDetails
-> ImportAssetFromSignedUrlJobErrorDetails -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ImportAssetFromSignedUrlJobErrorDetails
-> ImportAssetFromSignedUrlJobErrorDetails -> Bool
$c/= :: ImportAssetFromSignedUrlJobErrorDetails
-> ImportAssetFromSignedUrlJobErrorDetails -> Bool
== :: ImportAssetFromSignedUrlJobErrorDetails
-> ImportAssetFromSignedUrlJobErrorDetails -> Bool
$c== :: ImportAssetFromSignedUrlJobErrorDetails
-> ImportAssetFromSignedUrlJobErrorDetails -> Bool
Prelude.Eq, ReadPrec [ImportAssetFromSignedUrlJobErrorDetails]
ReadPrec ImportAssetFromSignedUrlJobErrorDetails
Int -> ReadS ImportAssetFromSignedUrlJobErrorDetails
ReadS [ImportAssetFromSignedUrlJobErrorDetails]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ImportAssetFromSignedUrlJobErrorDetails]
$creadListPrec :: ReadPrec [ImportAssetFromSignedUrlJobErrorDetails]
readPrec :: ReadPrec ImportAssetFromSignedUrlJobErrorDetails
$creadPrec :: ReadPrec ImportAssetFromSignedUrlJobErrorDetails
readList :: ReadS [ImportAssetFromSignedUrlJobErrorDetails]
$creadList :: ReadS [ImportAssetFromSignedUrlJobErrorDetails]
readsPrec :: Int -> ReadS ImportAssetFromSignedUrlJobErrorDetails
$creadsPrec :: Int -> ReadS ImportAssetFromSignedUrlJobErrorDetails
Prelude.Read, Int -> ImportAssetFromSignedUrlJobErrorDetails -> ShowS
[ImportAssetFromSignedUrlJobErrorDetails] -> ShowS
ImportAssetFromSignedUrlJobErrorDetails -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ImportAssetFromSignedUrlJobErrorDetails] -> ShowS
$cshowList :: [ImportAssetFromSignedUrlJobErrorDetails] -> ShowS
show :: ImportAssetFromSignedUrlJobErrorDetails -> String
$cshow :: ImportAssetFromSignedUrlJobErrorDetails -> String
showsPrec :: Int -> ImportAssetFromSignedUrlJobErrorDetails -> ShowS
$cshowsPrec :: Int -> ImportAssetFromSignedUrlJobErrorDetails -> ShowS
Prelude.Show, forall x.
Rep ImportAssetFromSignedUrlJobErrorDetails x
-> ImportAssetFromSignedUrlJobErrorDetails
forall x.
ImportAssetFromSignedUrlJobErrorDetails
-> Rep ImportAssetFromSignedUrlJobErrorDetails x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ImportAssetFromSignedUrlJobErrorDetails x
-> ImportAssetFromSignedUrlJobErrorDetails
$cfrom :: forall x.
ImportAssetFromSignedUrlJobErrorDetails
-> Rep ImportAssetFromSignedUrlJobErrorDetails x
Prelude.Generic)
newImportAssetFromSignedUrlJobErrorDetails ::
Prelude.Text ->
ImportAssetFromSignedUrlJobErrorDetails
newImportAssetFromSignedUrlJobErrorDetails :: Text -> ImportAssetFromSignedUrlJobErrorDetails
newImportAssetFromSignedUrlJobErrorDetails
Text
pAssetName_ =
ImportAssetFromSignedUrlJobErrorDetails'
{ $sel:assetName:ImportAssetFromSignedUrlJobErrorDetails' :: Text
assetName =
Text
pAssetName_
}
importAssetFromSignedUrlJobErrorDetails_assetName :: Lens.Lens' ImportAssetFromSignedUrlJobErrorDetails Prelude.Text
importAssetFromSignedUrlJobErrorDetails_assetName :: Lens' ImportAssetFromSignedUrlJobErrorDetails Text
importAssetFromSignedUrlJobErrorDetails_assetName = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ImportAssetFromSignedUrlJobErrorDetails' {Text
assetName :: Text
$sel:assetName:ImportAssetFromSignedUrlJobErrorDetails' :: ImportAssetFromSignedUrlJobErrorDetails -> Text
assetName} -> Text
assetName) (\s :: ImportAssetFromSignedUrlJobErrorDetails
s@ImportAssetFromSignedUrlJobErrorDetails' {} Text
a -> ImportAssetFromSignedUrlJobErrorDetails
s {$sel:assetName:ImportAssetFromSignedUrlJobErrorDetails' :: Text
assetName = Text
a} :: ImportAssetFromSignedUrlJobErrorDetails)
instance
Data.FromJSON
ImportAssetFromSignedUrlJobErrorDetails
where
parseJSON :: Value -> Parser ImportAssetFromSignedUrlJobErrorDetails
parseJSON =
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Data.withObject
String
"ImportAssetFromSignedUrlJobErrorDetails"
( \Object
x ->
Text -> ImportAssetFromSignedUrlJobErrorDetails
ImportAssetFromSignedUrlJobErrorDetails'
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x forall a. FromJSON a => Object -> Key -> Parser a
Data..: Key
"AssetName")
)
instance
Prelude.Hashable
ImportAssetFromSignedUrlJobErrorDetails
where
hashWithSalt :: Int -> ImportAssetFromSignedUrlJobErrorDetails -> Int
hashWithSalt
Int
_salt
ImportAssetFromSignedUrlJobErrorDetails' {Text
assetName :: Text
$sel:assetName:ImportAssetFromSignedUrlJobErrorDetails' :: ImportAssetFromSignedUrlJobErrorDetails -> Text
..} =
Int
_salt forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Text
assetName
instance
Prelude.NFData
ImportAssetFromSignedUrlJobErrorDetails
where
rnf :: ImportAssetFromSignedUrlJobErrorDetails -> ()
rnf ImportAssetFromSignedUrlJobErrorDetails' {Text
assetName :: Text
$sel:assetName:ImportAssetFromSignedUrlJobErrorDetails' :: ImportAssetFromSignedUrlJobErrorDetails -> Text
..} =
forall a. NFData a => a -> ()
Prelude.rnf Text
assetName