{-# 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.DataExchange.UpdateAsset
(
UpdateAsset (..),
newUpdateAsset,
updateAsset_revisionId,
updateAsset_assetId,
updateAsset_dataSetId,
updateAsset_name,
UpdateAssetResponse (..),
newUpdateAssetResponse,
updateAssetResponse_arn,
updateAssetResponse_createdAt,
updateAssetResponse_sourceId,
updateAssetResponse_dataSetId,
updateAssetResponse_name,
updateAssetResponse_assetDetails,
updateAssetResponse_id,
updateAssetResponse_assetType,
updateAssetResponse_updatedAt,
updateAssetResponse_revisionId,
updateAssetResponse_httpStatus,
)
where
import qualified Amazonka.Core as Core
import Amazonka.DataExchange.Types
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 UpdateAsset = UpdateAsset'
{
UpdateAsset -> Text
revisionId :: Prelude.Text,
UpdateAsset -> Text
assetId :: Prelude.Text,
UpdateAsset -> Text
dataSetId :: Prelude.Text,
UpdateAsset -> Text
name :: Prelude.Text
}
deriving (UpdateAsset -> UpdateAsset -> Bool
(UpdateAsset -> UpdateAsset -> Bool)
-> (UpdateAsset -> UpdateAsset -> Bool) -> Eq UpdateAsset
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: UpdateAsset -> UpdateAsset -> Bool
$c/= :: UpdateAsset -> UpdateAsset -> Bool
== :: UpdateAsset -> UpdateAsset -> Bool
$c== :: UpdateAsset -> UpdateAsset -> Bool
Prelude.Eq, ReadPrec [UpdateAsset]
ReadPrec UpdateAsset
Int -> ReadS UpdateAsset
ReadS [UpdateAsset]
(Int -> ReadS UpdateAsset)
-> ReadS [UpdateAsset]
-> ReadPrec UpdateAsset
-> ReadPrec [UpdateAsset]
-> Read UpdateAsset
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [UpdateAsset]
$creadListPrec :: ReadPrec [UpdateAsset]
readPrec :: ReadPrec UpdateAsset
$creadPrec :: ReadPrec UpdateAsset
readList :: ReadS [UpdateAsset]
$creadList :: ReadS [UpdateAsset]
readsPrec :: Int -> ReadS UpdateAsset
$creadsPrec :: Int -> ReadS UpdateAsset
Prelude.Read, Int -> UpdateAsset -> ShowS
[UpdateAsset] -> ShowS
UpdateAsset -> String
(Int -> UpdateAsset -> ShowS)
-> (UpdateAsset -> String)
-> ([UpdateAsset] -> ShowS)
-> Show UpdateAsset
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [UpdateAsset] -> ShowS
$cshowList :: [UpdateAsset] -> ShowS
show :: UpdateAsset -> String
$cshow :: UpdateAsset -> String
showsPrec :: Int -> UpdateAsset -> ShowS
$cshowsPrec :: Int -> UpdateAsset -> ShowS
Prelude.Show, (forall x. UpdateAsset -> Rep UpdateAsset x)
-> (forall x. Rep UpdateAsset x -> UpdateAsset)
-> Generic UpdateAsset
forall x. Rep UpdateAsset x -> UpdateAsset
forall x. UpdateAsset -> Rep UpdateAsset x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep UpdateAsset x -> UpdateAsset
$cfrom :: forall x. UpdateAsset -> Rep UpdateAsset x
Prelude.Generic)
newUpdateAsset ::
Prelude.Text ->
Prelude.Text ->
Prelude.Text ->
Prelude.Text ->
UpdateAsset
newUpdateAsset :: Text -> Text -> Text -> Text -> UpdateAsset
newUpdateAsset
Text
pRevisionId_
Text
pAssetId_
Text
pDataSetId_
Text
pName_ =
UpdateAsset' :: Text -> Text -> Text -> Text -> UpdateAsset
UpdateAsset'
{ $sel:revisionId:UpdateAsset' :: Text
revisionId = Text
pRevisionId_,
$sel:assetId:UpdateAsset' :: Text
assetId = Text
pAssetId_,
$sel:dataSetId:UpdateAsset' :: Text
dataSetId = Text
pDataSetId_,
$sel:name:UpdateAsset' :: Text
name = Text
pName_
}
updateAsset_revisionId :: Lens.Lens' UpdateAsset Prelude.Text
updateAsset_revisionId :: (Text -> f Text) -> UpdateAsset -> f UpdateAsset
updateAsset_revisionId = (UpdateAsset -> Text)
-> (UpdateAsset -> Text -> UpdateAsset)
-> Lens UpdateAsset UpdateAsset Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateAsset' {Text
revisionId :: Text
$sel:revisionId:UpdateAsset' :: UpdateAsset -> Text
revisionId} -> Text
revisionId) (\s :: UpdateAsset
s@UpdateAsset' {} Text
a -> UpdateAsset
s {$sel:revisionId:UpdateAsset' :: Text
revisionId = Text
a} :: UpdateAsset)
updateAsset_assetId :: Lens.Lens' UpdateAsset Prelude.Text
updateAsset_assetId :: (Text -> f Text) -> UpdateAsset -> f UpdateAsset
updateAsset_assetId = (UpdateAsset -> Text)
-> (UpdateAsset -> Text -> UpdateAsset)
-> Lens UpdateAsset UpdateAsset Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateAsset' {Text
assetId :: Text
$sel:assetId:UpdateAsset' :: UpdateAsset -> Text
assetId} -> Text
assetId) (\s :: UpdateAsset
s@UpdateAsset' {} Text
a -> UpdateAsset
s {$sel:assetId:UpdateAsset' :: Text
assetId = Text
a} :: UpdateAsset)
updateAsset_dataSetId :: Lens.Lens' UpdateAsset Prelude.Text
updateAsset_dataSetId :: (Text -> f Text) -> UpdateAsset -> f UpdateAsset
updateAsset_dataSetId = (UpdateAsset -> Text)
-> (UpdateAsset -> Text -> UpdateAsset)
-> Lens UpdateAsset UpdateAsset Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateAsset' {Text
dataSetId :: Text
$sel:dataSetId:UpdateAsset' :: UpdateAsset -> Text
dataSetId} -> Text
dataSetId) (\s :: UpdateAsset
s@UpdateAsset' {} Text
a -> UpdateAsset
s {$sel:dataSetId:UpdateAsset' :: Text
dataSetId = Text
a} :: UpdateAsset)
updateAsset_name :: Lens.Lens' UpdateAsset Prelude.Text
updateAsset_name :: (Text -> f Text) -> UpdateAsset -> f UpdateAsset
updateAsset_name = (UpdateAsset -> Text)
-> (UpdateAsset -> Text -> UpdateAsset)
-> Lens UpdateAsset UpdateAsset Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateAsset' {Text
name :: Text
$sel:name:UpdateAsset' :: UpdateAsset -> Text
name} -> Text
name) (\s :: UpdateAsset
s@UpdateAsset' {} Text
a -> UpdateAsset
s {$sel:name:UpdateAsset' :: Text
name = Text
a} :: UpdateAsset)
instance Core.AWSRequest UpdateAsset where
type AWSResponse UpdateAsset = UpdateAssetResponse
request :: UpdateAsset -> Request UpdateAsset
request = Service -> UpdateAsset -> Request UpdateAsset
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.patchJSON Service
defaultService
response :: Logger
-> Service
-> Proxy UpdateAsset
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse UpdateAsset)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse UpdateAsset))
-> Logger
-> Service
-> Proxy UpdateAsset
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse UpdateAsset)))
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 POSIX
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe AssetDetails
-> Maybe Text
-> Maybe AssetType
-> Maybe POSIX
-> Maybe Text
-> Int
-> UpdateAssetResponse
UpdateAssetResponse'
(Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe AssetDetails
-> Maybe Text
-> Maybe AssetType
-> Maybe POSIX
-> Maybe Text
-> Int
-> UpdateAssetResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe AssetDetails
-> Maybe Text
-> Maybe AssetType
-> Maybe POSIX
-> Maybe Text
-> Int
-> UpdateAssetResponse)
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
"Arn")
Either
String
(Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe AssetDetails
-> Maybe Text
-> Maybe AssetType
-> Maybe POSIX
-> Maybe Text
-> Int
-> UpdateAssetResponse)
-> Either String (Maybe POSIX)
-> Either
String
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe AssetDetails
-> Maybe Text
-> Maybe AssetType
-> Maybe POSIX
-> Maybe Text
-> Int
-> UpdateAssetResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe POSIX)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"CreatedAt")
Either
String
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe AssetDetails
-> Maybe Text
-> Maybe AssetType
-> Maybe POSIX
-> Maybe Text
-> Int
-> UpdateAssetResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe Text
-> Maybe Text
-> Maybe AssetDetails
-> Maybe Text
-> Maybe AssetType
-> Maybe POSIX
-> Maybe Text
-> Int
-> UpdateAssetResponse)
forall (f :: * -> *) a b. Applicative f => 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
"SourceId")
Either
String
(Maybe Text
-> Maybe Text
-> Maybe AssetDetails
-> Maybe Text
-> Maybe AssetType
-> Maybe POSIX
-> Maybe Text
-> Int
-> UpdateAssetResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe Text
-> Maybe AssetDetails
-> Maybe Text
-> Maybe AssetType
-> Maybe POSIX
-> Maybe Text
-> Int
-> UpdateAssetResponse)
forall (f :: * -> *) a b. Applicative f => 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
"DataSetId")
Either
String
(Maybe Text
-> Maybe AssetDetails
-> Maybe Text
-> Maybe AssetType
-> Maybe POSIX
-> Maybe Text
-> Int
-> UpdateAssetResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe AssetDetails
-> Maybe Text
-> Maybe AssetType
-> Maybe POSIX
-> Maybe Text
-> Int
-> UpdateAssetResponse)
forall (f :: * -> *) a b. Applicative f => 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
"Name")
Either
String
(Maybe AssetDetails
-> Maybe Text
-> Maybe AssetType
-> Maybe POSIX
-> Maybe Text
-> Int
-> UpdateAssetResponse)
-> Either String (Maybe AssetDetails)
-> Either
String
(Maybe Text
-> Maybe AssetType
-> Maybe POSIX
-> Maybe Text
-> Int
-> UpdateAssetResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe AssetDetails)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"AssetDetails")
Either
String
(Maybe Text
-> Maybe AssetType
-> Maybe POSIX
-> Maybe Text
-> Int
-> UpdateAssetResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe AssetType
-> Maybe POSIX -> Maybe Text -> Int -> UpdateAssetResponse)
forall (f :: * -> *) a b. Applicative f => 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
"Id")
Either
String
(Maybe AssetType
-> Maybe POSIX -> Maybe Text -> Int -> UpdateAssetResponse)
-> Either String (Maybe AssetType)
-> Either
String (Maybe POSIX -> Maybe Text -> Int -> UpdateAssetResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe AssetType)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"AssetType")
Either
String (Maybe POSIX -> Maybe Text -> Int -> UpdateAssetResponse)
-> Either String (Maybe POSIX)
-> Either String (Maybe Text -> Int -> UpdateAssetResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe POSIX)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"UpdatedAt")
Either String (Maybe Text -> Int -> UpdateAssetResponse)
-> Either String (Maybe Text)
-> Either String (Int -> UpdateAssetResponse)
forall (f :: * -> *) a b. Applicative f => 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
"RevisionId")
Either String (Int -> UpdateAssetResponse)
-> Either String Int -> Either String UpdateAssetResponse
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 UpdateAsset
instance Prelude.NFData UpdateAsset
instance Core.ToHeaders UpdateAsset where
toHeaders :: UpdateAsset -> ResponseHeaders
toHeaders =
ResponseHeaders -> UpdateAsset -> 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.ToJSON UpdateAsset where
toJSON :: UpdateAsset -> Value
toJSON UpdateAsset' {Text
name :: Text
dataSetId :: Text
assetId :: Text
revisionId :: Text
$sel:name:UpdateAsset' :: UpdateAsset -> Text
$sel:dataSetId:UpdateAsset' :: UpdateAsset -> Text
$sel:assetId:UpdateAsset' :: UpdateAsset -> Text
$sel:revisionId:UpdateAsset' :: UpdateAsset -> 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
"Name" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
name)]
)
instance Core.ToPath UpdateAsset where
toPath :: UpdateAsset -> ByteString
toPath UpdateAsset' {Text
name :: Text
dataSetId :: Text
assetId :: Text
revisionId :: Text
$sel:name:UpdateAsset' :: UpdateAsset -> Text
$sel:dataSetId:UpdateAsset' :: UpdateAsset -> Text
$sel:assetId:UpdateAsset' :: UpdateAsset -> Text
$sel:revisionId:UpdateAsset' :: UpdateAsset -> Text
..} =
[ByteString] -> ByteString
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ ByteString
"/v1/data-sets/",
Text -> ByteString
forall a. ToByteString a => a -> ByteString
Core.toBS Text
dataSetId,
ByteString
"/revisions/",
Text -> ByteString
forall a. ToByteString a => a -> ByteString
Core.toBS Text
revisionId,
ByteString
"/assets/",
Text -> ByteString
forall a. ToByteString a => a -> ByteString
Core.toBS Text
assetId
]
instance Core.ToQuery UpdateAsset where
toQuery :: UpdateAsset -> QueryString
toQuery = QueryString -> UpdateAsset -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data UpdateAssetResponse = UpdateAssetResponse'
{
UpdateAssetResponse -> Maybe Text
arn :: Prelude.Maybe Prelude.Text,
UpdateAssetResponse -> Maybe POSIX
createdAt :: Prelude.Maybe Core.POSIX,
UpdateAssetResponse -> Maybe Text
sourceId :: Prelude.Maybe Prelude.Text,
UpdateAssetResponse -> Maybe Text
dataSetId :: Prelude.Maybe Prelude.Text,
UpdateAssetResponse -> Maybe Text
name :: Prelude.Maybe Prelude.Text,
UpdateAssetResponse -> Maybe AssetDetails
assetDetails :: Prelude.Maybe AssetDetails,
UpdateAssetResponse -> Maybe Text
id :: Prelude.Maybe Prelude.Text,
UpdateAssetResponse -> Maybe AssetType
assetType :: Prelude.Maybe AssetType,
UpdateAssetResponse -> Maybe POSIX
updatedAt :: Prelude.Maybe Core.POSIX,
UpdateAssetResponse -> Maybe Text
revisionId :: Prelude.Maybe Prelude.Text,
UpdateAssetResponse -> Int
httpStatus :: Prelude.Int
}
deriving (UpdateAssetResponse -> UpdateAssetResponse -> Bool
(UpdateAssetResponse -> UpdateAssetResponse -> Bool)
-> (UpdateAssetResponse -> UpdateAssetResponse -> Bool)
-> Eq UpdateAssetResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: UpdateAssetResponse -> UpdateAssetResponse -> Bool
$c/= :: UpdateAssetResponse -> UpdateAssetResponse -> Bool
== :: UpdateAssetResponse -> UpdateAssetResponse -> Bool
$c== :: UpdateAssetResponse -> UpdateAssetResponse -> Bool
Prelude.Eq, ReadPrec [UpdateAssetResponse]
ReadPrec UpdateAssetResponse
Int -> ReadS UpdateAssetResponse
ReadS [UpdateAssetResponse]
(Int -> ReadS UpdateAssetResponse)
-> ReadS [UpdateAssetResponse]
-> ReadPrec UpdateAssetResponse
-> ReadPrec [UpdateAssetResponse]
-> Read UpdateAssetResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [UpdateAssetResponse]
$creadListPrec :: ReadPrec [UpdateAssetResponse]
readPrec :: ReadPrec UpdateAssetResponse
$creadPrec :: ReadPrec UpdateAssetResponse
readList :: ReadS [UpdateAssetResponse]
$creadList :: ReadS [UpdateAssetResponse]
readsPrec :: Int -> ReadS UpdateAssetResponse
$creadsPrec :: Int -> ReadS UpdateAssetResponse
Prelude.Read, Int -> UpdateAssetResponse -> ShowS
[UpdateAssetResponse] -> ShowS
UpdateAssetResponse -> String
(Int -> UpdateAssetResponse -> ShowS)
-> (UpdateAssetResponse -> String)
-> ([UpdateAssetResponse] -> ShowS)
-> Show UpdateAssetResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [UpdateAssetResponse] -> ShowS
$cshowList :: [UpdateAssetResponse] -> ShowS
show :: UpdateAssetResponse -> String
$cshow :: UpdateAssetResponse -> String
showsPrec :: Int -> UpdateAssetResponse -> ShowS
$cshowsPrec :: Int -> UpdateAssetResponse -> ShowS
Prelude.Show, (forall x. UpdateAssetResponse -> Rep UpdateAssetResponse x)
-> (forall x. Rep UpdateAssetResponse x -> UpdateAssetResponse)
-> Generic UpdateAssetResponse
forall x. Rep UpdateAssetResponse x -> UpdateAssetResponse
forall x. UpdateAssetResponse -> Rep UpdateAssetResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep UpdateAssetResponse x -> UpdateAssetResponse
$cfrom :: forall x. UpdateAssetResponse -> Rep UpdateAssetResponse x
Prelude.Generic)
newUpdateAssetResponse ::
Prelude.Int ->
UpdateAssetResponse
newUpdateAssetResponse :: Int -> UpdateAssetResponse
newUpdateAssetResponse Int
pHttpStatus_ =
UpdateAssetResponse' :: Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe AssetDetails
-> Maybe Text
-> Maybe AssetType
-> Maybe POSIX
-> Maybe Text
-> Int
-> UpdateAssetResponse
UpdateAssetResponse'
{ $sel:arn:UpdateAssetResponse' :: Maybe Text
arn = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:createdAt:UpdateAssetResponse' :: Maybe POSIX
createdAt = Maybe POSIX
forall a. Maybe a
Prelude.Nothing,
$sel:sourceId:UpdateAssetResponse' :: Maybe Text
sourceId = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:dataSetId:UpdateAssetResponse' :: Maybe Text
dataSetId = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:name:UpdateAssetResponse' :: Maybe Text
name = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:assetDetails:UpdateAssetResponse' :: Maybe AssetDetails
assetDetails = Maybe AssetDetails
forall a. Maybe a
Prelude.Nothing,
$sel:id:UpdateAssetResponse' :: Maybe Text
id = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:assetType:UpdateAssetResponse' :: Maybe AssetType
assetType = Maybe AssetType
forall a. Maybe a
Prelude.Nothing,
$sel:updatedAt:UpdateAssetResponse' :: Maybe POSIX
updatedAt = Maybe POSIX
forall a. Maybe a
Prelude.Nothing,
$sel:revisionId:UpdateAssetResponse' :: Maybe Text
revisionId = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:UpdateAssetResponse' :: Int
httpStatus = Int
pHttpStatus_
}
updateAssetResponse_arn :: Lens.Lens' UpdateAssetResponse (Prelude.Maybe Prelude.Text)
updateAssetResponse_arn :: (Maybe Text -> f (Maybe Text))
-> UpdateAssetResponse -> f UpdateAssetResponse
updateAssetResponse_arn = (UpdateAssetResponse -> Maybe Text)
-> (UpdateAssetResponse -> Maybe Text -> UpdateAssetResponse)
-> Lens
UpdateAssetResponse UpdateAssetResponse (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateAssetResponse' {Maybe Text
arn :: Maybe Text
$sel:arn:UpdateAssetResponse' :: UpdateAssetResponse -> Maybe Text
arn} -> Maybe Text
arn) (\s :: UpdateAssetResponse
s@UpdateAssetResponse' {} Maybe Text
a -> UpdateAssetResponse
s {$sel:arn:UpdateAssetResponse' :: Maybe Text
arn = Maybe Text
a} :: UpdateAssetResponse)
updateAssetResponse_createdAt :: Lens.Lens' UpdateAssetResponse (Prelude.Maybe Prelude.UTCTime)
updateAssetResponse_createdAt :: (Maybe UTCTime -> f (Maybe UTCTime))
-> UpdateAssetResponse -> f UpdateAssetResponse
updateAssetResponse_createdAt = (UpdateAssetResponse -> Maybe POSIX)
-> (UpdateAssetResponse -> Maybe POSIX -> UpdateAssetResponse)
-> Lens
UpdateAssetResponse UpdateAssetResponse (Maybe POSIX) (Maybe POSIX)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateAssetResponse' {Maybe POSIX
createdAt :: Maybe POSIX
$sel:createdAt:UpdateAssetResponse' :: UpdateAssetResponse -> Maybe POSIX
createdAt} -> Maybe POSIX
createdAt) (\s :: UpdateAssetResponse
s@UpdateAssetResponse' {} Maybe POSIX
a -> UpdateAssetResponse
s {$sel:createdAt:UpdateAssetResponse' :: Maybe POSIX
createdAt = Maybe POSIX
a} :: UpdateAssetResponse) ((Maybe POSIX -> f (Maybe POSIX))
-> UpdateAssetResponse -> f UpdateAssetResponse)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
-> Maybe POSIX -> f (Maybe POSIX))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> UpdateAssetResponse
-> f UpdateAssetResponse
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
updateAssetResponse_sourceId :: Lens.Lens' UpdateAssetResponse (Prelude.Maybe Prelude.Text)
updateAssetResponse_sourceId :: (Maybe Text -> f (Maybe Text))
-> UpdateAssetResponse -> f UpdateAssetResponse
updateAssetResponse_sourceId = (UpdateAssetResponse -> Maybe Text)
-> (UpdateAssetResponse -> Maybe Text -> UpdateAssetResponse)
-> Lens
UpdateAssetResponse UpdateAssetResponse (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateAssetResponse' {Maybe Text
sourceId :: Maybe Text
$sel:sourceId:UpdateAssetResponse' :: UpdateAssetResponse -> Maybe Text
sourceId} -> Maybe Text
sourceId) (\s :: UpdateAssetResponse
s@UpdateAssetResponse' {} Maybe Text
a -> UpdateAssetResponse
s {$sel:sourceId:UpdateAssetResponse' :: Maybe Text
sourceId = Maybe Text
a} :: UpdateAssetResponse)
updateAssetResponse_dataSetId :: Lens.Lens' UpdateAssetResponse (Prelude.Maybe Prelude.Text)
updateAssetResponse_dataSetId :: (Maybe Text -> f (Maybe Text))
-> UpdateAssetResponse -> f UpdateAssetResponse
updateAssetResponse_dataSetId = (UpdateAssetResponse -> Maybe Text)
-> (UpdateAssetResponse -> Maybe Text -> UpdateAssetResponse)
-> Lens
UpdateAssetResponse UpdateAssetResponse (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateAssetResponse' {Maybe Text
dataSetId :: Maybe Text
$sel:dataSetId:UpdateAssetResponse' :: UpdateAssetResponse -> Maybe Text
dataSetId} -> Maybe Text
dataSetId) (\s :: UpdateAssetResponse
s@UpdateAssetResponse' {} Maybe Text
a -> UpdateAssetResponse
s {$sel:dataSetId:UpdateAssetResponse' :: Maybe Text
dataSetId = Maybe Text
a} :: UpdateAssetResponse)
updateAssetResponse_name :: Lens.Lens' UpdateAssetResponse (Prelude.Maybe Prelude.Text)
updateAssetResponse_name :: (Maybe Text -> f (Maybe Text))
-> UpdateAssetResponse -> f UpdateAssetResponse
updateAssetResponse_name = (UpdateAssetResponse -> Maybe Text)
-> (UpdateAssetResponse -> Maybe Text -> UpdateAssetResponse)
-> Lens
UpdateAssetResponse UpdateAssetResponse (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateAssetResponse' {Maybe Text
name :: Maybe Text
$sel:name:UpdateAssetResponse' :: UpdateAssetResponse -> Maybe Text
name} -> Maybe Text
name) (\s :: UpdateAssetResponse
s@UpdateAssetResponse' {} Maybe Text
a -> UpdateAssetResponse
s {$sel:name:UpdateAssetResponse' :: Maybe Text
name = Maybe Text
a} :: UpdateAssetResponse)
updateAssetResponse_assetDetails :: Lens.Lens' UpdateAssetResponse (Prelude.Maybe AssetDetails)
updateAssetResponse_assetDetails :: (Maybe AssetDetails -> f (Maybe AssetDetails))
-> UpdateAssetResponse -> f UpdateAssetResponse
updateAssetResponse_assetDetails = (UpdateAssetResponse -> Maybe AssetDetails)
-> (UpdateAssetResponse
-> Maybe AssetDetails -> UpdateAssetResponse)
-> Lens
UpdateAssetResponse
UpdateAssetResponse
(Maybe AssetDetails)
(Maybe AssetDetails)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateAssetResponse' {Maybe AssetDetails
assetDetails :: Maybe AssetDetails
$sel:assetDetails:UpdateAssetResponse' :: UpdateAssetResponse -> Maybe AssetDetails
assetDetails} -> Maybe AssetDetails
assetDetails) (\s :: UpdateAssetResponse
s@UpdateAssetResponse' {} Maybe AssetDetails
a -> UpdateAssetResponse
s {$sel:assetDetails:UpdateAssetResponse' :: Maybe AssetDetails
assetDetails = Maybe AssetDetails
a} :: UpdateAssetResponse)
updateAssetResponse_id :: Lens.Lens' UpdateAssetResponse (Prelude.Maybe Prelude.Text)
updateAssetResponse_id :: (Maybe Text -> f (Maybe Text))
-> UpdateAssetResponse -> f UpdateAssetResponse
updateAssetResponse_id = (UpdateAssetResponse -> Maybe Text)
-> (UpdateAssetResponse -> Maybe Text -> UpdateAssetResponse)
-> Lens
UpdateAssetResponse UpdateAssetResponse (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateAssetResponse' {Maybe Text
id :: Maybe Text
$sel:id:UpdateAssetResponse' :: UpdateAssetResponse -> Maybe Text
id} -> Maybe Text
id) (\s :: UpdateAssetResponse
s@UpdateAssetResponse' {} Maybe Text
a -> UpdateAssetResponse
s {$sel:id:UpdateAssetResponse' :: Maybe Text
id = Maybe Text
a} :: UpdateAssetResponse)
updateAssetResponse_assetType :: Lens.Lens' UpdateAssetResponse (Prelude.Maybe AssetType)
updateAssetResponse_assetType :: (Maybe AssetType -> f (Maybe AssetType))
-> UpdateAssetResponse -> f UpdateAssetResponse
updateAssetResponse_assetType = (UpdateAssetResponse -> Maybe AssetType)
-> (UpdateAssetResponse -> Maybe AssetType -> UpdateAssetResponse)
-> Lens
UpdateAssetResponse
UpdateAssetResponse
(Maybe AssetType)
(Maybe AssetType)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateAssetResponse' {Maybe AssetType
assetType :: Maybe AssetType
$sel:assetType:UpdateAssetResponse' :: UpdateAssetResponse -> Maybe AssetType
assetType} -> Maybe AssetType
assetType) (\s :: UpdateAssetResponse
s@UpdateAssetResponse' {} Maybe AssetType
a -> UpdateAssetResponse
s {$sel:assetType:UpdateAssetResponse' :: Maybe AssetType
assetType = Maybe AssetType
a} :: UpdateAssetResponse)
updateAssetResponse_updatedAt :: Lens.Lens' UpdateAssetResponse (Prelude.Maybe Prelude.UTCTime)
updateAssetResponse_updatedAt :: (Maybe UTCTime -> f (Maybe UTCTime))
-> UpdateAssetResponse -> f UpdateAssetResponse
updateAssetResponse_updatedAt = (UpdateAssetResponse -> Maybe POSIX)
-> (UpdateAssetResponse -> Maybe POSIX -> UpdateAssetResponse)
-> Lens
UpdateAssetResponse UpdateAssetResponse (Maybe POSIX) (Maybe POSIX)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateAssetResponse' {Maybe POSIX
updatedAt :: Maybe POSIX
$sel:updatedAt:UpdateAssetResponse' :: UpdateAssetResponse -> Maybe POSIX
updatedAt} -> Maybe POSIX
updatedAt) (\s :: UpdateAssetResponse
s@UpdateAssetResponse' {} Maybe POSIX
a -> UpdateAssetResponse
s {$sel:updatedAt:UpdateAssetResponse' :: Maybe POSIX
updatedAt = Maybe POSIX
a} :: UpdateAssetResponse) ((Maybe POSIX -> f (Maybe POSIX))
-> UpdateAssetResponse -> f UpdateAssetResponse)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
-> Maybe POSIX -> f (Maybe POSIX))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> UpdateAssetResponse
-> f UpdateAssetResponse
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
updateAssetResponse_revisionId :: Lens.Lens' UpdateAssetResponse (Prelude.Maybe Prelude.Text)
updateAssetResponse_revisionId :: (Maybe Text -> f (Maybe Text))
-> UpdateAssetResponse -> f UpdateAssetResponse
updateAssetResponse_revisionId = (UpdateAssetResponse -> Maybe Text)
-> (UpdateAssetResponse -> Maybe Text -> UpdateAssetResponse)
-> Lens
UpdateAssetResponse UpdateAssetResponse (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateAssetResponse' {Maybe Text
revisionId :: Maybe Text
$sel:revisionId:UpdateAssetResponse' :: UpdateAssetResponse -> Maybe Text
revisionId} -> Maybe Text
revisionId) (\s :: UpdateAssetResponse
s@UpdateAssetResponse' {} Maybe Text
a -> UpdateAssetResponse
s {$sel:revisionId:UpdateAssetResponse' :: Maybe Text
revisionId = Maybe Text
a} :: UpdateAssetResponse)
updateAssetResponse_httpStatus :: Lens.Lens' UpdateAssetResponse Prelude.Int
updateAssetResponse_httpStatus :: (Int -> f Int) -> UpdateAssetResponse -> f UpdateAssetResponse
updateAssetResponse_httpStatus = (UpdateAssetResponse -> Int)
-> (UpdateAssetResponse -> Int -> UpdateAssetResponse)
-> Lens UpdateAssetResponse UpdateAssetResponse Int Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateAssetResponse' {Int
httpStatus :: Int
$sel:httpStatus:UpdateAssetResponse' :: UpdateAssetResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: UpdateAssetResponse
s@UpdateAssetResponse' {} Int
a -> UpdateAssetResponse
s {$sel:httpStatus:UpdateAssetResponse' :: Int
httpStatus = Int
a} :: UpdateAssetResponse)
instance Prelude.NFData UpdateAssetResponse