{-# 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.SMS.CreateApp
(
CreateApp (..),
newCreateApp,
createApp_clientToken,
createApp_description,
createApp_name,
createApp_roleName,
createApp_serverGroups,
createApp_tags,
CreateAppResponse (..),
newCreateAppResponse,
createAppResponse_appSummary,
createAppResponse_serverGroups,
createAppResponse_tags,
createAppResponse_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.SMS.Types
data CreateApp = CreateApp'
{
CreateApp -> Maybe Text
clientToken :: Prelude.Maybe Prelude.Text,
CreateApp -> Maybe Text
description :: Prelude.Maybe Prelude.Text,
CreateApp -> Maybe Text
name :: Prelude.Maybe Prelude.Text,
CreateApp -> Maybe Text
roleName :: Prelude.Maybe Prelude.Text,
CreateApp -> Maybe [ServerGroup]
serverGroups :: Prelude.Maybe [ServerGroup],
CreateApp -> Maybe [Tag]
tags :: Prelude.Maybe [Tag]
}
deriving (CreateApp -> CreateApp -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: CreateApp -> CreateApp -> Bool
$c/= :: CreateApp -> CreateApp -> Bool
== :: CreateApp -> CreateApp -> Bool
$c== :: CreateApp -> CreateApp -> Bool
Prelude.Eq, ReadPrec [CreateApp]
ReadPrec CreateApp
Int -> ReadS CreateApp
ReadS [CreateApp]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [CreateApp]
$creadListPrec :: ReadPrec [CreateApp]
readPrec :: ReadPrec CreateApp
$creadPrec :: ReadPrec CreateApp
readList :: ReadS [CreateApp]
$creadList :: ReadS [CreateApp]
readsPrec :: Int -> ReadS CreateApp
$creadsPrec :: Int -> ReadS CreateApp
Prelude.Read, Int -> CreateApp -> ShowS
[CreateApp] -> ShowS
CreateApp -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [CreateApp] -> ShowS
$cshowList :: [CreateApp] -> ShowS
show :: CreateApp -> String
$cshow :: CreateApp -> String
showsPrec :: Int -> CreateApp -> ShowS
$cshowsPrec :: Int -> CreateApp -> ShowS
Prelude.Show, forall x. Rep CreateApp x -> CreateApp
forall x. CreateApp -> Rep CreateApp x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep CreateApp x -> CreateApp
$cfrom :: forall x. CreateApp -> Rep CreateApp x
Prelude.Generic)
newCreateApp ::
CreateApp
newCreateApp :: CreateApp
newCreateApp =
CreateApp'
{ $sel:clientToken:CreateApp' :: Maybe Text
clientToken = forall a. Maybe a
Prelude.Nothing,
$sel:description:CreateApp' :: Maybe Text
description = forall a. Maybe a
Prelude.Nothing,
$sel:name:CreateApp' :: Maybe Text
name = forall a. Maybe a
Prelude.Nothing,
$sel:roleName:CreateApp' :: Maybe Text
roleName = forall a. Maybe a
Prelude.Nothing,
$sel:serverGroups:CreateApp' :: Maybe [ServerGroup]
serverGroups = forall a. Maybe a
Prelude.Nothing,
$sel:tags:CreateApp' :: Maybe [Tag]
tags = forall a. Maybe a
Prelude.Nothing
}
createApp_clientToken :: Lens.Lens' CreateApp (Prelude.Maybe Prelude.Text)
createApp_clientToken :: Lens' CreateApp (Maybe Text)
createApp_clientToken = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateApp' {Maybe Text
clientToken :: Maybe Text
$sel:clientToken:CreateApp' :: CreateApp -> Maybe Text
clientToken} -> Maybe Text
clientToken) (\s :: CreateApp
s@CreateApp' {} Maybe Text
a -> CreateApp
s {$sel:clientToken:CreateApp' :: Maybe Text
clientToken = Maybe Text
a} :: CreateApp)
createApp_description :: Lens.Lens' CreateApp (Prelude.Maybe Prelude.Text)
createApp_description :: Lens' CreateApp (Maybe Text)
createApp_description = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateApp' {Maybe Text
description :: Maybe Text
$sel:description:CreateApp' :: CreateApp -> Maybe Text
description} -> Maybe Text
description) (\s :: CreateApp
s@CreateApp' {} Maybe Text
a -> CreateApp
s {$sel:description:CreateApp' :: Maybe Text
description = Maybe Text
a} :: CreateApp)
createApp_name :: Lens.Lens' CreateApp (Prelude.Maybe Prelude.Text)
createApp_name :: Lens' CreateApp (Maybe Text)
createApp_name = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateApp' {Maybe Text
name :: Maybe Text
$sel:name:CreateApp' :: CreateApp -> Maybe Text
name} -> Maybe Text
name) (\s :: CreateApp
s@CreateApp' {} Maybe Text
a -> CreateApp
s {$sel:name:CreateApp' :: Maybe Text
name = Maybe Text
a} :: CreateApp)
createApp_roleName :: Lens.Lens' CreateApp (Prelude.Maybe Prelude.Text)
createApp_roleName :: Lens' CreateApp (Maybe Text)
createApp_roleName = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateApp' {Maybe Text
roleName :: Maybe Text
$sel:roleName:CreateApp' :: CreateApp -> Maybe Text
roleName} -> Maybe Text
roleName) (\s :: CreateApp
s@CreateApp' {} Maybe Text
a -> CreateApp
s {$sel:roleName:CreateApp' :: Maybe Text
roleName = Maybe Text
a} :: CreateApp)
createApp_serverGroups :: Lens.Lens' CreateApp (Prelude.Maybe [ServerGroup])
createApp_serverGroups :: Lens' CreateApp (Maybe [ServerGroup])
createApp_serverGroups = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateApp' {Maybe [ServerGroup]
serverGroups :: Maybe [ServerGroup]
$sel:serverGroups:CreateApp' :: CreateApp -> Maybe [ServerGroup]
serverGroups} -> Maybe [ServerGroup]
serverGroups) (\s :: CreateApp
s@CreateApp' {} Maybe [ServerGroup]
a -> CreateApp
s {$sel:serverGroups:CreateApp' :: Maybe [ServerGroup]
serverGroups = Maybe [ServerGroup]
a} :: CreateApp) 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
createApp_tags :: Lens.Lens' CreateApp (Prelude.Maybe [Tag])
createApp_tags :: Lens' CreateApp (Maybe [Tag])
createApp_tags = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateApp' {Maybe [Tag]
tags :: Maybe [Tag]
$sel:tags:CreateApp' :: CreateApp -> Maybe [Tag]
tags} -> Maybe [Tag]
tags) (\s :: CreateApp
s@CreateApp' {} Maybe [Tag]
a -> CreateApp
s {$sel:tags:CreateApp' :: Maybe [Tag]
tags = Maybe [Tag]
a} :: CreateApp) 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
instance Core.AWSRequest CreateApp where
type AWSResponse CreateApp = CreateAppResponse
request :: (Service -> Service) -> CreateApp -> Request CreateApp
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 CreateApp
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse CreateApp)))
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 AppSummary
-> Maybe [ServerGroup] -> Maybe [Tag] -> Int -> CreateAppResponse
CreateAppResponse'
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
"appSummary")
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
"serverGroups" 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.<*> (forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure (forall a. Enum a => a -> Int
Prelude.fromEnum Int
s))
)
instance Prelude.Hashable CreateApp where
hashWithSalt :: Int -> CreateApp -> Int
hashWithSalt Int
_salt CreateApp' {Maybe [Tag]
Maybe [ServerGroup]
Maybe Text
tags :: Maybe [Tag]
serverGroups :: Maybe [ServerGroup]
roleName :: Maybe Text
name :: Maybe Text
description :: Maybe Text
clientToken :: Maybe Text
$sel:tags:CreateApp' :: CreateApp -> Maybe [Tag]
$sel:serverGroups:CreateApp' :: CreateApp -> Maybe [ServerGroup]
$sel:roleName:CreateApp' :: CreateApp -> Maybe Text
$sel:name:CreateApp' :: CreateApp -> Maybe Text
$sel:description:CreateApp' :: CreateApp -> Maybe Text
$sel:clientToken:CreateApp' :: CreateApp -> Maybe Text
..} =
Int
_salt
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
clientToken
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
description
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
name
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
roleName
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe [ServerGroup]
serverGroups
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe [Tag]
tags
instance Prelude.NFData CreateApp where
rnf :: CreateApp -> ()
rnf CreateApp' {Maybe [Tag]
Maybe [ServerGroup]
Maybe Text
tags :: Maybe [Tag]
serverGroups :: Maybe [ServerGroup]
roleName :: Maybe Text
name :: Maybe Text
description :: Maybe Text
clientToken :: Maybe Text
$sel:tags:CreateApp' :: CreateApp -> Maybe [Tag]
$sel:serverGroups:CreateApp' :: CreateApp -> Maybe [ServerGroup]
$sel:roleName:CreateApp' :: CreateApp -> Maybe Text
$sel:name:CreateApp' :: CreateApp -> Maybe Text
$sel:description:CreateApp' :: CreateApp -> Maybe Text
$sel:clientToken:CreateApp' :: CreateApp -> Maybe Text
..} =
forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
clientToken
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
description
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
roleName
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe [ServerGroup]
serverGroups
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe [Tag]
tags
instance Data.ToHeaders CreateApp where
toHeaders :: CreateApp -> ResponseHeaders
toHeaders =
forall a b. a -> b -> a
Prelude.const
( forall a. Monoid a => [a] -> a
Prelude.mconcat
[ HeaderName
"X-Amz-Target"
forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Data.=# ( ByteString
"AWSServerMigrationService_V2016_10_24.CreateApp" ::
Prelude.ByteString
),
HeaderName
"Content-Type"
forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Data.=# ( ByteString
"application/x-amz-json-1.1" ::
Prelude.ByteString
)
]
)
instance Data.ToJSON CreateApp where
toJSON :: CreateApp -> Value
toJSON CreateApp' {Maybe [Tag]
Maybe [ServerGroup]
Maybe Text
tags :: Maybe [Tag]
serverGroups :: Maybe [ServerGroup]
roleName :: Maybe Text
name :: Maybe Text
description :: Maybe Text
clientToken :: Maybe Text
$sel:tags:CreateApp' :: CreateApp -> Maybe [Tag]
$sel:serverGroups:CreateApp' :: CreateApp -> Maybe [ServerGroup]
$sel:roleName:CreateApp' :: CreateApp -> Maybe Text
$sel:name:CreateApp' :: CreateApp -> Maybe Text
$sel:description:CreateApp' :: CreateApp -> Maybe Text
$sel:clientToken:CreateApp' :: CreateApp -> Maybe Text
..} =
[Pair] -> Value
Data.object
( forall a. [Maybe a] -> [a]
Prelude.catMaybes
[ (Key
"clientToken" 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 Text
clientToken,
(Key
"description" 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 Text
description,
(Key
"name" 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 Text
name,
(Key
"roleName" 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 Text
roleName,
(Key
"serverGroups" 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 [ServerGroup]
serverGroups,
(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 [Tag]
tags
]
)
instance Data.ToPath CreateApp where
toPath :: CreateApp -> ByteString
toPath = forall a b. a -> b -> a
Prelude.const ByteString
"/"
instance Data.ToQuery CreateApp where
toQuery :: CreateApp -> QueryString
toQuery = forall a b. a -> b -> a
Prelude.const forall a. Monoid a => a
Prelude.mempty
data CreateAppResponse = CreateAppResponse'
{
CreateAppResponse -> Maybe AppSummary
appSummary :: Prelude.Maybe AppSummary,
CreateAppResponse -> Maybe [ServerGroup]
serverGroups :: Prelude.Maybe [ServerGroup],
CreateAppResponse -> Maybe [Tag]
tags :: Prelude.Maybe [Tag],
CreateAppResponse -> Int
httpStatus :: Prelude.Int
}
deriving (CreateAppResponse -> CreateAppResponse -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: CreateAppResponse -> CreateAppResponse -> Bool
$c/= :: CreateAppResponse -> CreateAppResponse -> Bool
== :: CreateAppResponse -> CreateAppResponse -> Bool
$c== :: CreateAppResponse -> CreateAppResponse -> Bool
Prelude.Eq, ReadPrec [CreateAppResponse]
ReadPrec CreateAppResponse
Int -> ReadS CreateAppResponse
ReadS [CreateAppResponse]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [CreateAppResponse]
$creadListPrec :: ReadPrec [CreateAppResponse]
readPrec :: ReadPrec CreateAppResponse
$creadPrec :: ReadPrec CreateAppResponse
readList :: ReadS [CreateAppResponse]
$creadList :: ReadS [CreateAppResponse]
readsPrec :: Int -> ReadS CreateAppResponse
$creadsPrec :: Int -> ReadS CreateAppResponse
Prelude.Read, Int -> CreateAppResponse -> ShowS
[CreateAppResponse] -> ShowS
CreateAppResponse -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [CreateAppResponse] -> ShowS
$cshowList :: [CreateAppResponse] -> ShowS
show :: CreateAppResponse -> String
$cshow :: CreateAppResponse -> String
showsPrec :: Int -> CreateAppResponse -> ShowS
$cshowsPrec :: Int -> CreateAppResponse -> ShowS
Prelude.Show, forall x. Rep CreateAppResponse x -> CreateAppResponse
forall x. CreateAppResponse -> Rep CreateAppResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep CreateAppResponse x -> CreateAppResponse
$cfrom :: forall x. CreateAppResponse -> Rep CreateAppResponse x
Prelude.Generic)
newCreateAppResponse ::
Prelude.Int ->
CreateAppResponse
newCreateAppResponse :: Int -> CreateAppResponse
newCreateAppResponse Int
pHttpStatus_ =
CreateAppResponse'
{ $sel:appSummary:CreateAppResponse' :: Maybe AppSummary
appSummary = forall a. Maybe a
Prelude.Nothing,
$sel:serverGroups:CreateAppResponse' :: Maybe [ServerGroup]
serverGroups = forall a. Maybe a
Prelude.Nothing,
$sel:tags:CreateAppResponse' :: Maybe [Tag]
tags = forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:CreateAppResponse' :: Int
httpStatus = Int
pHttpStatus_
}
createAppResponse_appSummary :: Lens.Lens' CreateAppResponse (Prelude.Maybe AppSummary)
createAppResponse_appSummary :: Lens' CreateAppResponse (Maybe AppSummary)
createAppResponse_appSummary = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateAppResponse' {Maybe AppSummary
appSummary :: Maybe AppSummary
$sel:appSummary:CreateAppResponse' :: CreateAppResponse -> Maybe AppSummary
appSummary} -> Maybe AppSummary
appSummary) (\s :: CreateAppResponse
s@CreateAppResponse' {} Maybe AppSummary
a -> CreateAppResponse
s {$sel:appSummary:CreateAppResponse' :: Maybe AppSummary
appSummary = Maybe AppSummary
a} :: CreateAppResponse)
createAppResponse_serverGroups :: Lens.Lens' CreateAppResponse (Prelude.Maybe [ServerGroup])
createAppResponse_serverGroups :: Lens' CreateAppResponse (Maybe [ServerGroup])
createAppResponse_serverGroups = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateAppResponse' {Maybe [ServerGroup]
serverGroups :: Maybe [ServerGroup]
$sel:serverGroups:CreateAppResponse' :: CreateAppResponse -> Maybe [ServerGroup]
serverGroups} -> Maybe [ServerGroup]
serverGroups) (\s :: CreateAppResponse
s@CreateAppResponse' {} Maybe [ServerGroup]
a -> CreateAppResponse
s {$sel:serverGroups:CreateAppResponse' :: Maybe [ServerGroup]
serverGroups = Maybe [ServerGroup]
a} :: CreateAppResponse) 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
createAppResponse_tags :: Lens.Lens' CreateAppResponse (Prelude.Maybe [Tag])
createAppResponse_tags :: Lens' CreateAppResponse (Maybe [Tag])
createAppResponse_tags = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateAppResponse' {Maybe [Tag]
tags :: Maybe [Tag]
$sel:tags:CreateAppResponse' :: CreateAppResponse -> Maybe [Tag]
tags} -> Maybe [Tag]
tags) (\s :: CreateAppResponse
s@CreateAppResponse' {} Maybe [Tag]
a -> CreateAppResponse
s {$sel:tags:CreateAppResponse' :: Maybe [Tag]
tags = Maybe [Tag]
a} :: CreateAppResponse) 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
createAppResponse_httpStatus :: Lens.Lens' CreateAppResponse Prelude.Int
createAppResponse_httpStatus :: Lens' CreateAppResponse Int
createAppResponse_httpStatus = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateAppResponse' {Int
httpStatus :: Int
$sel:httpStatus:CreateAppResponse' :: CreateAppResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: CreateAppResponse
s@CreateAppResponse' {} Int
a -> CreateAppResponse
s {$sel:httpStatus:CreateAppResponse' :: Int
httpStatus = Int
a} :: CreateAppResponse)
instance Prelude.NFData CreateAppResponse where
rnf :: CreateAppResponse -> ()
rnf CreateAppResponse' {Int
Maybe [Tag]
Maybe [ServerGroup]
Maybe AppSummary
httpStatus :: Int
tags :: Maybe [Tag]
serverGroups :: Maybe [ServerGroup]
appSummary :: Maybe AppSummary
$sel:httpStatus:CreateAppResponse' :: CreateAppResponse -> Int
$sel:tags:CreateAppResponse' :: CreateAppResponse -> Maybe [Tag]
$sel:serverGroups:CreateAppResponse' :: CreateAppResponse -> Maybe [ServerGroup]
$sel:appSummary:CreateAppResponse' :: CreateAppResponse -> Maybe AppSummary
..} =
forall a. NFData a => a -> ()
Prelude.rnf Maybe AppSummary
appSummary
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe [ServerGroup]
serverGroups
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe [Tag]
tags
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Int
httpStatus