{-# 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.Personalize.CreateSolution
(
CreateSolution (..),
newCreateSolution,
createSolution_performAutoML,
createSolution_recipeArn,
createSolution_eventType,
createSolution_solutionConfig,
createSolution_performHPO,
createSolution_name,
createSolution_datasetGroupArn,
CreateSolutionResponse (..),
newCreateSolutionResponse,
createSolutionResponse_solutionArn,
createSolutionResponse_httpStatus,
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import Amazonka.Personalize.Types
import qualified Amazonka.Prelude as Prelude
import qualified Amazonka.Request as Request
import qualified Amazonka.Response as Response
data CreateSolution = CreateSolution'
{
CreateSolution -> Maybe Bool
performAutoML :: Prelude.Maybe Prelude.Bool,
CreateSolution -> Maybe Text
recipeArn :: Prelude.Maybe Prelude.Text,
CreateSolution -> Maybe Text
eventType :: Prelude.Maybe Prelude.Text,
CreateSolution -> Maybe SolutionConfig
solutionConfig :: Prelude.Maybe SolutionConfig,
CreateSolution -> Maybe Bool
performHPO :: Prelude.Maybe Prelude.Bool,
CreateSolution -> Text
name :: Prelude.Text,
CreateSolution -> Text
datasetGroupArn :: Prelude.Text
}
deriving (CreateSolution -> CreateSolution -> Bool
(CreateSolution -> CreateSolution -> Bool)
-> (CreateSolution -> CreateSolution -> Bool) -> Eq CreateSolution
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: CreateSolution -> CreateSolution -> Bool
$c/= :: CreateSolution -> CreateSolution -> Bool
== :: CreateSolution -> CreateSolution -> Bool
$c== :: CreateSolution -> CreateSolution -> Bool
Prelude.Eq, ReadPrec [CreateSolution]
ReadPrec CreateSolution
Int -> ReadS CreateSolution
ReadS [CreateSolution]
(Int -> ReadS CreateSolution)
-> ReadS [CreateSolution]
-> ReadPrec CreateSolution
-> ReadPrec [CreateSolution]
-> Read CreateSolution
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [CreateSolution]
$creadListPrec :: ReadPrec [CreateSolution]
readPrec :: ReadPrec CreateSolution
$creadPrec :: ReadPrec CreateSolution
readList :: ReadS [CreateSolution]
$creadList :: ReadS [CreateSolution]
readsPrec :: Int -> ReadS CreateSolution
$creadsPrec :: Int -> ReadS CreateSolution
Prelude.Read, Int -> CreateSolution -> ShowS
[CreateSolution] -> ShowS
CreateSolution -> String
(Int -> CreateSolution -> ShowS)
-> (CreateSolution -> String)
-> ([CreateSolution] -> ShowS)
-> Show CreateSolution
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [CreateSolution] -> ShowS
$cshowList :: [CreateSolution] -> ShowS
show :: CreateSolution -> String
$cshow :: CreateSolution -> String
showsPrec :: Int -> CreateSolution -> ShowS
$cshowsPrec :: Int -> CreateSolution -> ShowS
Prelude.Show, (forall x. CreateSolution -> Rep CreateSolution x)
-> (forall x. Rep CreateSolution x -> CreateSolution)
-> Generic CreateSolution
forall x. Rep CreateSolution x -> CreateSolution
forall x. CreateSolution -> Rep CreateSolution x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep CreateSolution x -> CreateSolution
$cfrom :: forall x. CreateSolution -> Rep CreateSolution x
Prelude.Generic)
newCreateSolution ::
Prelude.Text ->
Prelude.Text ->
CreateSolution
newCreateSolution :: Text -> Text -> CreateSolution
newCreateSolution Text
pName_ Text
pDatasetGroupArn_ =
CreateSolution' :: Maybe Bool
-> Maybe Text
-> Maybe Text
-> Maybe SolutionConfig
-> Maybe Bool
-> Text
-> Text
-> CreateSolution
CreateSolution'
{ $sel:performAutoML:CreateSolution' :: Maybe Bool
performAutoML = Maybe Bool
forall a. Maybe a
Prelude.Nothing,
$sel:recipeArn:CreateSolution' :: Maybe Text
recipeArn = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:eventType:CreateSolution' :: Maybe Text
eventType = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:solutionConfig:CreateSolution' :: Maybe SolutionConfig
solutionConfig = Maybe SolutionConfig
forall a. Maybe a
Prelude.Nothing,
$sel:performHPO:CreateSolution' :: Maybe Bool
performHPO = Maybe Bool
forall a. Maybe a
Prelude.Nothing,
$sel:name:CreateSolution' :: Text
name = Text
pName_,
$sel:datasetGroupArn:CreateSolution' :: Text
datasetGroupArn = Text
pDatasetGroupArn_
}
createSolution_performAutoML :: Lens.Lens' CreateSolution (Prelude.Maybe Prelude.Bool)
createSolution_performAutoML :: (Maybe Bool -> f (Maybe Bool))
-> CreateSolution -> f CreateSolution
createSolution_performAutoML = (CreateSolution -> Maybe Bool)
-> (CreateSolution -> Maybe Bool -> CreateSolution)
-> Lens CreateSolution CreateSolution (Maybe Bool) (Maybe Bool)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateSolution' {Maybe Bool
performAutoML :: Maybe Bool
$sel:performAutoML:CreateSolution' :: CreateSolution -> Maybe Bool
performAutoML} -> Maybe Bool
performAutoML) (\s :: CreateSolution
s@CreateSolution' {} Maybe Bool
a -> CreateSolution
s {$sel:performAutoML:CreateSolution' :: Maybe Bool
performAutoML = Maybe Bool
a} :: CreateSolution)
createSolution_recipeArn :: Lens.Lens' CreateSolution (Prelude.Maybe Prelude.Text)
createSolution_recipeArn :: (Maybe Text -> f (Maybe Text))
-> CreateSolution -> f CreateSolution
createSolution_recipeArn = (CreateSolution -> Maybe Text)
-> (CreateSolution -> Maybe Text -> CreateSolution)
-> Lens CreateSolution CreateSolution (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateSolution' {Maybe Text
recipeArn :: Maybe Text
$sel:recipeArn:CreateSolution' :: CreateSolution -> Maybe Text
recipeArn} -> Maybe Text
recipeArn) (\s :: CreateSolution
s@CreateSolution' {} Maybe Text
a -> CreateSolution
s {$sel:recipeArn:CreateSolution' :: Maybe Text
recipeArn = Maybe Text
a} :: CreateSolution)
createSolution_eventType :: Lens.Lens' CreateSolution (Prelude.Maybe Prelude.Text)
createSolution_eventType :: (Maybe Text -> f (Maybe Text))
-> CreateSolution -> f CreateSolution
createSolution_eventType = (CreateSolution -> Maybe Text)
-> (CreateSolution -> Maybe Text -> CreateSolution)
-> Lens CreateSolution CreateSolution (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateSolution' {Maybe Text
eventType :: Maybe Text
$sel:eventType:CreateSolution' :: CreateSolution -> Maybe Text
eventType} -> Maybe Text
eventType) (\s :: CreateSolution
s@CreateSolution' {} Maybe Text
a -> CreateSolution
s {$sel:eventType:CreateSolution' :: Maybe Text
eventType = Maybe Text
a} :: CreateSolution)
createSolution_solutionConfig :: Lens.Lens' CreateSolution (Prelude.Maybe SolutionConfig)
createSolution_solutionConfig :: (Maybe SolutionConfig -> f (Maybe SolutionConfig))
-> CreateSolution -> f CreateSolution
createSolution_solutionConfig = (CreateSolution -> Maybe SolutionConfig)
-> (CreateSolution -> Maybe SolutionConfig -> CreateSolution)
-> Lens
CreateSolution
CreateSolution
(Maybe SolutionConfig)
(Maybe SolutionConfig)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateSolution' {Maybe SolutionConfig
solutionConfig :: Maybe SolutionConfig
$sel:solutionConfig:CreateSolution' :: CreateSolution -> Maybe SolutionConfig
solutionConfig} -> Maybe SolutionConfig
solutionConfig) (\s :: CreateSolution
s@CreateSolution' {} Maybe SolutionConfig
a -> CreateSolution
s {$sel:solutionConfig:CreateSolution' :: Maybe SolutionConfig
solutionConfig = Maybe SolutionConfig
a} :: CreateSolution)
createSolution_performHPO :: Lens.Lens' CreateSolution (Prelude.Maybe Prelude.Bool)
createSolution_performHPO :: (Maybe Bool -> f (Maybe Bool))
-> CreateSolution -> f CreateSolution
createSolution_performHPO = (CreateSolution -> Maybe Bool)
-> (CreateSolution -> Maybe Bool -> CreateSolution)
-> Lens CreateSolution CreateSolution (Maybe Bool) (Maybe Bool)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateSolution' {Maybe Bool
performHPO :: Maybe Bool
$sel:performHPO:CreateSolution' :: CreateSolution -> Maybe Bool
performHPO} -> Maybe Bool
performHPO) (\s :: CreateSolution
s@CreateSolution' {} Maybe Bool
a -> CreateSolution
s {$sel:performHPO:CreateSolution' :: Maybe Bool
performHPO = Maybe Bool
a} :: CreateSolution)
createSolution_name :: Lens.Lens' CreateSolution Prelude.Text
createSolution_name :: (Text -> f Text) -> CreateSolution -> f CreateSolution
createSolution_name = (CreateSolution -> Text)
-> (CreateSolution -> Text -> CreateSolution)
-> Lens CreateSolution CreateSolution Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateSolution' {Text
name :: Text
$sel:name:CreateSolution' :: CreateSolution -> Text
name} -> Text
name) (\s :: CreateSolution
s@CreateSolution' {} Text
a -> CreateSolution
s {$sel:name:CreateSolution' :: Text
name = Text
a} :: CreateSolution)
createSolution_datasetGroupArn :: Lens.Lens' CreateSolution Prelude.Text
createSolution_datasetGroupArn :: (Text -> f Text) -> CreateSolution -> f CreateSolution
createSolution_datasetGroupArn = (CreateSolution -> Text)
-> (CreateSolution -> Text -> CreateSolution)
-> Lens CreateSolution CreateSolution Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateSolution' {Text
datasetGroupArn :: Text
$sel:datasetGroupArn:CreateSolution' :: CreateSolution -> Text
datasetGroupArn} -> Text
datasetGroupArn) (\s :: CreateSolution
s@CreateSolution' {} Text
a -> CreateSolution
s {$sel:datasetGroupArn:CreateSolution' :: Text
datasetGroupArn = Text
a} :: CreateSolution)
instance Core.AWSRequest CreateSolution where
type
AWSResponse CreateSolution =
CreateSolutionResponse
request :: CreateSolution -> Request CreateSolution
request = Service -> CreateSolution -> Request CreateSolution
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
response :: Logger
-> Service
-> Proxy CreateSolution
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse CreateSolution)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse CreateSolution))
-> Logger
-> Service
-> Proxy CreateSolution
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse CreateSolution)))
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 -> Int -> CreateSolutionResponse
CreateSolutionResponse'
(Maybe Text -> Int -> CreateSolutionResponse)
-> Either String (Maybe Text)
-> Either String (Int -> CreateSolutionResponse)
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
"solutionArn")
Either String (Int -> CreateSolutionResponse)
-> Either String Int -> Either String CreateSolutionResponse
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 CreateSolution
instance Prelude.NFData CreateSolution
instance Core.ToHeaders CreateSolution where
toHeaders :: CreateSolution -> ResponseHeaders
toHeaders =
ResponseHeaders -> CreateSolution -> 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
"AmazonPersonalize.CreateSolution" ::
Prelude.ByteString
),
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 CreateSolution where
toJSON :: CreateSolution -> Value
toJSON CreateSolution' {Maybe Bool
Maybe Text
Maybe SolutionConfig
Text
datasetGroupArn :: Text
name :: Text
performHPO :: Maybe Bool
solutionConfig :: Maybe SolutionConfig
eventType :: Maybe Text
recipeArn :: Maybe Text
performAutoML :: Maybe Bool
$sel:datasetGroupArn:CreateSolution' :: CreateSolution -> Text
$sel:name:CreateSolution' :: CreateSolution -> Text
$sel:performHPO:CreateSolution' :: CreateSolution -> Maybe Bool
$sel:solutionConfig:CreateSolution' :: CreateSolution -> Maybe SolutionConfig
$sel:eventType:CreateSolution' :: CreateSolution -> Maybe Text
$sel:recipeArn:CreateSolution' :: CreateSolution -> Maybe Text
$sel:performAutoML:CreateSolution' :: CreateSolution -> Maybe Bool
..} =
[Pair] -> Value
Core.object
( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[ (Text
"performAutoML" Text -> Bool -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (Bool -> Pair) -> Maybe Bool -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Bool
performAutoML,
(Text
"recipeArn" 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
recipeArn,
(Text
"eventType" 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
eventType,
(Text
"solutionConfig" Text -> SolutionConfig -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
(SolutionConfig -> Pair) -> Maybe SolutionConfig -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe SolutionConfig
solutionConfig,
(Text
"performHPO" Text -> Bool -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (Bool -> Pair) -> Maybe Bool -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Bool
performHPO,
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
"datasetGroupArn" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
datasetGroupArn)
]
)
instance Core.ToPath CreateSolution where
toPath :: CreateSolution -> ByteString
toPath = ByteString -> CreateSolution -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/"
instance Core.ToQuery CreateSolution where
toQuery :: CreateSolution -> QueryString
toQuery = QueryString -> CreateSolution -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data CreateSolutionResponse = CreateSolutionResponse'
{
CreateSolutionResponse -> Maybe Text
solutionArn :: Prelude.Maybe Prelude.Text,
CreateSolutionResponse -> Int
httpStatus :: Prelude.Int
}
deriving (CreateSolutionResponse -> CreateSolutionResponse -> Bool
(CreateSolutionResponse -> CreateSolutionResponse -> Bool)
-> (CreateSolutionResponse -> CreateSolutionResponse -> Bool)
-> Eq CreateSolutionResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: CreateSolutionResponse -> CreateSolutionResponse -> Bool
$c/= :: CreateSolutionResponse -> CreateSolutionResponse -> Bool
== :: CreateSolutionResponse -> CreateSolutionResponse -> Bool
$c== :: CreateSolutionResponse -> CreateSolutionResponse -> Bool
Prelude.Eq, ReadPrec [CreateSolutionResponse]
ReadPrec CreateSolutionResponse
Int -> ReadS CreateSolutionResponse
ReadS [CreateSolutionResponse]
(Int -> ReadS CreateSolutionResponse)
-> ReadS [CreateSolutionResponse]
-> ReadPrec CreateSolutionResponse
-> ReadPrec [CreateSolutionResponse]
-> Read CreateSolutionResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [CreateSolutionResponse]
$creadListPrec :: ReadPrec [CreateSolutionResponse]
readPrec :: ReadPrec CreateSolutionResponse
$creadPrec :: ReadPrec CreateSolutionResponse
readList :: ReadS [CreateSolutionResponse]
$creadList :: ReadS [CreateSolutionResponse]
readsPrec :: Int -> ReadS CreateSolutionResponse
$creadsPrec :: Int -> ReadS CreateSolutionResponse
Prelude.Read, Int -> CreateSolutionResponse -> ShowS
[CreateSolutionResponse] -> ShowS
CreateSolutionResponse -> String
(Int -> CreateSolutionResponse -> ShowS)
-> (CreateSolutionResponse -> String)
-> ([CreateSolutionResponse] -> ShowS)
-> Show CreateSolutionResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [CreateSolutionResponse] -> ShowS
$cshowList :: [CreateSolutionResponse] -> ShowS
show :: CreateSolutionResponse -> String
$cshow :: CreateSolutionResponse -> String
showsPrec :: Int -> CreateSolutionResponse -> ShowS
$cshowsPrec :: Int -> CreateSolutionResponse -> ShowS
Prelude.Show, (forall x. CreateSolutionResponse -> Rep CreateSolutionResponse x)
-> (forall x.
Rep CreateSolutionResponse x -> CreateSolutionResponse)
-> Generic CreateSolutionResponse
forall x. Rep CreateSolutionResponse x -> CreateSolutionResponse
forall x. CreateSolutionResponse -> Rep CreateSolutionResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep CreateSolutionResponse x -> CreateSolutionResponse
$cfrom :: forall x. CreateSolutionResponse -> Rep CreateSolutionResponse x
Prelude.Generic)
newCreateSolutionResponse ::
Prelude.Int ->
CreateSolutionResponse
newCreateSolutionResponse :: Int -> CreateSolutionResponse
newCreateSolutionResponse Int
pHttpStatus_ =
CreateSolutionResponse' :: Maybe Text -> Int -> CreateSolutionResponse
CreateSolutionResponse'
{ $sel:solutionArn:CreateSolutionResponse' :: Maybe Text
solutionArn =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:CreateSolutionResponse' :: Int
httpStatus = Int
pHttpStatus_
}
createSolutionResponse_solutionArn :: Lens.Lens' CreateSolutionResponse (Prelude.Maybe Prelude.Text)
createSolutionResponse_solutionArn :: (Maybe Text -> f (Maybe Text))
-> CreateSolutionResponse -> f CreateSolutionResponse
createSolutionResponse_solutionArn = (CreateSolutionResponse -> Maybe Text)
-> (CreateSolutionResponse -> Maybe Text -> CreateSolutionResponse)
-> Lens
CreateSolutionResponse
CreateSolutionResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateSolutionResponse' {Maybe Text
solutionArn :: Maybe Text
$sel:solutionArn:CreateSolutionResponse' :: CreateSolutionResponse -> Maybe Text
solutionArn} -> Maybe Text
solutionArn) (\s :: CreateSolutionResponse
s@CreateSolutionResponse' {} Maybe Text
a -> CreateSolutionResponse
s {$sel:solutionArn:CreateSolutionResponse' :: Maybe Text
solutionArn = Maybe Text
a} :: CreateSolutionResponse)
createSolutionResponse_httpStatus :: Lens.Lens' CreateSolutionResponse Prelude.Int
createSolutionResponse_httpStatus :: (Int -> f Int)
-> CreateSolutionResponse -> f CreateSolutionResponse
createSolutionResponse_httpStatus = (CreateSolutionResponse -> Int)
-> (CreateSolutionResponse -> Int -> CreateSolutionResponse)
-> Lens CreateSolutionResponse CreateSolutionResponse Int Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateSolutionResponse' {Int
httpStatus :: Int
$sel:httpStatus:CreateSolutionResponse' :: CreateSolutionResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: CreateSolutionResponse
s@CreateSolutionResponse' {} Int
a -> CreateSolutionResponse
s {$sel:httpStatus:CreateSolutionResponse' :: Int
httpStatus = Int
a} :: CreateSolutionResponse)
instance Prelude.NFData CreateSolutionResponse