{-# 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.RobOMaker.UpdateWorldTemplate
(
UpdateWorldTemplate (..),
newUpdateWorldTemplate,
updateWorldTemplate_name,
updateWorldTemplate_templateLocation,
updateWorldTemplate_templateBody,
updateWorldTemplate_template,
UpdateWorldTemplateResponse (..),
newUpdateWorldTemplateResponse,
updateWorldTemplateResponse_lastUpdatedAt,
updateWorldTemplateResponse_arn,
updateWorldTemplateResponse_createdAt,
updateWorldTemplateResponse_name,
updateWorldTemplateResponse_httpStatus,
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
import qualified Amazonka.Request as Request
import qualified Amazonka.Response as Response
import Amazonka.RobOMaker.Types
data UpdateWorldTemplate = UpdateWorldTemplate'
{
UpdateWorldTemplate -> Maybe Text
name :: Prelude.Maybe Prelude.Text,
UpdateWorldTemplate -> Maybe TemplateLocation
templateLocation :: Prelude.Maybe TemplateLocation,
UpdateWorldTemplate -> Maybe Text
templateBody :: Prelude.Maybe Prelude.Text,
UpdateWorldTemplate -> Text
template :: Prelude.Text
}
deriving (UpdateWorldTemplate -> UpdateWorldTemplate -> Bool
(UpdateWorldTemplate -> UpdateWorldTemplate -> Bool)
-> (UpdateWorldTemplate -> UpdateWorldTemplate -> Bool)
-> Eq UpdateWorldTemplate
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: UpdateWorldTemplate -> UpdateWorldTemplate -> Bool
$c/= :: UpdateWorldTemplate -> UpdateWorldTemplate -> Bool
== :: UpdateWorldTemplate -> UpdateWorldTemplate -> Bool
$c== :: UpdateWorldTemplate -> UpdateWorldTemplate -> Bool
Prelude.Eq, ReadPrec [UpdateWorldTemplate]
ReadPrec UpdateWorldTemplate
Int -> ReadS UpdateWorldTemplate
ReadS [UpdateWorldTemplate]
(Int -> ReadS UpdateWorldTemplate)
-> ReadS [UpdateWorldTemplate]
-> ReadPrec UpdateWorldTemplate
-> ReadPrec [UpdateWorldTemplate]
-> Read UpdateWorldTemplate
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [UpdateWorldTemplate]
$creadListPrec :: ReadPrec [UpdateWorldTemplate]
readPrec :: ReadPrec UpdateWorldTemplate
$creadPrec :: ReadPrec UpdateWorldTemplate
readList :: ReadS [UpdateWorldTemplate]
$creadList :: ReadS [UpdateWorldTemplate]
readsPrec :: Int -> ReadS UpdateWorldTemplate
$creadsPrec :: Int -> ReadS UpdateWorldTemplate
Prelude.Read, Int -> UpdateWorldTemplate -> ShowS
[UpdateWorldTemplate] -> ShowS
UpdateWorldTemplate -> String
(Int -> UpdateWorldTemplate -> ShowS)
-> (UpdateWorldTemplate -> String)
-> ([UpdateWorldTemplate] -> ShowS)
-> Show UpdateWorldTemplate
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [UpdateWorldTemplate] -> ShowS
$cshowList :: [UpdateWorldTemplate] -> ShowS
show :: UpdateWorldTemplate -> String
$cshow :: UpdateWorldTemplate -> String
showsPrec :: Int -> UpdateWorldTemplate -> ShowS
$cshowsPrec :: Int -> UpdateWorldTemplate -> ShowS
Prelude.Show, (forall x. UpdateWorldTemplate -> Rep UpdateWorldTemplate x)
-> (forall x. Rep UpdateWorldTemplate x -> UpdateWorldTemplate)
-> Generic UpdateWorldTemplate
forall x. Rep UpdateWorldTemplate x -> UpdateWorldTemplate
forall x. UpdateWorldTemplate -> Rep UpdateWorldTemplate x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep UpdateWorldTemplate x -> UpdateWorldTemplate
$cfrom :: forall x. UpdateWorldTemplate -> Rep UpdateWorldTemplate x
Prelude.Generic)
newUpdateWorldTemplate ::
Prelude.Text ->
UpdateWorldTemplate
newUpdateWorldTemplate :: Text -> UpdateWorldTemplate
newUpdateWorldTemplate Text
pTemplate_ =
UpdateWorldTemplate' :: Maybe Text
-> Maybe TemplateLocation
-> Maybe Text
-> Text
-> UpdateWorldTemplate
UpdateWorldTemplate'
{ $sel:name:UpdateWorldTemplate' :: Maybe Text
name = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:templateLocation:UpdateWorldTemplate' :: Maybe TemplateLocation
templateLocation = Maybe TemplateLocation
forall a. Maybe a
Prelude.Nothing,
$sel:templateBody:UpdateWorldTemplate' :: Maybe Text
templateBody = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:template:UpdateWorldTemplate' :: Text
template = Text
pTemplate_
}
updateWorldTemplate_name :: Lens.Lens' UpdateWorldTemplate (Prelude.Maybe Prelude.Text)
updateWorldTemplate_name :: (Maybe Text -> f (Maybe Text))
-> UpdateWorldTemplate -> f UpdateWorldTemplate
updateWorldTemplate_name = (UpdateWorldTemplate -> Maybe Text)
-> (UpdateWorldTemplate -> Maybe Text -> UpdateWorldTemplate)
-> Lens
UpdateWorldTemplate UpdateWorldTemplate (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateWorldTemplate' {Maybe Text
name :: Maybe Text
$sel:name:UpdateWorldTemplate' :: UpdateWorldTemplate -> Maybe Text
name} -> Maybe Text
name) (\s :: UpdateWorldTemplate
s@UpdateWorldTemplate' {} Maybe Text
a -> UpdateWorldTemplate
s {$sel:name:UpdateWorldTemplate' :: Maybe Text
name = Maybe Text
a} :: UpdateWorldTemplate)
updateWorldTemplate_templateLocation :: Lens.Lens' UpdateWorldTemplate (Prelude.Maybe TemplateLocation)
updateWorldTemplate_templateLocation :: (Maybe TemplateLocation -> f (Maybe TemplateLocation))
-> UpdateWorldTemplate -> f UpdateWorldTemplate
updateWorldTemplate_templateLocation = (UpdateWorldTemplate -> Maybe TemplateLocation)
-> (UpdateWorldTemplate
-> Maybe TemplateLocation -> UpdateWorldTemplate)
-> Lens
UpdateWorldTemplate
UpdateWorldTemplate
(Maybe TemplateLocation)
(Maybe TemplateLocation)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateWorldTemplate' {Maybe TemplateLocation
templateLocation :: Maybe TemplateLocation
$sel:templateLocation:UpdateWorldTemplate' :: UpdateWorldTemplate -> Maybe TemplateLocation
templateLocation} -> Maybe TemplateLocation
templateLocation) (\s :: UpdateWorldTemplate
s@UpdateWorldTemplate' {} Maybe TemplateLocation
a -> UpdateWorldTemplate
s {$sel:templateLocation:UpdateWorldTemplate' :: Maybe TemplateLocation
templateLocation = Maybe TemplateLocation
a} :: UpdateWorldTemplate)
updateWorldTemplate_templateBody :: Lens.Lens' UpdateWorldTemplate (Prelude.Maybe Prelude.Text)
updateWorldTemplate_templateBody :: (Maybe Text -> f (Maybe Text))
-> UpdateWorldTemplate -> f UpdateWorldTemplate
updateWorldTemplate_templateBody = (UpdateWorldTemplate -> Maybe Text)
-> (UpdateWorldTemplate -> Maybe Text -> UpdateWorldTemplate)
-> Lens
UpdateWorldTemplate UpdateWorldTemplate (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateWorldTemplate' {Maybe Text
templateBody :: Maybe Text
$sel:templateBody:UpdateWorldTemplate' :: UpdateWorldTemplate -> Maybe Text
templateBody} -> Maybe Text
templateBody) (\s :: UpdateWorldTemplate
s@UpdateWorldTemplate' {} Maybe Text
a -> UpdateWorldTemplate
s {$sel:templateBody:UpdateWorldTemplate' :: Maybe Text
templateBody = Maybe Text
a} :: UpdateWorldTemplate)
updateWorldTemplate_template :: Lens.Lens' UpdateWorldTemplate Prelude.Text
updateWorldTemplate_template :: (Text -> f Text) -> UpdateWorldTemplate -> f UpdateWorldTemplate
updateWorldTemplate_template = (UpdateWorldTemplate -> Text)
-> (UpdateWorldTemplate -> Text -> UpdateWorldTemplate)
-> Lens UpdateWorldTemplate UpdateWorldTemplate Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateWorldTemplate' {Text
template :: Text
$sel:template:UpdateWorldTemplate' :: UpdateWorldTemplate -> Text
template} -> Text
template) (\s :: UpdateWorldTemplate
s@UpdateWorldTemplate' {} Text
a -> UpdateWorldTemplate
s {$sel:template:UpdateWorldTemplate' :: Text
template = Text
a} :: UpdateWorldTemplate)
instance Core.AWSRequest UpdateWorldTemplate where
type
AWSResponse UpdateWorldTemplate =
UpdateWorldTemplateResponse
request :: UpdateWorldTemplate -> Request UpdateWorldTemplate
request = Service -> UpdateWorldTemplate -> Request UpdateWorldTemplate
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
response :: Logger
-> Service
-> Proxy UpdateWorldTemplate
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse UpdateWorldTemplate)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse UpdateWorldTemplate))
-> Logger
-> Service
-> Proxy UpdateWorldTemplate
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse UpdateWorldTemplate)))
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 POSIX
-> Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Int
-> UpdateWorldTemplateResponse
UpdateWorldTemplateResponse'
(Maybe POSIX
-> Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Int
-> UpdateWorldTemplateResponse)
-> Either String (Maybe POSIX)
-> Either
String
(Maybe Text
-> Maybe POSIX -> Maybe Text -> Int -> UpdateWorldTemplateResponse)
forall (f :: * -> *) a b. Functor 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
"lastUpdatedAt")
Either
String
(Maybe Text
-> Maybe POSIX -> Maybe Text -> Int -> UpdateWorldTemplateResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe POSIX -> Maybe Text -> Int -> UpdateWorldTemplateResponse)
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
"arn")
Either
String
(Maybe POSIX -> Maybe Text -> Int -> UpdateWorldTemplateResponse)
-> Either String (Maybe POSIX)
-> Either String (Maybe Text -> Int -> UpdateWorldTemplateResponse)
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 -> Int -> UpdateWorldTemplateResponse)
-> Either String (Maybe Text)
-> Either String (Int -> UpdateWorldTemplateResponse)
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 (Int -> UpdateWorldTemplateResponse)
-> Either String Int -> Either String UpdateWorldTemplateResponse
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 UpdateWorldTemplate
instance Prelude.NFData UpdateWorldTemplate
instance Core.ToHeaders UpdateWorldTemplate where
toHeaders :: UpdateWorldTemplate -> ResponseHeaders
toHeaders =
ResponseHeaders -> UpdateWorldTemplate -> 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 UpdateWorldTemplate where
toJSON :: UpdateWorldTemplate -> Value
toJSON UpdateWorldTemplate' {Maybe Text
Maybe TemplateLocation
Text
template :: Text
templateBody :: Maybe Text
templateLocation :: Maybe TemplateLocation
name :: Maybe Text
$sel:template:UpdateWorldTemplate' :: UpdateWorldTemplate -> Text
$sel:templateBody:UpdateWorldTemplate' :: UpdateWorldTemplate -> Maybe Text
$sel:templateLocation:UpdateWorldTemplate' :: UpdateWorldTemplate -> Maybe TemplateLocation
$sel:name:UpdateWorldTemplate' :: UpdateWorldTemplate -> Maybe Text
..} =
[Pair] -> Value
Core.object
( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[ (Text
"name" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (Text -> Pair) -> Maybe Text -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
name,
(Text
"templateLocation" Text -> TemplateLocation -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
(TemplateLocation -> Pair) -> Maybe TemplateLocation -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe TemplateLocation
templateLocation,
(Text
"templateBody" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (Text -> Pair) -> Maybe Text -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
templateBody,
Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just (Text
"template" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
template)
]
)
instance Core.ToPath UpdateWorldTemplate where
toPath :: UpdateWorldTemplate -> ByteString
toPath = ByteString -> UpdateWorldTemplate -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/updateWorldTemplate"
instance Core.ToQuery UpdateWorldTemplate where
toQuery :: UpdateWorldTemplate -> QueryString
toQuery = QueryString -> UpdateWorldTemplate -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data UpdateWorldTemplateResponse = UpdateWorldTemplateResponse'
{
UpdateWorldTemplateResponse -> Maybe POSIX
lastUpdatedAt :: Prelude.Maybe Core.POSIX,
UpdateWorldTemplateResponse -> Maybe Text
arn :: Prelude.Maybe Prelude.Text,
UpdateWorldTemplateResponse -> Maybe POSIX
createdAt :: Prelude.Maybe Core.POSIX,
UpdateWorldTemplateResponse -> Maybe Text
name :: Prelude.Maybe Prelude.Text,
UpdateWorldTemplateResponse -> Int
httpStatus :: Prelude.Int
}
deriving (UpdateWorldTemplateResponse -> UpdateWorldTemplateResponse -> Bool
(UpdateWorldTemplateResponse
-> UpdateWorldTemplateResponse -> Bool)
-> (UpdateWorldTemplateResponse
-> UpdateWorldTemplateResponse -> Bool)
-> Eq UpdateWorldTemplateResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: UpdateWorldTemplateResponse -> UpdateWorldTemplateResponse -> Bool
$c/= :: UpdateWorldTemplateResponse -> UpdateWorldTemplateResponse -> Bool
== :: UpdateWorldTemplateResponse -> UpdateWorldTemplateResponse -> Bool
$c== :: UpdateWorldTemplateResponse -> UpdateWorldTemplateResponse -> Bool
Prelude.Eq, ReadPrec [UpdateWorldTemplateResponse]
ReadPrec UpdateWorldTemplateResponse
Int -> ReadS UpdateWorldTemplateResponse
ReadS [UpdateWorldTemplateResponse]
(Int -> ReadS UpdateWorldTemplateResponse)
-> ReadS [UpdateWorldTemplateResponse]
-> ReadPrec UpdateWorldTemplateResponse
-> ReadPrec [UpdateWorldTemplateResponse]
-> Read UpdateWorldTemplateResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [UpdateWorldTemplateResponse]
$creadListPrec :: ReadPrec [UpdateWorldTemplateResponse]
readPrec :: ReadPrec UpdateWorldTemplateResponse
$creadPrec :: ReadPrec UpdateWorldTemplateResponse
readList :: ReadS [UpdateWorldTemplateResponse]
$creadList :: ReadS [UpdateWorldTemplateResponse]
readsPrec :: Int -> ReadS UpdateWorldTemplateResponse
$creadsPrec :: Int -> ReadS UpdateWorldTemplateResponse
Prelude.Read, Int -> UpdateWorldTemplateResponse -> ShowS
[UpdateWorldTemplateResponse] -> ShowS
UpdateWorldTemplateResponse -> String
(Int -> UpdateWorldTemplateResponse -> ShowS)
-> (UpdateWorldTemplateResponse -> String)
-> ([UpdateWorldTemplateResponse] -> ShowS)
-> Show UpdateWorldTemplateResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [UpdateWorldTemplateResponse] -> ShowS
$cshowList :: [UpdateWorldTemplateResponse] -> ShowS
show :: UpdateWorldTemplateResponse -> String
$cshow :: UpdateWorldTemplateResponse -> String
showsPrec :: Int -> UpdateWorldTemplateResponse -> ShowS
$cshowsPrec :: Int -> UpdateWorldTemplateResponse -> ShowS
Prelude.Show, (forall x.
UpdateWorldTemplateResponse -> Rep UpdateWorldTemplateResponse x)
-> (forall x.
Rep UpdateWorldTemplateResponse x -> UpdateWorldTemplateResponse)
-> Generic UpdateWorldTemplateResponse
forall x.
Rep UpdateWorldTemplateResponse x -> UpdateWorldTemplateResponse
forall x.
UpdateWorldTemplateResponse -> Rep UpdateWorldTemplateResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep UpdateWorldTemplateResponse x -> UpdateWorldTemplateResponse
$cfrom :: forall x.
UpdateWorldTemplateResponse -> Rep UpdateWorldTemplateResponse x
Prelude.Generic)
newUpdateWorldTemplateResponse ::
Prelude.Int ->
UpdateWorldTemplateResponse
newUpdateWorldTemplateResponse :: Int -> UpdateWorldTemplateResponse
newUpdateWorldTemplateResponse Int
pHttpStatus_ =
UpdateWorldTemplateResponse' :: Maybe POSIX
-> Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Int
-> UpdateWorldTemplateResponse
UpdateWorldTemplateResponse'
{ $sel:lastUpdatedAt:UpdateWorldTemplateResponse' :: Maybe POSIX
lastUpdatedAt =
Maybe POSIX
forall a. Maybe a
Prelude.Nothing,
$sel:arn:UpdateWorldTemplateResponse' :: Maybe Text
arn = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:createdAt:UpdateWorldTemplateResponse' :: Maybe POSIX
createdAt = Maybe POSIX
forall a. Maybe a
Prelude.Nothing,
$sel:name:UpdateWorldTemplateResponse' :: Maybe Text
name = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:UpdateWorldTemplateResponse' :: Int
httpStatus = Int
pHttpStatus_
}
updateWorldTemplateResponse_lastUpdatedAt :: Lens.Lens' UpdateWorldTemplateResponse (Prelude.Maybe Prelude.UTCTime)
updateWorldTemplateResponse_lastUpdatedAt :: (Maybe UTCTime -> f (Maybe UTCTime))
-> UpdateWorldTemplateResponse -> f UpdateWorldTemplateResponse
updateWorldTemplateResponse_lastUpdatedAt = (UpdateWorldTemplateResponse -> Maybe POSIX)
-> (UpdateWorldTemplateResponse
-> Maybe POSIX -> UpdateWorldTemplateResponse)
-> Lens
UpdateWorldTemplateResponse
UpdateWorldTemplateResponse
(Maybe POSIX)
(Maybe POSIX)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateWorldTemplateResponse' {Maybe POSIX
lastUpdatedAt :: Maybe POSIX
$sel:lastUpdatedAt:UpdateWorldTemplateResponse' :: UpdateWorldTemplateResponse -> Maybe POSIX
lastUpdatedAt} -> Maybe POSIX
lastUpdatedAt) (\s :: UpdateWorldTemplateResponse
s@UpdateWorldTemplateResponse' {} Maybe POSIX
a -> UpdateWorldTemplateResponse
s {$sel:lastUpdatedAt:UpdateWorldTemplateResponse' :: Maybe POSIX
lastUpdatedAt = Maybe POSIX
a} :: UpdateWorldTemplateResponse) ((Maybe POSIX -> f (Maybe POSIX))
-> UpdateWorldTemplateResponse -> f UpdateWorldTemplateResponse)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
-> Maybe POSIX -> f (Maybe POSIX))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> UpdateWorldTemplateResponse
-> f UpdateWorldTemplateResponse
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
updateWorldTemplateResponse_arn :: Lens.Lens' UpdateWorldTemplateResponse (Prelude.Maybe Prelude.Text)
updateWorldTemplateResponse_arn :: (Maybe Text -> f (Maybe Text))
-> UpdateWorldTemplateResponse -> f UpdateWorldTemplateResponse
updateWorldTemplateResponse_arn = (UpdateWorldTemplateResponse -> Maybe Text)
-> (UpdateWorldTemplateResponse
-> Maybe Text -> UpdateWorldTemplateResponse)
-> Lens
UpdateWorldTemplateResponse
UpdateWorldTemplateResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateWorldTemplateResponse' {Maybe Text
arn :: Maybe Text
$sel:arn:UpdateWorldTemplateResponse' :: UpdateWorldTemplateResponse -> Maybe Text
arn} -> Maybe Text
arn) (\s :: UpdateWorldTemplateResponse
s@UpdateWorldTemplateResponse' {} Maybe Text
a -> UpdateWorldTemplateResponse
s {$sel:arn:UpdateWorldTemplateResponse' :: Maybe Text
arn = Maybe Text
a} :: UpdateWorldTemplateResponse)
updateWorldTemplateResponse_createdAt :: Lens.Lens' UpdateWorldTemplateResponse (Prelude.Maybe Prelude.UTCTime)
updateWorldTemplateResponse_createdAt :: (Maybe UTCTime -> f (Maybe UTCTime))
-> UpdateWorldTemplateResponse -> f UpdateWorldTemplateResponse
updateWorldTemplateResponse_createdAt = (UpdateWorldTemplateResponse -> Maybe POSIX)
-> (UpdateWorldTemplateResponse
-> Maybe POSIX -> UpdateWorldTemplateResponse)
-> Lens
UpdateWorldTemplateResponse
UpdateWorldTemplateResponse
(Maybe POSIX)
(Maybe POSIX)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateWorldTemplateResponse' {Maybe POSIX
createdAt :: Maybe POSIX
$sel:createdAt:UpdateWorldTemplateResponse' :: UpdateWorldTemplateResponse -> Maybe POSIX
createdAt} -> Maybe POSIX
createdAt) (\s :: UpdateWorldTemplateResponse
s@UpdateWorldTemplateResponse' {} Maybe POSIX
a -> UpdateWorldTemplateResponse
s {$sel:createdAt:UpdateWorldTemplateResponse' :: Maybe POSIX
createdAt = Maybe POSIX
a} :: UpdateWorldTemplateResponse) ((Maybe POSIX -> f (Maybe POSIX))
-> UpdateWorldTemplateResponse -> f UpdateWorldTemplateResponse)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
-> Maybe POSIX -> f (Maybe POSIX))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> UpdateWorldTemplateResponse
-> f UpdateWorldTemplateResponse
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
updateWorldTemplateResponse_name :: Lens.Lens' UpdateWorldTemplateResponse (Prelude.Maybe Prelude.Text)
updateWorldTemplateResponse_name :: (Maybe Text -> f (Maybe Text))
-> UpdateWorldTemplateResponse -> f UpdateWorldTemplateResponse
updateWorldTemplateResponse_name = (UpdateWorldTemplateResponse -> Maybe Text)
-> (UpdateWorldTemplateResponse
-> Maybe Text -> UpdateWorldTemplateResponse)
-> Lens
UpdateWorldTemplateResponse
UpdateWorldTemplateResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateWorldTemplateResponse' {Maybe Text
name :: Maybe Text
$sel:name:UpdateWorldTemplateResponse' :: UpdateWorldTemplateResponse -> Maybe Text
name} -> Maybe Text
name) (\s :: UpdateWorldTemplateResponse
s@UpdateWorldTemplateResponse' {} Maybe Text
a -> UpdateWorldTemplateResponse
s {$sel:name:UpdateWorldTemplateResponse' :: Maybe Text
name = Maybe Text
a} :: UpdateWorldTemplateResponse)
updateWorldTemplateResponse_httpStatus :: Lens.Lens' UpdateWorldTemplateResponse Prelude.Int
updateWorldTemplateResponse_httpStatus :: (Int -> f Int)
-> UpdateWorldTemplateResponse -> f UpdateWorldTemplateResponse
updateWorldTemplateResponse_httpStatus = (UpdateWorldTemplateResponse -> Int)
-> (UpdateWorldTemplateResponse
-> Int -> UpdateWorldTemplateResponse)
-> Lens
UpdateWorldTemplateResponse UpdateWorldTemplateResponse Int Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateWorldTemplateResponse' {Int
httpStatus :: Int
$sel:httpStatus:UpdateWorldTemplateResponse' :: UpdateWorldTemplateResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: UpdateWorldTemplateResponse
s@UpdateWorldTemplateResponse' {} Int
a -> UpdateWorldTemplateResponse
s {$sel:httpStatus:UpdateWorldTemplateResponse' :: Int
httpStatus = Int
a} :: UpdateWorldTemplateResponse)
instance Prelude.NFData UpdateWorldTemplateResponse