{-# 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.CreateRobotApplication
(
CreateRobotApplication (..),
newCreateRobotApplication,
createRobotApplication_environment,
createRobotApplication_sources,
createRobotApplication_tags,
createRobotApplication_name,
createRobotApplication_robotSoftwareSuite,
CreateRobotApplicationResponse (..),
newCreateRobotApplicationResponse,
createRobotApplicationResponse_arn,
createRobotApplicationResponse_environment,
createRobotApplicationResponse_lastUpdatedAt,
createRobotApplicationResponse_name,
createRobotApplicationResponse_revisionId,
createRobotApplicationResponse_robotSoftwareSuite,
createRobotApplicationResponse_sources,
createRobotApplicationResponse_tags,
createRobotApplicationResponse_version,
createRobotApplicationResponse_httpStatus,
)
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
import qualified Amazonka.Request as Request
import qualified Amazonka.Response as Response
import Amazonka.RobOMaker.Types
data CreateRobotApplication = CreateRobotApplication'
{
CreateRobotApplication -> Maybe Environment
environment :: Prelude.Maybe Environment,
CreateRobotApplication -> Maybe [SourceConfig]
sources :: Prelude.Maybe [SourceConfig],
CreateRobotApplication -> Maybe (HashMap Text Text)
tags :: Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text),
CreateRobotApplication -> Text
name :: Prelude.Text,
CreateRobotApplication -> RobotSoftwareSuite
robotSoftwareSuite :: RobotSoftwareSuite
}
deriving (CreateRobotApplication -> CreateRobotApplication -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: CreateRobotApplication -> CreateRobotApplication -> Bool
$c/= :: CreateRobotApplication -> CreateRobotApplication -> Bool
== :: CreateRobotApplication -> CreateRobotApplication -> Bool
$c== :: CreateRobotApplication -> CreateRobotApplication -> Bool
Prelude.Eq, ReadPrec [CreateRobotApplication]
ReadPrec CreateRobotApplication
Int -> ReadS CreateRobotApplication
ReadS [CreateRobotApplication]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [CreateRobotApplication]
$creadListPrec :: ReadPrec [CreateRobotApplication]
readPrec :: ReadPrec CreateRobotApplication
$creadPrec :: ReadPrec CreateRobotApplication
readList :: ReadS [CreateRobotApplication]
$creadList :: ReadS [CreateRobotApplication]
readsPrec :: Int -> ReadS CreateRobotApplication
$creadsPrec :: Int -> ReadS CreateRobotApplication
Prelude.Read, Int -> CreateRobotApplication -> ShowS
[CreateRobotApplication] -> ShowS
CreateRobotApplication -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [CreateRobotApplication] -> ShowS
$cshowList :: [CreateRobotApplication] -> ShowS
show :: CreateRobotApplication -> String
$cshow :: CreateRobotApplication -> String
showsPrec :: Int -> CreateRobotApplication -> ShowS
$cshowsPrec :: Int -> CreateRobotApplication -> ShowS
Prelude.Show, forall x. Rep CreateRobotApplication x -> CreateRobotApplication
forall x. CreateRobotApplication -> Rep CreateRobotApplication x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep CreateRobotApplication x -> CreateRobotApplication
$cfrom :: forall x. CreateRobotApplication -> Rep CreateRobotApplication x
Prelude.Generic)
newCreateRobotApplication ::
Prelude.Text ->
RobotSoftwareSuite ->
CreateRobotApplication
newCreateRobotApplication :: Text -> RobotSoftwareSuite -> CreateRobotApplication
newCreateRobotApplication Text
pName_ RobotSoftwareSuite
pRobotSoftwareSuite_ =
CreateRobotApplication'
{ $sel:environment:CreateRobotApplication' :: Maybe Environment
environment =
forall a. Maybe a
Prelude.Nothing,
$sel:sources:CreateRobotApplication' :: Maybe [SourceConfig]
sources = forall a. Maybe a
Prelude.Nothing,
$sel:tags:CreateRobotApplication' :: Maybe (HashMap Text Text)
tags = forall a. Maybe a
Prelude.Nothing,
$sel:name:CreateRobotApplication' :: Text
name = Text
pName_,
$sel:robotSoftwareSuite:CreateRobotApplication' :: RobotSoftwareSuite
robotSoftwareSuite = RobotSoftwareSuite
pRobotSoftwareSuite_
}
createRobotApplication_environment :: Lens.Lens' CreateRobotApplication (Prelude.Maybe Environment)
createRobotApplication_environment :: Lens' CreateRobotApplication (Maybe Environment)
createRobotApplication_environment = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateRobotApplication' {Maybe Environment
environment :: Maybe Environment
$sel:environment:CreateRobotApplication' :: CreateRobotApplication -> Maybe Environment
environment} -> Maybe Environment
environment) (\s :: CreateRobotApplication
s@CreateRobotApplication' {} Maybe Environment
a -> CreateRobotApplication
s {$sel:environment:CreateRobotApplication' :: Maybe Environment
environment = Maybe Environment
a} :: CreateRobotApplication)
createRobotApplication_sources :: Lens.Lens' CreateRobotApplication (Prelude.Maybe [SourceConfig])
createRobotApplication_sources :: Lens' CreateRobotApplication (Maybe [SourceConfig])
createRobotApplication_sources = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateRobotApplication' {Maybe [SourceConfig]
sources :: Maybe [SourceConfig]
$sel:sources:CreateRobotApplication' :: CreateRobotApplication -> Maybe [SourceConfig]
sources} -> Maybe [SourceConfig]
sources) (\s :: CreateRobotApplication
s@CreateRobotApplication' {} Maybe [SourceConfig]
a -> CreateRobotApplication
s {$sel:sources:CreateRobotApplication' :: Maybe [SourceConfig]
sources = Maybe [SourceConfig]
a} :: CreateRobotApplication) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. 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 forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
createRobotApplication_tags :: Lens.Lens' CreateRobotApplication (Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text))
createRobotApplication_tags :: Lens' CreateRobotApplication (Maybe (HashMap Text Text))
createRobotApplication_tags = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateRobotApplication' {Maybe (HashMap Text Text)
tags :: Maybe (HashMap Text Text)
$sel:tags:CreateRobotApplication' :: CreateRobotApplication -> Maybe (HashMap Text Text)
tags} -> Maybe (HashMap Text Text)
tags) (\s :: CreateRobotApplication
s@CreateRobotApplication' {} Maybe (HashMap Text Text)
a -> CreateRobotApplication
s {$sel:tags:CreateRobotApplication' :: Maybe (HashMap Text Text)
tags = Maybe (HashMap Text Text)
a} :: CreateRobotApplication) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. 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 forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
createRobotApplication_name :: Lens.Lens' CreateRobotApplication Prelude.Text
createRobotApplication_name :: Lens' CreateRobotApplication Text
createRobotApplication_name = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateRobotApplication' {Text
name :: Text
$sel:name:CreateRobotApplication' :: CreateRobotApplication -> Text
name} -> Text
name) (\s :: CreateRobotApplication
s@CreateRobotApplication' {} Text
a -> CreateRobotApplication
s {$sel:name:CreateRobotApplication' :: Text
name = Text
a} :: CreateRobotApplication)
createRobotApplication_robotSoftwareSuite :: Lens.Lens' CreateRobotApplication RobotSoftwareSuite
createRobotApplication_robotSoftwareSuite :: Lens' CreateRobotApplication RobotSoftwareSuite
createRobotApplication_robotSoftwareSuite = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateRobotApplication' {RobotSoftwareSuite
robotSoftwareSuite :: RobotSoftwareSuite
$sel:robotSoftwareSuite:CreateRobotApplication' :: CreateRobotApplication -> RobotSoftwareSuite
robotSoftwareSuite} -> RobotSoftwareSuite
robotSoftwareSuite) (\s :: CreateRobotApplication
s@CreateRobotApplication' {} RobotSoftwareSuite
a -> CreateRobotApplication
s {$sel:robotSoftwareSuite:CreateRobotApplication' :: RobotSoftwareSuite
robotSoftwareSuite = RobotSoftwareSuite
a} :: CreateRobotApplication)
instance Core.AWSRequest CreateRobotApplication where
type
AWSResponse CreateRobotApplication =
CreateRobotApplicationResponse
request :: (Service -> Service)
-> CreateRobotApplication -> Request CreateRobotApplication
request Service -> Service
overrides =
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON (Service -> Service
overrides Service
defaultService)
response :: forall (m :: * -> *).
MonadResource m =>
(ByteStringLazy -> IO ByteStringLazy)
-> Service
-> Proxy CreateRobotApplication
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse CreateRobotApplication)))
response =
forall (m :: * -> *) a.
MonadResource m =>
(Int -> ResponseHeaders -> Object -> Either String (AWSResponse a))
-> (ByteStringLazy -> IO ByteStringLazy)
-> Service
-> Proxy a
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse a)))
Response.receiveJSON
( \Int
s ResponseHeaders
h Object
x ->
Maybe Text
-> Maybe Environment
-> Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe RobotSoftwareSuite
-> Maybe [Source]
-> Maybe (HashMap Text Text)
-> Maybe Text
-> Int
-> CreateRobotApplicationResponse
CreateRobotApplicationResponse'
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"arn")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"environment")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"lastUpdatedAt")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"name")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"revisionId")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"robotSoftwareSuite")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"sources" forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ forall a. Monoid a => a
Prelude.mempty)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"tags" forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ forall a. Monoid a => a
Prelude.mempty)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"version")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure (forall a. Enum a => a -> Int
Prelude.fromEnum Int
s))
)
instance Prelude.Hashable CreateRobotApplication where
hashWithSalt :: Int -> CreateRobotApplication -> Int
hashWithSalt Int
_salt CreateRobotApplication' {Maybe [SourceConfig]
Maybe (HashMap Text Text)
Maybe Environment
Text
RobotSoftwareSuite
robotSoftwareSuite :: RobotSoftwareSuite
name :: Text
tags :: Maybe (HashMap Text Text)
sources :: Maybe [SourceConfig]
environment :: Maybe Environment
$sel:robotSoftwareSuite:CreateRobotApplication' :: CreateRobotApplication -> RobotSoftwareSuite
$sel:name:CreateRobotApplication' :: CreateRobotApplication -> Text
$sel:tags:CreateRobotApplication' :: CreateRobotApplication -> Maybe (HashMap Text Text)
$sel:sources:CreateRobotApplication' :: CreateRobotApplication -> Maybe [SourceConfig]
$sel:environment:CreateRobotApplication' :: CreateRobotApplication -> Maybe Environment
..} =
Int
_salt
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Environment
environment
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe [SourceConfig]
sources
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe (HashMap Text Text)
tags
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Text
name
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` RobotSoftwareSuite
robotSoftwareSuite
instance Prelude.NFData CreateRobotApplication where
rnf :: CreateRobotApplication -> ()
rnf CreateRobotApplication' {Maybe [SourceConfig]
Maybe (HashMap Text Text)
Maybe Environment
Text
RobotSoftwareSuite
robotSoftwareSuite :: RobotSoftwareSuite
name :: Text
tags :: Maybe (HashMap Text Text)
sources :: Maybe [SourceConfig]
environment :: Maybe Environment
$sel:robotSoftwareSuite:CreateRobotApplication' :: CreateRobotApplication -> RobotSoftwareSuite
$sel:name:CreateRobotApplication' :: CreateRobotApplication -> Text
$sel:tags:CreateRobotApplication' :: CreateRobotApplication -> Maybe (HashMap Text Text)
$sel:sources:CreateRobotApplication' :: CreateRobotApplication -> Maybe [SourceConfig]
$sel:environment:CreateRobotApplication' :: CreateRobotApplication -> Maybe Environment
..} =
forall a. NFData a => a -> ()
Prelude.rnf Maybe Environment
environment
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe [SourceConfig]
sources
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe (HashMap Text Text)
tags
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Text
name
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf RobotSoftwareSuite
robotSoftwareSuite
instance Data.ToHeaders CreateRobotApplication where
toHeaders :: CreateRobotApplication -> ResponseHeaders
toHeaders =
forall a b. a -> b -> a
Prelude.const
( forall a. Monoid a => [a] -> a
Prelude.mconcat
[ HeaderName
"Content-Type"
forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Data.=# ( ByteString
"application/x-amz-json-1.1" ::
Prelude.ByteString
)
]
)
instance Data.ToJSON CreateRobotApplication where
toJSON :: CreateRobotApplication -> Value
toJSON CreateRobotApplication' {Maybe [SourceConfig]
Maybe (HashMap Text Text)
Maybe Environment
Text
RobotSoftwareSuite
robotSoftwareSuite :: RobotSoftwareSuite
name :: Text
tags :: Maybe (HashMap Text Text)
sources :: Maybe [SourceConfig]
environment :: Maybe Environment
$sel:robotSoftwareSuite:CreateRobotApplication' :: CreateRobotApplication -> RobotSoftwareSuite
$sel:name:CreateRobotApplication' :: CreateRobotApplication -> Text
$sel:tags:CreateRobotApplication' :: CreateRobotApplication -> Maybe (HashMap Text Text)
$sel:sources:CreateRobotApplication' :: CreateRobotApplication -> Maybe [SourceConfig]
$sel:environment:CreateRobotApplication' :: CreateRobotApplication -> Maybe Environment
..} =
[Pair] -> Value
Data.object
( forall a. [Maybe a] -> [a]
Prelude.catMaybes
[ (Key
"environment" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=) forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Environment
environment,
(Key
"sources" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=) forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [SourceConfig]
sources,
(Key
"tags" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=) forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (HashMap Text Text)
tags,
forall a. a -> Maybe a
Prelude.Just (Key
"name" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..= Text
name),
forall a. a -> Maybe a
Prelude.Just
(Key
"robotSoftwareSuite" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..= RobotSoftwareSuite
robotSoftwareSuite)
]
)
instance Data.ToPath CreateRobotApplication where
toPath :: CreateRobotApplication -> ByteString
toPath = forall a b. a -> b -> a
Prelude.const ByteString
"/createRobotApplication"
instance Data.ToQuery CreateRobotApplication where
toQuery :: CreateRobotApplication -> QueryString
toQuery = forall a b. a -> b -> a
Prelude.const forall a. Monoid a => a
Prelude.mempty
data CreateRobotApplicationResponse = CreateRobotApplicationResponse'
{
CreateRobotApplicationResponse -> Maybe Text
arn :: Prelude.Maybe Prelude.Text,
CreateRobotApplicationResponse -> Maybe Environment
environment :: Prelude.Maybe Environment,
CreateRobotApplicationResponse -> Maybe POSIX
lastUpdatedAt :: Prelude.Maybe Data.POSIX,
CreateRobotApplicationResponse -> Maybe Text
name :: Prelude.Maybe Prelude.Text,
CreateRobotApplicationResponse -> Maybe Text
revisionId :: Prelude.Maybe Prelude.Text,
CreateRobotApplicationResponse -> Maybe RobotSoftwareSuite
robotSoftwareSuite :: Prelude.Maybe RobotSoftwareSuite,
CreateRobotApplicationResponse -> Maybe [Source]
sources :: Prelude.Maybe [Source],
CreateRobotApplicationResponse -> Maybe (HashMap Text Text)
tags :: Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text),
CreateRobotApplicationResponse -> Maybe Text
version :: Prelude.Maybe Prelude.Text,
CreateRobotApplicationResponse -> Int
httpStatus :: Prelude.Int
}
deriving (CreateRobotApplicationResponse
-> CreateRobotApplicationResponse -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: CreateRobotApplicationResponse
-> CreateRobotApplicationResponse -> Bool
$c/= :: CreateRobotApplicationResponse
-> CreateRobotApplicationResponse -> Bool
== :: CreateRobotApplicationResponse
-> CreateRobotApplicationResponse -> Bool
$c== :: CreateRobotApplicationResponse
-> CreateRobotApplicationResponse -> Bool
Prelude.Eq, ReadPrec [CreateRobotApplicationResponse]
ReadPrec CreateRobotApplicationResponse
Int -> ReadS CreateRobotApplicationResponse
ReadS [CreateRobotApplicationResponse]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [CreateRobotApplicationResponse]
$creadListPrec :: ReadPrec [CreateRobotApplicationResponse]
readPrec :: ReadPrec CreateRobotApplicationResponse
$creadPrec :: ReadPrec CreateRobotApplicationResponse
readList :: ReadS [CreateRobotApplicationResponse]
$creadList :: ReadS [CreateRobotApplicationResponse]
readsPrec :: Int -> ReadS CreateRobotApplicationResponse
$creadsPrec :: Int -> ReadS CreateRobotApplicationResponse
Prelude.Read, Int -> CreateRobotApplicationResponse -> ShowS
[CreateRobotApplicationResponse] -> ShowS
CreateRobotApplicationResponse -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [CreateRobotApplicationResponse] -> ShowS
$cshowList :: [CreateRobotApplicationResponse] -> ShowS
show :: CreateRobotApplicationResponse -> String
$cshow :: CreateRobotApplicationResponse -> String
showsPrec :: Int -> CreateRobotApplicationResponse -> ShowS
$cshowsPrec :: Int -> CreateRobotApplicationResponse -> ShowS
Prelude.Show, forall x.
Rep CreateRobotApplicationResponse x
-> CreateRobotApplicationResponse
forall x.
CreateRobotApplicationResponse
-> Rep CreateRobotApplicationResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep CreateRobotApplicationResponse x
-> CreateRobotApplicationResponse
$cfrom :: forall x.
CreateRobotApplicationResponse
-> Rep CreateRobotApplicationResponse x
Prelude.Generic)
newCreateRobotApplicationResponse ::
Prelude.Int ->
CreateRobotApplicationResponse
newCreateRobotApplicationResponse :: Int -> CreateRobotApplicationResponse
newCreateRobotApplicationResponse Int
pHttpStatus_ =
CreateRobotApplicationResponse'
{ $sel:arn:CreateRobotApplicationResponse' :: Maybe Text
arn =
forall a. Maybe a
Prelude.Nothing,
$sel:environment:CreateRobotApplicationResponse' :: Maybe Environment
environment = forall a. Maybe a
Prelude.Nothing,
$sel:lastUpdatedAt:CreateRobotApplicationResponse' :: Maybe POSIX
lastUpdatedAt = forall a. Maybe a
Prelude.Nothing,
$sel:name:CreateRobotApplicationResponse' :: Maybe Text
name = forall a. Maybe a
Prelude.Nothing,
$sel:revisionId:CreateRobotApplicationResponse' :: Maybe Text
revisionId = forall a. Maybe a
Prelude.Nothing,
$sel:robotSoftwareSuite:CreateRobotApplicationResponse' :: Maybe RobotSoftwareSuite
robotSoftwareSuite = forall a. Maybe a
Prelude.Nothing,
$sel:sources:CreateRobotApplicationResponse' :: Maybe [Source]
sources = forall a. Maybe a
Prelude.Nothing,
$sel:tags:CreateRobotApplicationResponse' :: Maybe (HashMap Text Text)
tags = forall a. Maybe a
Prelude.Nothing,
$sel:version:CreateRobotApplicationResponse' :: Maybe Text
version = forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:CreateRobotApplicationResponse' :: Int
httpStatus = Int
pHttpStatus_
}
createRobotApplicationResponse_arn :: Lens.Lens' CreateRobotApplicationResponse (Prelude.Maybe Prelude.Text)
createRobotApplicationResponse_arn :: Lens' CreateRobotApplicationResponse (Maybe Text)
createRobotApplicationResponse_arn = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateRobotApplicationResponse' {Maybe Text
arn :: Maybe Text
$sel:arn:CreateRobotApplicationResponse' :: CreateRobotApplicationResponse -> Maybe Text
arn} -> Maybe Text
arn) (\s :: CreateRobotApplicationResponse
s@CreateRobotApplicationResponse' {} Maybe Text
a -> CreateRobotApplicationResponse
s {$sel:arn:CreateRobotApplicationResponse' :: Maybe Text
arn = Maybe Text
a} :: CreateRobotApplicationResponse)
createRobotApplicationResponse_environment :: Lens.Lens' CreateRobotApplicationResponse (Prelude.Maybe Environment)
createRobotApplicationResponse_environment :: Lens' CreateRobotApplicationResponse (Maybe Environment)
createRobotApplicationResponse_environment = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateRobotApplicationResponse' {Maybe Environment
environment :: Maybe Environment
$sel:environment:CreateRobotApplicationResponse' :: CreateRobotApplicationResponse -> Maybe Environment
environment} -> Maybe Environment
environment) (\s :: CreateRobotApplicationResponse
s@CreateRobotApplicationResponse' {} Maybe Environment
a -> CreateRobotApplicationResponse
s {$sel:environment:CreateRobotApplicationResponse' :: Maybe Environment
environment = Maybe Environment
a} :: CreateRobotApplicationResponse)
createRobotApplicationResponse_lastUpdatedAt :: Lens.Lens' CreateRobotApplicationResponse (Prelude.Maybe Prelude.UTCTime)
createRobotApplicationResponse_lastUpdatedAt :: Lens' CreateRobotApplicationResponse (Maybe UTCTime)
createRobotApplicationResponse_lastUpdatedAt = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateRobotApplicationResponse' {Maybe POSIX
lastUpdatedAt :: Maybe POSIX
$sel:lastUpdatedAt:CreateRobotApplicationResponse' :: CreateRobotApplicationResponse -> Maybe POSIX
lastUpdatedAt} -> Maybe POSIX
lastUpdatedAt) (\s :: CreateRobotApplicationResponse
s@CreateRobotApplicationResponse' {} Maybe POSIX
a -> CreateRobotApplicationResponse
s {$sel:lastUpdatedAt:CreateRobotApplicationResponse' :: Maybe POSIX
lastUpdatedAt = Maybe POSIX
a} :: CreateRobotApplicationResponse) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. 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 forall (a :: Format). Iso' (Time a) UTCTime
Data._Time
createRobotApplicationResponse_name :: Lens.Lens' CreateRobotApplicationResponse (Prelude.Maybe Prelude.Text)
createRobotApplicationResponse_name :: Lens' CreateRobotApplicationResponse (Maybe Text)
createRobotApplicationResponse_name = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateRobotApplicationResponse' {Maybe Text
name :: Maybe Text
$sel:name:CreateRobotApplicationResponse' :: CreateRobotApplicationResponse -> Maybe Text
name} -> Maybe Text
name) (\s :: CreateRobotApplicationResponse
s@CreateRobotApplicationResponse' {} Maybe Text
a -> CreateRobotApplicationResponse
s {$sel:name:CreateRobotApplicationResponse' :: Maybe Text
name = Maybe Text
a} :: CreateRobotApplicationResponse)
createRobotApplicationResponse_revisionId :: Lens.Lens' CreateRobotApplicationResponse (Prelude.Maybe Prelude.Text)
createRobotApplicationResponse_revisionId :: Lens' CreateRobotApplicationResponse (Maybe Text)
createRobotApplicationResponse_revisionId = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateRobotApplicationResponse' {Maybe Text
revisionId :: Maybe Text
$sel:revisionId:CreateRobotApplicationResponse' :: CreateRobotApplicationResponse -> Maybe Text
revisionId} -> Maybe Text
revisionId) (\s :: CreateRobotApplicationResponse
s@CreateRobotApplicationResponse' {} Maybe Text
a -> CreateRobotApplicationResponse
s {$sel:revisionId:CreateRobotApplicationResponse' :: Maybe Text
revisionId = Maybe Text
a} :: CreateRobotApplicationResponse)
createRobotApplicationResponse_robotSoftwareSuite :: Lens.Lens' CreateRobotApplicationResponse (Prelude.Maybe RobotSoftwareSuite)
createRobotApplicationResponse_robotSoftwareSuite :: Lens' CreateRobotApplicationResponse (Maybe RobotSoftwareSuite)
createRobotApplicationResponse_robotSoftwareSuite = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateRobotApplicationResponse' {Maybe RobotSoftwareSuite
robotSoftwareSuite :: Maybe RobotSoftwareSuite
$sel:robotSoftwareSuite:CreateRobotApplicationResponse' :: CreateRobotApplicationResponse -> Maybe RobotSoftwareSuite
robotSoftwareSuite} -> Maybe RobotSoftwareSuite
robotSoftwareSuite) (\s :: CreateRobotApplicationResponse
s@CreateRobotApplicationResponse' {} Maybe RobotSoftwareSuite
a -> CreateRobotApplicationResponse
s {$sel:robotSoftwareSuite:CreateRobotApplicationResponse' :: Maybe RobotSoftwareSuite
robotSoftwareSuite = Maybe RobotSoftwareSuite
a} :: CreateRobotApplicationResponse)
createRobotApplicationResponse_sources :: Lens.Lens' CreateRobotApplicationResponse (Prelude.Maybe [Source])
createRobotApplicationResponse_sources :: Lens' CreateRobotApplicationResponse (Maybe [Source])
createRobotApplicationResponse_sources = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateRobotApplicationResponse' {Maybe [Source]
sources :: Maybe [Source]
$sel:sources:CreateRobotApplicationResponse' :: CreateRobotApplicationResponse -> Maybe [Source]
sources} -> Maybe [Source]
sources) (\s :: CreateRobotApplicationResponse
s@CreateRobotApplicationResponse' {} Maybe [Source]
a -> CreateRobotApplicationResponse
s {$sel:sources:CreateRobotApplicationResponse' :: Maybe [Source]
sources = Maybe [Source]
a} :: CreateRobotApplicationResponse) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. 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 forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
createRobotApplicationResponse_tags :: Lens.Lens' CreateRobotApplicationResponse (Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text))
createRobotApplicationResponse_tags :: Lens' CreateRobotApplicationResponse (Maybe (HashMap Text Text))
createRobotApplicationResponse_tags = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateRobotApplicationResponse' {Maybe (HashMap Text Text)
tags :: Maybe (HashMap Text Text)
$sel:tags:CreateRobotApplicationResponse' :: CreateRobotApplicationResponse -> Maybe (HashMap Text Text)
tags} -> Maybe (HashMap Text Text)
tags) (\s :: CreateRobotApplicationResponse
s@CreateRobotApplicationResponse' {} Maybe (HashMap Text Text)
a -> CreateRobotApplicationResponse
s {$sel:tags:CreateRobotApplicationResponse' :: Maybe (HashMap Text Text)
tags = Maybe (HashMap Text Text)
a} :: CreateRobotApplicationResponse) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. 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 forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
createRobotApplicationResponse_version :: Lens.Lens' CreateRobotApplicationResponse (Prelude.Maybe Prelude.Text)
createRobotApplicationResponse_version :: Lens' CreateRobotApplicationResponse (Maybe Text)
createRobotApplicationResponse_version = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateRobotApplicationResponse' {Maybe Text
version :: Maybe Text
$sel:version:CreateRobotApplicationResponse' :: CreateRobotApplicationResponse -> Maybe Text
version} -> Maybe Text
version) (\s :: CreateRobotApplicationResponse
s@CreateRobotApplicationResponse' {} Maybe Text
a -> CreateRobotApplicationResponse
s {$sel:version:CreateRobotApplicationResponse' :: Maybe Text
version = Maybe Text
a} :: CreateRobotApplicationResponse)
createRobotApplicationResponse_httpStatus :: Lens.Lens' CreateRobotApplicationResponse Prelude.Int
createRobotApplicationResponse_httpStatus :: Lens' CreateRobotApplicationResponse Int
createRobotApplicationResponse_httpStatus = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateRobotApplicationResponse' {Int
httpStatus :: Int
$sel:httpStatus:CreateRobotApplicationResponse' :: CreateRobotApplicationResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: CreateRobotApplicationResponse
s@CreateRobotApplicationResponse' {} Int
a -> CreateRobotApplicationResponse
s {$sel:httpStatus:CreateRobotApplicationResponse' :: Int
httpStatus = Int
a} :: CreateRobotApplicationResponse)
instance
Prelude.NFData
CreateRobotApplicationResponse
where
rnf :: CreateRobotApplicationResponse -> ()
rnf CreateRobotApplicationResponse' {Int
Maybe [Source]
Maybe Text
Maybe (HashMap Text Text)
Maybe POSIX
Maybe Environment
Maybe RobotSoftwareSuite
httpStatus :: Int
version :: Maybe Text
tags :: Maybe (HashMap Text Text)
sources :: Maybe [Source]
robotSoftwareSuite :: Maybe RobotSoftwareSuite
revisionId :: Maybe Text
name :: Maybe Text
lastUpdatedAt :: Maybe POSIX
environment :: Maybe Environment
arn :: Maybe Text
$sel:httpStatus:CreateRobotApplicationResponse' :: CreateRobotApplicationResponse -> Int
$sel:version:CreateRobotApplicationResponse' :: CreateRobotApplicationResponse -> Maybe Text
$sel:tags:CreateRobotApplicationResponse' :: CreateRobotApplicationResponse -> Maybe (HashMap Text Text)
$sel:sources:CreateRobotApplicationResponse' :: CreateRobotApplicationResponse -> Maybe [Source]
$sel:robotSoftwareSuite:CreateRobotApplicationResponse' :: CreateRobotApplicationResponse -> Maybe RobotSoftwareSuite
$sel:revisionId:CreateRobotApplicationResponse' :: CreateRobotApplicationResponse -> Maybe Text
$sel:name:CreateRobotApplicationResponse' :: CreateRobotApplicationResponse -> Maybe Text
$sel:lastUpdatedAt:CreateRobotApplicationResponse' :: CreateRobotApplicationResponse -> Maybe POSIX
$sel:environment:CreateRobotApplicationResponse' :: CreateRobotApplicationResponse -> Maybe Environment
$sel:arn:CreateRobotApplicationResponse' :: CreateRobotApplicationResponse -> Maybe Text
..} =
forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
arn
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Environment
environment
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe POSIX
lastUpdatedAt
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
name
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
revisionId
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe RobotSoftwareSuite
robotSoftwareSuite
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe [Source]
sources
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe (HashMap Text Text)
tags
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
version
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Int
httpStatus