{-# 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.Proton.CreateService
(
CreateService (..),
newCreateService,
createService_branchName,
createService_repositoryId,
createService_templateMinorVersion,
createService_description,
createService_repositoryConnectionArn,
createService_tags,
createService_name,
createService_spec,
createService_templateMajorVersion,
createService_templateName,
CreateServiceResponse (..),
newCreateServiceResponse,
createServiceResponse_httpStatus,
createServiceResponse_service,
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
import Amazonka.Proton.Types
import qualified Amazonka.Request as Request
import qualified Amazonka.Response as Response
data CreateService = CreateService'
{
CreateService -> Maybe Text
branchName :: Prelude.Maybe Prelude.Text,
CreateService -> Maybe Text
repositoryId :: Prelude.Maybe Prelude.Text,
CreateService -> Maybe Text
templateMinorVersion :: Prelude.Maybe Prelude.Text,
CreateService -> Maybe (Sensitive Text)
description :: Prelude.Maybe (Core.Sensitive Prelude.Text),
CreateService -> Maybe Text
repositoryConnectionArn :: Prelude.Maybe Prelude.Text,
CreateService -> Maybe [Tag]
tags :: Prelude.Maybe [Tag],
CreateService -> Text
name :: Prelude.Text,
CreateService -> Sensitive Text
spec :: Core.Sensitive Prelude.Text,
CreateService -> Text
templateMajorVersion :: Prelude.Text,
CreateService -> Text
templateName :: Prelude.Text
}
deriving (CreateService -> CreateService -> Bool
(CreateService -> CreateService -> Bool)
-> (CreateService -> CreateService -> Bool) -> Eq CreateService
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: CreateService -> CreateService -> Bool
$c/= :: CreateService -> CreateService -> Bool
== :: CreateService -> CreateService -> Bool
$c== :: CreateService -> CreateService -> Bool
Prelude.Eq, Int -> CreateService -> ShowS
[CreateService] -> ShowS
CreateService -> String
(Int -> CreateService -> ShowS)
-> (CreateService -> String)
-> ([CreateService] -> ShowS)
-> Show CreateService
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [CreateService] -> ShowS
$cshowList :: [CreateService] -> ShowS
show :: CreateService -> String
$cshow :: CreateService -> String
showsPrec :: Int -> CreateService -> ShowS
$cshowsPrec :: Int -> CreateService -> ShowS
Prelude.Show, (forall x. CreateService -> Rep CreateService x)
-> (forall x. Rep CreateService x -> CreateService)
-> Generic CreateService
forall x. Rep CreateService x -> CreateService
forall x. CreateService -> Rep CreateService x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep CreateService x -> CreateService
$cfrom :: forall x. CreateService -> Rep CreateService x
Prelude.Generic)
newCreateService ::
Prelude.Text ->
Prelude.Text ->
Prelude.Text ->
Prelude.Text ->
CreateService
newCreateService :: Text -> Text -> Text -> Text -> CreateService
newCreateService
Text
pName_
Text
pSpec_
Text
pTemplateMajorVersion_
Text
pTemplateName_ =
CreateService' :: Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe (Sensitive Text)
-> Maybe Text
-> Maybe [Tag]
-> Text
-> Sensitive Text
-> Text
-> Text
-> CreateService
CreateService'
{ $sel:branchName:CreateService' :: Maybe Text
branchName = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:repositoryId:CreateService' :: Maybe Text
repositoryId = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:templateMinorVersion:CreateService' :: Maybe Text
templateMinorVersion = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:description:CreateService' :: Maybe (Sensitive Text)
description = Maybe (Sensitive Text)
forall a. Maybe a
Prelude.Nothing,
$sel:repositoryConnectionArn:CreateService' :: Maybe Text
repositoryConnectionArn = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:tags:CreateService' :: Maybe [Tag]
tags = Maybe [Tag]
forall a. Maybe a
Prelude.Nothing,
$sel:name:CreateService' :: Text
name = Text
pName_,
$sel:spec:CreateService' :: Sensitive Text
spec = Tagged Text (Identity Text)
-> Tagged (Sensitive Text) (Identity (Sensitive Text))
forall a. Iso' (Sensitive a) a
Core._Sensitive (Tagged Text (Identity Text)
-> Tagged (Sensitive Text) (Identity (Sensitive Text)))
-> Text -> Sensitive Text
forall t b. AReview t b -> b -> t
Lens.# Text
pSpec_,
$sel:templateMajorVersion:CreateService' :: Text
templateMajorVersion = Text
pTemplateMajorVersion_,
$sel:templateName:CreateService' :: Text
templateName = Text
pTemplateName_
}
createService_branchName :: Lens.Lens' CreateService (Prelude.Maybe Prelude.Text)
createService_branchName :: (Maybe Text -> f (Maybe Text)) -> CreateService -> f CreateService
createService_branchName = (CreateService -> Maybe Text)
-> (CreateService -> Maybe Text -> CreateService)
-> Lens CreateService CreateService (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateService' {Maybe Text
branchName :: Maybe Text
$sel:branchName:CreateService' :: CreateService -> Maybe Text
branchName} -> Maybe Text
branchName) (\s :: CreateService
s@CreateService' {} Maybe Text
a -> CreateService
s {$sel:branchName:CreateService' :: Maybe Text
branchName = Maybe Text
a} :: CreateService)
createService_repositoryId :: Lens.Lens' CreateService (Prelude.Maybe Prelude.Text)
createService_repositoryId :: (Maybe Text -> f (Maybe Text)) -> CreateService -> f CreateService
createService_repositoryId = (CreateService -> Maybe Text)
-> (CreateService -> Maybe Text -> CreateService)
-> Lens CreateService CreateService (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateService' {Maybe Text
repositoryId :: Maybe Text
$sel:repositoryId:CreateService' :: CreateService -> Maybe Text
repositoryId} -> Maybe Text
repositoryId) (\s :: CreateService
s@CreateService' {} Maybe Text
a -> CreateService
s {$sel:repositoryId:CreateService' :: Maybe Text
repositoryId = Maybe Text
a} :: CreateService)
createService_templateMinorVersion :: Lens.Lens' CreateService (Prelude.Maybe Prelude.Text)
createService_templateMinorVersion :: (Maybe Text -> f (Maybe Text)) -> CreateService -> f CreateService
createService_templateMinorVersion = (CreateService -> Maybe Text)
-> (CreateService -> Maybe Text -> CreateService)
-> Lens CreateService CreateService (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateService' {Maybe Text
templateMinorVersion :: Maybe Text
$sel:templateMinorVersion:CreateService' :: CreateService -> Maybe Text
templateMinorVersion} -> Maybe Text
templateMinorVersion) (\s :: CreateService
s@CreateService' {} Maybe Text
a -> CreateService
s {$sel:templateMinorVersion:CreateService' :: Maybe Text
templateMinorVersion = Maybe Text
a} :: CreateService)
createService_description :: Lens.Lens' CreateService (Prelude.Maybe Prelude.Text)
createService_description :: (Maybe Text -> f (Maybe Text)) -> CreateService -> f CreateService
createService_description = (CreateService -> Maybe (Sensitive Text))
-> (CreateService -> Maybe (Sensitive Text) -> CreateService)
-> Lens
CreateService
CreateService
(Maybe (Sensitive Text))
(Maybe (Sensitive Text))
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateService' {Maybe (Sensitive Text)
description :: Maybe (Sensitive Text)
$sel:description:CreateService' :: CreateService -> Maybe (Sensitive Text)
description} -> Maybe (Sensitive Text)
description) (\s :: CreateService
s@CreateService' {} Maybe (Sensitive Text)
a -> CreateService
s {$sel:description:CreateService' :: Maybe (Sensitive Text)
description = Maybe (Sensitive Text)
a} :: CreateService) ((Maybe (Sensitive Text) -> f (Maybe (Sensitive Text)))
-> CreateService -> f CreateService)
-> ((Maybe Text -> f (Maybe Text))
-> Maybe (Sensitive Text) -> f (Maybe (Sensitive Text)))
-> (Maybe Text -> f (Maybe Text))
-> CreateService
-> f CreateService
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso (Sensitive Text) (Sensitive Text) Text Text
-> Iso
(Maybe (Sensitive Text))
(Maybe (Sensitive Text))
(Maybe Text)
(Maybe 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 (Sensitive Text) (Sensitive Text) Text Text
forall a. Iso' (Sensitive a) a
Core._Sensitive
createService_repositoryConnectionArn :: Lens.Lens' CreateService (Prelude.Maybe Prelude.Text)
createService_repositoryConnectionArn :: (Maybe Text -> f (Maybe Text)) -> CreateService -> f CreateService
createService_repositoryConnectionArn = (CreateService -> Maybe Text)
-> (CreateService -> Maybe Text -> CreateService)
-> Lens CreateService CreateService (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateService' {Maybe Text
repositoryConnectionArn :: Maybe Text
$sel:repositoryConnectionArn:CreateService' :: CreateService -> Maybe Text
repositoryConnectionArn} -> Maybe Text
repositoryConnectionArn) (\s :: CreateService
s@CreateService' {} Maybe Text
a -> CreateService
s {$sel:repositoryConnectionArn:CreateService' :: Maybe Text
repositoryConnectionArn = Maybe Text
a} :: CreateService)
createService_tags :: Lens.Lens' CreateService (Prelude.Maybe [Tag])
createService_tags :: (Maybe [Tag] -> f (Maybe [Tag]))
-> CreateService -> f CreateService
createService_tags = (CreateService -> Maybe [Tag])
-> (CreateService -> Maybe [Tag] -> CreateService)
-> Lens CreateService CreateService (Maybe [Tag]) (Maybe [Tag])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateService' {Maybe [Tag]
tags :: Maybe [Tag]
$sel:tags:CreateService' :: CreateService -> Maybe [Tag]
tags} -> Maybe [Tag]
tags) (\s :: CreateService
s@CreateService' {} Maybe [Tag]
a -> CreateService
s {$sel:tags:CreateService' :: Maybe [Tag]
tags = Maybe [Tag]
a} :: CreateService) ((Maybe [Tag] -> f (Maybe [Tag]))
-> CreateService -> f CreateService)
-> ((Maybe [Tag] -> f (Maybe [Tag]))
-> Maybe [Tag] -> f (Maybe [Tag]))
-> (Maybe [Tag] -> f (Maybe [Tag]))
-> CreateService
-> f CreateService
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso [Tag] [Tag] [Tag] [Tag]
-> Iso (Maybe [Tag]) (Maybe [Tag]) (Maybe [Tag]) (Maybe [Tag])
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 [Tag] [Tag] [Tag] [Tag]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
createService_name :: Lens.Lens' CreateService Prelude.Text
createService_name :: (Text -> f Text) -> CreateService -> f CreateService
createService_name = (CreateService -> Text)
-> (CreateService -> Text -> CreateService)
-> Lens CreateService CreateService Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateService' {Text
name :: Text
$sel:name:CreateService' :: CreateService -> Text
name} -> Text
name) (\s :: CreateService
s@CreateService' {} Text
a -> CreateService
s {$sel:name:CreateService' :: Text
name = Text
a} :: CreateService)
createService_spec :: Lens.Lens' CreateService Prelude.Text
createService_spec :: (Text -> f Text) -> CreateService -> f CreateService
createService_spec = (CreateService -> Sensitive Text)
-> (CreateService -> Sensitive Text -> CreateService)
-> Lens
CreateService CreateService (Sensitive Text) (Sensitive Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateService' {Sensitive Text
spec :: Sensitive Text
$sel:spec:CreateService' :: CreateService -> Sensitive Text
spec} -> Sensitive Text
spec) (\s :: CreateService
s@CreateService' {} Sensitive Text
a -> CreateService
s {$sel:spec:CreateService' :: Sensitive Text
spec = Sensitive Text
a} :: CreateService) ((Sensitive Text -> f (Sensitive Text))
-> CreateService -> f CreateService)
-> ((Text -> f Text) -> Sensitive Text -> f (Sensitive Text))
-> (Text -> f Text)
-> CreateService
-> f CreateService
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. (Text -> f Text) -> Sensitive Text -> f (Sensitive Text)
forall a. Iso' (Sensitive a) a
Core._Sensitive
createService_templateMajorVersion :: Lens.Lens' CreateService Prelude.Text
createService_templateMajorVersion :: (Text -> f Text) -> CreateService -> f CreateService
createService_templateMajorVersion = (CreateService -> Text)
-> (CreateService -> Text -> CreateService)
-> Lens CreateService CreateService Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateService' {Text
templateMajorVersion :: Text
$sel:templateMajorVersion:CreateService' :: CreateService -> Text
templateMajorVersion} -> Text
templateMajorVersion) (\s :: CreateService
s@CreateService' {} Text
a -> CreateService
s {$sel:templateMajorVersion:CreateService' :: Text
templateMajorVersion = Text
a} :: CreateService)
createService_templateName :: Lens.Lens' CreateService Prelude.Text
createService_templateName :: (Text -> f Text) -> CreateService -> f CreateService
createService_templateName = (CreateService -> Text)
-> (CreateService -> Text -> CreateService)
-> Lens CreateService CreateService Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateService' {Text
templateName :: Text
$sel:templateName:CreateService' :: CreateService -> Text
templateName} -> Text
templateName) (\s :: CreateService
s@CreateService' {} Text
a -> CreateService
s {$sel:templateName:CreateService' :: Text
templateName = Text
a} :: CreateService)
instance Core.AWSRequest CreateService where
type
AWSResponse CreateService =
CreateServiceResponse
request :: CreateService -> Request CreateService
request = Service -> CreateService -> Request CreateService
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
response :: Logger
-> Service
-> Proxy CreateService
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse CreateService)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse CreateService))
-> Logger
-> Service
-> Proxy CreateService
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse CreateService)))
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 ->
Int -> Service -> CreateServiceResponse
CreateServiceResponse'
(Int -> Service -> CreateServiceResponse)
-> Either String Int
-> Either String (Service -> CreateServiceResponse)
forall (f :: * -> *) a b. Functor 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))
Either String (Service -> CreateServiceResponse)
-> Either String Service -> Either String CreateServiceResponse
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String Service
forall a. FromJSON a => Object -> Text -> Either String a
Core..:> Text
"service")
)
instance Prelude.Hashable CreateService
instance Prelude.NFData CreateService
instance Core.ToHeaders CreateService where
toHeaders :: CreateService -> ResponseHeaders
toHeaders =
ResponseHeaders -> CreateService -> ResponseHeaders
forall a b. a -> b -> a
Prelude.const
( [ResponseHeaders] -> ResponseHeaders
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ HeaderName
"X-Amz-Target"
HeaderName -> ByteString -> ResponseHeaders
forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Core.=# ( ByteString
"AwsProton20200720.CreateService" ::
Prelude.ByteString
),
HeaderName
"Content-Type"
HeaderName -> ByteString -> ResponseHeaders
forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Core.=# ( ByteString
"application/x-amz-json-1.0" ::
Prelude.ByteString
)
]
)
instance Core.ToJSON CreateService where
toJSON :: CreateService -> Value
toJSON CreateService' {Maybe [Tag]
Maybe Text
Maybe (Sensitive Text)
Text
Sensitive Text
templateName :: Text
templateMajorVersion :: Text
spec :: Sensitive Text
name :: Text
tags :: Maybe [Tag]
repositoryConnectionArn :: Maybe Text
description :: Maybe (Sensitive Text)
templateMinorVersion :: Maybe Text
repositoryId :: Maybe Text
branchName :: Maybe Text
$sel:templateName:CreateService' :: CreateService -> Text
$sel:templateMajorVersion:CreateService' :: CreateService -> Text
$sel:spec:CreateService' :: CreateService -> Sensitive Text
$sel:name:CreateService' :: CreateService -> Text
$sel:tags:CreateService' :: CreateService -> Maybe [Tag]
$sel:repositoryConnectionArn:CreateService' :: CreateService -> Maybe Text
$sel:description:CreateService' :: CreateService -> Maybe (Sensitive Text)
$sel:templateMinorVersion:CreateService' :: CreateService -> Maybe Text
$sel:repositoryId:CreateService' :: CreateService -> Maybe Text
$sel:branchName:CreateService' :: CreateService -> Maybe Text
..} =
[Pair] -> Value
Core.object
( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[ (Text
"branchName" 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
branchName,
(Text
"repositoryId" 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
repositoryId,
(Text
"templateMinorVersion" 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
templateMinorVersion,
(Text
"description" Text -> Sensitive Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (Sensitive Text -> Pair) -> Maybe (Sensitive Text) -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Sensitive Text)
description,
(Text
"repositoryConnectionArn" 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
repositoryConnectionArn,
(Text
"tags" Text -> [Tag] -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) ([Tag] -> Pair) -> Maybe [Tag] -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [Tag]
tags,
Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just (Text
"name" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
name),
Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just (Text
"spec" Text -> Sensitive Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Sensitive Text
spec),
Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just
( Text
"templateMajorVersion"
Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
templateMajorVersion
),
Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just (Text
"templateName" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
templateName)
]
)
instance Core.ToPath CreateService where
toPath :: CreateService -> ByteString
toPath = ByteString -> CreateService -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/"
instance Core.ToQuery CreateService where
toQuery :: CreateService -> QueryString
toQuery = QueryString -> CreateService -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data CreateServiceResponse = CreateServiceResponse'
{
CreateServiceResponse -> Int
httpStatus :: Prelude.Int,
CreateServiceResponse -> Service
service :: Service
}
deriving (CreateServiceResponse -> CreateServiceResponse -> Bool
(CreateServiceResponse -> CreateServiceResponse -> Bool)
-> (CreateServiceResponse -> CreateServiceResponse -> Bool)
-> Eq CreateServiceResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: CreateServiceResponse -> CreateServiceResponse -> Bool
$c/= :: CreateServiceResponse -> CreateServiceResponse -> Bool
== :: CreateServiceResponse -> CreateServiceResponse -> Bool
$c== :: CreateServiceResponse -> CreateServiceResponse -> Bool
Prelude.Eq, Int -> CreateServiceResponse -> ShowS
[CreateServiceResponse] -> ShowS
CreateServiceResponse -> String
(Int -> CreateServiceResponse -> ShowS)
-> (CreateServiceResponse -> String)
-> ([CreateServiceResponse] -> ShowS)
-> Show CreateServiceResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [CreateServiceResponse] -> ShowS
$cshowList :: [CreateServiceResponse] -> ShowS
show :: CreateServiceResponse -> String
$cshow :: CreateServiceResponse -> String
showsPrec :: Int -> CreateServiceResponse -> ShowS
$cshowsPrec :: Int -> CreateServiceResponse -> ShowS
Prelude.Show, (forall x. CreateServiceResponse -> Rep CreateServiceResponse x)
-> (forall x. Rep CreateServiceResponse x -> CreateServiceResponse)
-> Generic CreateServiceResponse
forall x. Rep CreateServiceResponse x -> CreateServiceResponse
forall x. CreateServiceResponse -> Rep CreateServiceResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep CreateServiceResponse x -> CreateServiceResponse
$cfrom :: forall x. CreateServiceResponse -> Rep CreateServiceResponse x
Prelude.Generic)
newCreateServiceResponse ::
Prelude.Int ->
Service ->
CreateServiceResponse
newCreateServiceResponse :: Int -> Service -> CreateServiceResponse
newCreateServiceResponse Int
pHttpStatus_ Service
pService_ =
CreateServiceResponse' :: Int -> Service -> CreateServiceResponse
CreateServiceResponse'
{ $sel:httpStatus:CreateServiceResponse' :: Int
httpStatus = Int
pHttpStatus_,
$sel:service:CreateServiceResponse' :: Service
service = Service
pService_
}
createServiceResponse_httpStatus :: Lens.Lens' CreateServiceResponse Prelude.Int
createServiceResponse_httpStatus :: (Int -> f Int) -> CreateServiceResponse -> f CreateServiceResponse
createServiceResponse_httpStatus = (CreateServiceResponse -> Int)
-> (CreateServiceResponse -> Int -> CreateServiceResponse)
-> Lens CreateServiceResponse CreateServiceResponse Int Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateServiceResponse' {Int
httpStatus :: Int
$sel:httpStatus:CreateServiceResponse' :: CreateServiceResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: CreateServiceResponse
s@CreateServiceResponse' {} Int
a -> CreateServiceResponse
s {$sel:httpStatus:CreateServiceResponse' :: Int
httpStatus = Int
a} :: CreateServiceResponse)
createServiceResponse_service :: Lens.Lens' CreateServiceResponse Service
createServiceResponse_service :: (Service -> f Service)
-> CreateServiceResponse -> f CreateServiceResponse
createServiceResponse_service = (CreateServiceResponse -> Service)
-> (CreateServiceResponse -> Service -> CreateServiceResponse)
-> Lens CreateServiceResponse CreateServiceResponse Service Service
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateServiceResponse' {Service
service :: Service
$sel:service:CreateServiceResponse' :: CreateServiceResponse -> Service
service} -> Service
service) (\s :: CreateServiceResponse
s@CreateServiceResponse' {} Service
a -> CreateServiceResponse
s {$sel:service:CreateServiceResponse' :: Service
service = Service
a} :: CreateServiceResponse)
instance Prelude.NFData CreateServiceResponse