{-# 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.DescribeWorld
(
DescribeWorld (..),
newDescribeWorld,
describeWorld_world,
DescribeWorldResponse (..),
newDescribeWorldResponse,
describeWorldResponse_worldDescriptionBody,
describeWorldResponse_arn,
describeWorldResponse_createdAt,
describeWorldResponse_template,
describeWorldResponse_tags,
describeWorldResponse_generationJob,
describeWorldResponse_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 DescribeWorld = DescribeWorld'
{
DescribeWorld -> Text
world :: Prelude.Text
}
deriving (DescribeWorld -> DescribeWorld -> Bool
(DescribeWorld -> DescribeWorld -> Bool)
-> (DescribeWorld -> DescribeWorld -> Bool) -> Eq DescribeWorld
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DescribeWorld -> DescribeWorld -> Bool
$c/= :: DescribeWorld -> DescribeWorld -> Bool
== :: DescribeWorld -> DescribeWorld -> Bool
$c== :: DescribeWorld -> DescribeWorld -> Bool
Prelude.Eq, ReadPrec [DescribeWorld]
ReadPrec DescribeWorld
Int -> ReadS DescribeWorld
ReadS [DescribeWorld]
(Int -> ReadS DescribeWorld)
-> ReadS [DescribeWorld]
-> ReadPrec DescribeWorld
-> ReadPrec [DescribeWorld]
-> Read DescribeWorld
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DescribeWorld]
$creadListPrec :: ReadPrec [DescribeWorld]
readPrec :: ReadPrec DescribeWorld
$creadPrec :: ReadPrec DescribeWorld
readList :: ReadS [DescribeWorld]
$creadList :: ReadS [DescribeWorld]
readsPrec :: Int -> ReadS DescribeWorld
$creadsPrec :: Int -> ReadS DescribeWorld
Prelude.Read, Int -> DescribeWorld -> ShowS
[DescribeWorld] -> ShowS
DescribeWorld -> String
(Int -> DescribeWorld -> ShowS)
-> (DescribeWorld -> String)
-> ([DescribeWorld] -> ShowS)
-> Show DescribeWorld
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DescribeWorld] -> ShowS
$cshowList :: [DescribeWorld] -> ShowS
show :: DescribeWorld -> String
$cshow :: DescribeWorld -> String
showsPrec :: Int -> DescribeWorld -> ShowS
$cshowsPrec :: Int -> DescribeWorld -> ShowS
Prelude.Show, (forall x. DescribeWorld -> Rep DescribeWorld x)
-> (forall x. Rep DescribeWorld x -> DescribeWorld)
-> Generic DescribeWorld
forall x. Rep DescribeWorld x -> DescribeWorld
forall x. DescribeWorld -> Rep DescribeWorld x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep DescribeWorld x -> DescribeWorld
$cfrom :: forall x. DescribeWorld -> Rep DescribeWorld x
Prelude.Generic)
newDescribeWorld ::
Prelude.Text ->
DescribeWorld
newDescribeWorld :: Text -> DescribeWorld
newDescribeWorld Text
pWorld_ =
DescribeWorld' :: Text -> DescribeWorld
DescribeWorld' {$sel:world:DescribeWorld' :: Text
world = Text
pWorld_}
describeWorld_world :: Lens.Lens' DescribeWorld Prelude.Text
describeWorld_world :: (Text -> f Text) -> DescribeWorld -> f DescribeWorld
describeWorld_world = (DescribeWorld -> Text)
-> (DescribeWorld -> Text -> DescribeWorld)
-> Lens DescribeWorld DescribeWorld Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeWorld' {Text
world :: Text
$sel:world:DescribeWorld' :: DescribeWorld -> Text
world} -> Text
world) (\s :: DescribeWorld
s@DescribeWorld' {} Text
a -> DescribeWorld
s {$sel:world:DescribeWorld' :: Text
world = Text
a} :: DescribeWorld)
instance Core.AWSRequest DescribeWorld where
type
AWSResponse DescribeWorld =
DescribeWorldResponse
request :: DescribeWorld -> Request DescribeWorld
request = Service -> DescribeWorld -> Request DescribeWorld
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
response :: Logger
-> Service
-> Proxy DescribeWorld
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse DescribeWorld)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse DescribeWorld))
-> Logger
-> Service
-> Proxy DescribeWorld
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse DescribeWorld)))
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 Text
-> Maybe POSIX
-> Maybe Text
-> Maybe (HashMap Text Text)
-> Maybe Text
-> Int
-> DescribeWorldResponse
DescribeWorldResponse'
(Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe (HashMap Text Text)
-> Maybe Text
-> Int
-> DescribeWorldResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe (HashMap Text Text)
-> Maybe Text
-> Int
-> DescribeWorldResponse)
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
"worldDescriptionBody")
Either
String
(Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe (HashMap Text Text)
-> Maybe Text
-> Int
-> DescribeWorldResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe POSIX
-> Maybe Text
-> Maybe (HashMap Text Text)
-> Maybe Text
-> Int
-> DescribeWorldResponse)
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
-> Maybe (HashMap Text Text)
-> Maybe Text
-> Int
-> DescribeWorldResponse)
-> Either String (Maybe POSIX)
-> Either
String
(Maybe Text
-> Maybe (HashMap Text Text)
-> Maybe Text
-> Int
-> DescribeWorldResponse)
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 (HashMap Text Text)
-> Maybe Text
-> Int
-> DescribeWorldResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe (HashMap Text Text)
-> Maybe Text -> Int -> DescribeWorldResponse)
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
"template")
Either
String
(Maybe (HashMap Text Text)
-> Maybe Text -> Int -> DescribeWorldResponse)
-> Either String (Maybe (HashMap Text Text))
-> Either String (Maybe Text -> Int -> DescribeWorldResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe (Maybe (HashMap Text Text)))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"tags" Either String (Maybe (Maybe (HashMap Text Text)))
-> Maybe (HashMap Text Text)
-> Either String (Maybe (HashMap Text Text))
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ Maybe (HashMap Text Text)
forall a. Monoid a => a
Prelude.mempty)
Either String (Maybe Text -> Int -> DescribeWorldResponse)
-> Either String (Maybe Text)
-> Either String (Int -> DescribeWorldResponse)
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
"generationJob")
Either String (Int -> DescribeWorldResponse)
-> Either String Int -> Either String DescribeWorldResponse
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 DescribeWorld
instance Prelude.NFData DescribeWorld
instance Core.ToHeaders DescribeWorld where
toHeaders :: DescribeWorld -> ResponseHeaders
toHeaders =
ResponseHeaders -> DescribeWorld -> 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 DescribeWorld where
toJSON :: DescribeWorld -> Value
toJSON DescribeWorld' {Text
world :: Text
$sel:world:DescribeWorld' :: DescribeWorld -> 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
"world" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
world)]
)
instance Core.ToPath DescribeWorld where
toPath :: DescribeWorld -> ByteString
toPath = ByteString -> DescribeWorld -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/describeWorld"
instance Core.ToQuery DescribeWorld where
toQuery :: DescribeWorld -> QueryString
toQuery = QueryString -> DescribeWorld -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data DescribeWorldResponse = DescribeWorldResponse'
{
DescribeWorldResponse -> Maybe Text
worldDescriptionBody :: Prelude.Maybe Prelude.Text,
DescribeWorldResponse -> Maybe Text
arn :: Prelude.Maybe Prelude.Text,
DescribeWorldResponse -> Maybe POSIX
createdAt :: Prelude.Maybe Core.POSIX,
DescribeWorldResponse -> Maybe Text
template :: Prelude.Maybe Prelude.Text,
DescribeWorldResponse -> Maybe (HashMap Text Text)
tags :: Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text),
DescribeWorldResponse -> Maybe Text
generationJob :: Prelude.Maybe Prelude.Text,
DescribeWorldResponse -> Int
httpStatus :: Prelude.Int
}
deriving (DescribeWorldResponse -> DescribeWorldResponse -> Bool
(DescribeWorldResponse -> DescribeWorldResponse -> Bool)
-> (DescribeWorldResponse -> DescribeWorldResponse -> Bool)
-> Eq DescribeWorldResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DescribeWorldResponse -> DescribeWorldResponse -> Bool
$c/= :: DescribeWorldResponse -> DescribeWorldResponse -> Bool
== :: DescribeWorldResponse -> DescribeWorldResponse -> Bool
$c== :: DescribeWorldResponse -> DescribeWorldResponse -> Bool
Prelude.Eq, ReadPrec [DescribeWorldResponse]
ReadPrec DescribeWorldResponse
Int -> ReadS DescribeWorldResponse
ReadS [DescribeWorldResponse]
(Int -> ReadS DescribeWorldResponse)
-> ReadS [DescribeWorldResponse]
-> ReadPrec DescribeWorldResponse
-> ReadPrec [DescribeWorldResponse]
-> Read DescribeWorldResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DescribeWorldResponse]
$creadListPrec :: ReadPrec [DescribeWorldResponse]
readPrec :: ReadPrec DescribeWorldResponse
$creadPrec :: ReadPrec DescribeWorldResponse
readList :: ReadS [DescribeWorldResponse]
$creadList :: ReadS [DescribeWorldResponse]
readsPrec :: Int -> ReadS DescribeWorldResponse
$creadsPrec :: Int -> ReadS DescribeWorldResponse
Prelude.Read, Int -> DescribeWorldResponse -> ShowS
[DescribeWorldResponse] -> ShowS
DescribeWorldResponse -> String
(Int -> DescribeWorldResponse -> ShowS)
-> (DescribeWorldResponse -> String)
-> ([DescribeWorldResponse] -> ShowS)
-> Show DescribeWorldResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DescribeWorldResponse] -> ShowS
$cshowList :: [DescribeWorldResponse] -> ShowS
show :: DescribeWorldResponse -> String
$cshow :: DescribeWorldResponse -> String
showsPrec :: Int -> DescribeWorldResponse -> ShowS
$cshowsPrec :: Int -> DescribeWorldResponse -> ShowS
Prelude.Show, (forall x. DescribeWorldResponse -> Rep DescribeWorldResponse x)
-> (forall x. Rep DescribeWorldResponse x -> DescribeWorldResponse)
-> Generic DescribeWorldResponse
forall x. Rep DescribeWorldResponse x -> DescribeWorldResponse
forall x. DescribeWorldResponse -> Rep DescribeWorldResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep DescribeWorldResponse x -> DescribeWorldResponse
$cfrom :: forall x. DescribeWorldResponse -> Rep DescribeWorldResponse x
Prelude.Generic)
newDescribeWorldResponse ::
Prelude.Int ->
DescribeWorldResponse
newDescribeWorldResponse :: Int -> DescribeWorldResponse
newDescribeWorldResponse Int
pHttpStatus_ =
DescribeWorldResponse' :: Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe (HashMap Text Text)
-> Maybe Text
-> Int
-> DescribeWorldResponse
DescribeWorldResponse'
{ $sel:worldDescriptionBody:DescribeWorldResponse' :: Maybe Text
worldDescriptionBody =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:arn:DescribeWorldResponse' :: Maybe Text
arn = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:createdAt:DescribeWorldResponse' :: Maybe POSIX
createdAt = Maybe POSIX
forall a. Maybe a
Prelude.Nothing,
$sel:template:DescribeWorldResponse' :: Maybe Text
template = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:tags:DescribeWorldResponse' :: Maybe (HashMap Text Text)
tags = Maybe (HashMap Text Text)
forall a. Maybe a
Prelude.Nothing,
$sel:generationJob:DescribeWorldResponse' :: Maybe Text
generationJob = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:DescribeWorldResponse' :: Int
httpStatus = Int
pHttpStatus_
}
describeWorldResponse_worldDescriptionBody :: Lens.Lens' DescribeWorldResponse (Prelude.Maybe Prelude.Text)
describeWorldResponse_worldDescriptionBody :: (Maybe Text -> f (Maybe Text))
-> DescribeWorldResponse -> f DescribeWorldResponse
describeWorldResponse_worldDescriptionBody = (DescribeWorldResponse -> Maybe Text)
-> (DescribeWorldResponse -> Maybe Text -> DescribeWorldResponse)
-> Lens
DescribeWorldResponse
DescribeWorldResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeWorldResponse' {Maybe Text
worldDescriptionBody :: Maybe Text
$sel:worldDescriptionBody:DescribeWorldResponse' :: DescribeWorldResponse -> Maybe Text
worldDescriptionBody} -> Maybe Text
worldDescriptionBody) (\s :: DescribeWorldResponse
s@DescribeWorldResponse' {} Maybe Text
a -> DescribeWorldResponse
s {$sel:worldDescriptionBody:DescribeWorldResponse' :: Maybe Text
worldDescriptionBody = Maybe Text
a} :: DescribeWorldResponse)
describeWorldResponse_arn :: Lens.Lens' DescribeWorldResponse (Prelude.Maybe Prelude.Text)
describeWorldResponse_arn :: (Maybe Text -> f (Maybe Text))
-> DescribeWorldResponse -> f DescribeWorldResponse
describeWorldResponse_arn = (DescribeWorldResponse -> Maybe Text)
-> (DescribeWorldResponse -> Maybe Text -> DescribeWorldResponse)
-> Lens
DescribeWorldResponse
DescribeWorldResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeWorldResponse' {Maybe Text
arn :: Maybe Text
$sel:arn:DescribeWorldResponse' :: DescribeWorldResponse -> Maybe Text
arn} -> Maybe Text
arn) (\s :: DescribeWorldResponse
s@DescribeWorldResponse' {} Maybe Text
a -> DescribeWorldResponse
s {$sel:arn:DescribeWorldResponse' :: Maybe Text
arn = Maybe Text
a} :: DescribeWorldResponse)
describeWorldResponse_createdAt :: Lens.Lens' DescribeWorldResponse (Prelude.Maybe Prelude.UTCTime)
describeWorldResponse_createdAt :: (Maybe UTCTime -> f (Maybe UTCTime))
-> DescribeWorldResponse -> f DescribeWorldResponse
describeWorldResponse_createdAt = (DescribeWorldResponse -> Maybe POSIX)
-> (DescribeWorldResponse -> Maybe POSIX -> DescribeWorldResponse)
-> Lens
DescribeWorldResponse
DescribeWorldResponse
(Maybe POSIX)
(Maybe POSIX)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeWorldResponse' {Maybe POSIX
createdAt :: Maybe POSIX
$sel:createdAt:DescribeWorldResponse' :: DescribeWorldResponse -> Maybe POSIX
createdAt} -> Maybe POSIX
createdAt) (\s :: DescribeWorldResponse
s@DescribeWorldResponse' {} Maybe POSIX
a -> DescribeWorldResponse
s {$sel:createdAt:DescribeWorldResponse' :: Maybe POSIX
createdAt = Maybe POSIX
a} :: DescribeWorldResponse) ((Maybe POSIX -> f (Maybe POSIX))
-> DescribeWorldResponse -> f DescribeWorldResponse)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
-> Maybe POSIX -> f (Maybe POSIX))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> DescribeWorldResponse
-> f DescribeWorldResponse
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
describeWorldResponse_template :: Lens.Lens' DescribeWorldResponse (Prelude.Maybe Prelude.Text)
describeWorldResponse_template :: (Maybe Text -> f (Maybe Text))
-> DescribeWorldResponse -> f DescribeWorldResponse
describeWorldResponse_template = (DescribeWorldResponse -> Maybe Text)
-> (DescribeWorldResponse -> Maybe Text -> DescribeWorldResponse)
-> Lens
DescribeWorldResponse
DescribeWorldResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeWorldResponse' {Maybe Text
template :: Maybe Text
$sel:template:DescribeWorldResponse' :: DescribeWorldResponse -> Maybe Text
template} -> Maybe Text
template) (\s :: DescribeWorldResponse
s@DescribeWorldResponse' {} Maybe Text
a -> DescribeWorldResponse
s {$sel:template:DescribeWorldResponse' :: Maybe Text
template = Maybe Text
a} :: DescribeWorldResponse)
describeWorldResponse_tags :: Lens.Lens' DescribeWorldResponse (Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text))
describeWorldResponse_tags :: (Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> DescribeWorldResponse -> f DescribeWorldResponse
describeWorldResponse_tags = (DescribeWorldResponse -> Maybe (HashMap Text Text))
-> (DescribeWorldResponse
-> Maybe (HashMap Text Text) -> DescribeWorldResponse)
-> Lens
DescribeWorldResponse
DescribeWorldResponse
(Maybe (HashMap Text Text))
(Maybe (HashMap Text Text))
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeWorldResponse' {Maybe (HashMap Text Text)
tags :: Maybe (HashMap Text Text)
$sel:tags:DescribeWorldResponse' :: DescribeWorldResponse -> Maybe (HashMap Text Text)
tags} -> Maybe (HashMap Text Text)
tags) (\s :: DescribeWorldResponse
s@DescribeWorldResponse' {} Maybe (HashMap Text Text)
a -> DescribeWorldResponse
s {$sel:tags:DescribeWorldResponse' :: Maybe (HashMap Text Text)
tags = Maybe (HashMap Text Text)
a} :: DescribeWorldResponse) ((Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> DescribeWorldResponse -> f DescribeWorldResponse)
-> ((Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> (Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> DescribeWorldResponse
-> f DescribeWorldResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
(HashMap Text Text)
(HashMap Text Text)
(HashMap Text Text)
(HashMap Text Text)
-> Iso
(Maybe (HashMap Text Text))
(Maybe (HashMap Text Text))
(Maybe (HashMap Text Text))
(Maybe (HashMap Text Text))
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
(HashMap Text Text)
(HashMap Text Text)
(HashMap Text Text)
(HashMap Text Text)
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
describeWorldResponse_generationJob :: Lens.Lens' DescribeWorldResponse (Prelude.Maybe Prelude.Text)
describeWorldResponse_generationJob :: (Maybe Text -> f (Maybe Text))
-> DescribeWorldResponse -> f DescribeWorldResponse
describeWorldResponse_generationJob = (DescribeWorldResponse -> Maybe Text)
-> (DescribeWorldResponse -> Maybe Text -> DescribeWorldResponse)
-> Lens
DescribeWorldResponse
DescribeWorldResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeWorldResponse' {Maybe Text
generationJob :: Maybe Text
$sel:generationJob:DescribeWorldResponse' :: DescribeWorldResponse -> Maybe Text
generationJob} -> Maybe Text
generationJob) (\s :: DescribeWorldResponse
s@DescribeWorldResponse' {} Maybe Text
a -> DescribeWorldResponse
s {$sel:generationJob:DescribeWorldResponse' :: Maybe Text
generationJob = Maybe Text
a} :: DescribeWorldResponse)
describeWorldResponse_httpStatus :: Lens.Lens' DescribeWorldResponse Prelude.Int
describeWorldResponse_httpStatus :: (Int -> f Int) -> DescribeWorldResponse -> f DescribeWorldResponse
describeWorldResponse_httpStatus = (DescribeWorldResponse -> Int)
-> (DescribeWorldResponse -> Int -> DescribeWorldResponse)
-> Lens DescribeWorldResponse DescribeWorldResponse Int Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeWorldResponse' {Int
httpStatus :: Int
$sel:httpStatus:DescribeWorldResponse' :: DescribeWorldResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: DescribeWorldResponse
s@DescribeWorldResponse' {} Int
a -> DescribeWorldResponse
s {$sel:httpStatus:DescribeWorldResponse' :: Int
httpStatus = Int
a} :: DescribeWorldResponse)
instance Prelude.NFData DescribeWorldResponse