{-# 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.Glue.GetPlan
(
GetPlan (..),
newGetPlan,
getPlan_sinks,
getPlan_location,
getPlan_language,
getPlan_additionalPlanOptionsMap,
getPlan_mapping,
getPlan_source,
GetPlanResponse (..),
newGetPlanResponse,
getPlanResponse_pythonScript,
getPlanResponse_scalaCode,
getPlanResponse_httpStatus,
)
where
import qualified Amazonka.Core as Core
import Amazonka.Glue.Types
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
import qualified Amazonka.Request as Request
import qualified Amazonka.Response as Response
data GetPlan = GetPlan'
{
GetPlan -> Maybe [CatalogEntry]
sinks :: Prelude.Maybe [CatalogEntry],
GetPlan -> Maybe Location
location :: Prelude.Maybe Location,
GetPlan -> Maybe Language
language :: Prelude.Maybe Language,
GetPlan -> Maybe (HashMap Text Text)
additionalPlanOptionsMap :: Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text),
GetPlan -> [MappingEntry]
mapping :: [MappingEntry],
GetPlan -> CatalogEntry
source :: CatalogEntry
}
deriving (GetPlan -> GetPlan -> Bool
(GetPlan -> GetPlan -> Bool)
-> (GetPlan -> GetPlan -> Bool) -> Eq GetPlan
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: GetPlan -> GetPlan -> Bool
$c/= :: GetPlan -> GetPlan -> Bool
== :: GetPlan -> GetPlan -> Bool
$c== :: GetPlan -> GetPlan -> Bool
Prelude.Eq, ReadPrec [GetPlan]
ReadPrec GetPlan
Int -> ReadS GetPlan
ReadS [GetPlan]
(Int -> ReadS GetPlan)
-> ReadS [GetPlan]
-> ReadPrec GetPlan
-> ReadPrec [GetPlan]
-> Read GetPlan
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [GetPlan]
$creadListPrec :: ReadPrec [GetPlan]
readPrec :: ReadPrec GetPlan
$creadPrec :: ReadPrec GetPlan
readList :: ReadS [GetPlan]
$creadList :: ReadS [GetPlan]
readsPrec :: Int -> ReadS GetPlan
$creadsPrec :: Int -> ReadS GetPlan
Prelude.Read, Int -> GetPlan -> ShowS
[GetPlan] -> ShowS
GetPlan -> String
(Int -> GetPlan -> ShowS)
-> (GetPlan -> String) -> ([GetPlan] -> ShowS) -> Show GetPlan
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [GetPlan] -> ShowS
$cshowList :: [GetPlan] -> ShowS
show :: GetPlan -> String
$cshow :: GetPlan -> String
showsPrec :: Int -> GetPlan -> ShowS
$cshowsPrec :: Int -> GetPlan -> ShowS
Prelude.Show, (forall x. GetPlan -> Rep GetPlan x)
-> (forall x. Rep GetPlan x -> GetPlan) -> Generic GetPlan
forall x. Rep GetPlan x -> GetPlan
forall x. GetPlan -> Rep GetPlan x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep GetPlan x -> GetPlan
$cfrom :: forall x. GetPlan -> Rep GetPlan x
Prelude.Generic)
newGetPlan ::
CatalogEntry ->
GetPlan
newGetPlan :: CatalogEntry -> GetPlan
newGetPlan CatalogEntry
pSource_ =
GetPlan' :: Maybe [CatalogEntry]
-> Maybe Location
-> Maybe Language
-> Maybe (HashMap Text Text)
-> [MappingEntry]
-> CatalogEntry
-> GetPlan
GetPlan'
{ $sel:sinks:GetPlan' :: Maybe [CatalogEntry]
sinks = Maybe [CatalogEntry]
forall a. Maybe a
Prelude.Nothing,
$sel:location:GetPlan' :: Maybe Location
location = Maybe Location
forall a. Maybe a
Prelude.Nothing,
$sel:language:GetPlan' :: Maybe Language
language = Maybe Language
forall a. Maybe a
Prelude.Nothing,
$sel:additionalPlanOptionsMap:GetPlan' :: Maybe (HashMap Text Text)
additionalPlanOptionsMap = Maybe (HashMap Text Text)
forall a. Maybe a
Prelude.Nothing,
$sel:mapping:GetPlan' :: [MappingEntry]
mapping = [MappingEntry]
forall a. Monoid a => a
Prelude.mempty,
$sel:source:GetPlan' :: CatalogEntry
source = CatalogEntry
pSource_
}
getPlan_sinks :: Lens.Lens' GetPlan (Prelude.Maybe [CatalogEntry])
getPlan_sinks :: (Maybe [CatalogEntry] -> f (Maybe [CatalogEntry]))
-> GetPlan -> f GetPlan
getPlan_sinks = (GetPlan -> Maybe [CatalogEntry])
-> (GetPlan -> Maybe [CatalogEntry] -> GetPlan)
-> Lens
GetPlan GetPlan (Maybe [CatalogEntry]) (Maybe [CatalogEntry])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetPlan' {Maybe [CatalogEntry]
sinks :: Maybe [CatalogEntry]
$sel:sinks:GetPlan' :: GetPlan -> Maybe [CatalogEntry]
sinks} -> Maybe [CatalogEntry]
sinks) (\s :: GetPlan
s@GetPlan' {} Maybe [CatalogEntry]
a -> GetPlan
s {$sel:sinks:GetPlan' :: Maybe [CatalogEntry]
sinks = Maybe [CatalogEntry]
a} :: GetPlan) ((Maybe [CatalogEntry] -> f (Maybe [CatalogEntry]))
-> GetPlan -> f GetPlan)
-> ((Maybe [CatalogEntry] -> f (Maybe [CatalogEntry]))
-> Maybe [CatalogEntry] -> f (Maybe [CatalogEntry]))
-> (Maybe [CatalogEntry] -> f (Maybe [CatalogEntry]))
-> GetPlan
-> f GetPlan
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso [CatalogEntry] [CatalogEntry] [CatalogEntry] [CatalogEntry]
-> Iso
(Maybe [CatalogEntry])
(Maybe [CatalogEntry])
(Maybe [CatalogEntry])
(Maybe [CatalogEntry])
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 [CatalogEntry] [CatalogEntry] [CatalogEntry] [CatalogEntry]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
getPlan_location :: Lens.Lens' GetPlan (Prelude.Maybe Location)
getPlan_location :: (Maybe Location -> f (Maybe Location)) -> GetPlan -> f GetPlan
getPlan_location = (GetPlan -> Maybe Location)
-> (GetPlan -> Maybe Location -> GetPlan)
-> Lens GetPlan GetPlan (Maybe Location) (Maybe Location)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetPlan' {Maybe Location
location :: Maybe Location
$sel:location:GetPlan' :: GetPlan -> Maybe Location
location} -> Maybe Location
location) (\s :: GetPlan
s@GetPlan' {} Maybe Location
a -> GetPlan
s {$sel:location:GetPlan' :: Maybe Location
location = Maybe Location
a} :: GetPlan)
getPlan_language :: Lens.Lens' GetPlan (Prelude.Maybe Language)
getPlan_language :: (Maybe Language -> f (Maybe Language)) -> GetPlan -> f GetPlan
getPlan_language = (GetPlan -> Maybe Language)
-> (GetPlan -> Maybe Language -> GetPlan)
-> Lens GetPlan GetPlan (Maybe Language) (Maybe Language)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetPlan' {Maybe Language
language :: Maybe Language
$sel:language:GetPlan' :: GetPlan -> Maybe Language
language} -> Maybe Language
language) (\s :: GetPlan
s@GetPlan' {} Maybe Language
a -> GetPlan
s {$sel:language:GetPlan' :: Maybe Language
language = Maybe Language
a} :: GetPlan)
getPlan_additionalPlanOptionsMap :: Lens.Lens' GetPlan (Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text))
getPlan_additionalPlanOptionsMap :: (Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> GetPlan -> f GetPlan
getPlan_additionalPlanOptionsMap = (GetPlan -> Maybe (HashMap Text Text))
-> (GetPlan -> Maybe (HashMap Text Text) -> GetPlan)
-> Lens
GetPlan
GetPlan
(Maybe (HashMap Text Text))
(Maybe (HashMap Text Text))
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetPlan' {Maybe (HashMap Text Text)
additionalPlanOptionsMap :: Maybe (HashMap Text Text)
$sel:additionalPlanOptionsMap:GetPlan' :: GetPlan -> Maybe (HashMap Text Text)
additionalPlanOptionsMap} -> Maybe (HashMap Text Text)
additionalPlanOptionsMap) (\s :: GetPlan
s@GetPlan' {} Maybe (HashMap Text Text)
a -> GetPlan
s {$sel:additionalPlanOptionsMap:GetPlan' :: Maybe (HashMap Text Text)
additionalPlanOptionsMap = Maybe (HashMap Text Text)
a} :: GetPlan) ((Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> GetPlan -> f GetPlan)
-> ((Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> (Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> GetPlan
-> f GetPlan
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
(HashMap Text Text)
(HashMap Text Text)
(HashMap Text Text)
(HashMap Text Text)
-> Iso
(Maybe (HashMap Text Text))
(Maybe (HashMap Text Text))
(Maybe (HashMap Text Text))
(Maybe (HashMap Text Text))
forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping AnIso
(HashMap Text Text)
(HashMap Text Text)
(HashMap Text Text)
(HashMap Text Text)
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
getPlan_mapping :: Lens.Lens' GetPlan [MappingEntry]
getPlan_mapping :: ([MappingEntry] -> f [MappingEntry]) -> GetPlan -> f GetPlan
getPlan_mapping = (GetPlan -> [MappingEntry])
-> (GetPlan -> [MappingEntry] -> GetPlan)
-> Lens GetPlan GetPlan [MappingEntry] [MappingEntry]
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetPlan' {[MappingEntry]
mapping :: [MappingEntry]
$sel:mapping:GetPlan' :: GetPlan -> [MappingEntry]
mapping} -> [MappingEntry]
mapping) (\s :: GetPlan
s@GetPlan' {} [MappingEntry]
a -> GetPlan
s {$sel:mapping:GetPlan' :: [MappingEntry]
mapping = [MappingEntry]
a} :: GetPlan) (([MappingEntry] -> f [MappingEntry]) -> GetPlan -> f GetPlan)
-> (([MappingEntry] -> f [MappingEntry])
-> [MappingEntry] -> f [MappingEntry])
-> ([MappingEntry] -> f [MappingEntry])
-> GetPlan
-> f GetPlan
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. ([MappingEntry] -> f [MappingEntry])
-> [MappingEntry] -> f [MappingEntry]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
getPlan_source :: Lens.Lens' GetPlan CatalogEntry
getPlan_source :: (CatalogEntry -> f CatalogEntry) -> GetPlan -> f GetPlan
getPlan_source = (GetPlan -> CatalogEntry)
-> (GetPlan -> CatalogEntry -> GetPlan)
-> Lens GetPlan GetPlan CatalogEntry CatalogEntry
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetPlan' {CatalogEntry
source :: CatalogEntry
$sel:source:GetPlan' :: GetPlan -> CatalogEntry
source} -> CatalogEntry
source) (\s :: GetPlan
s@GetPlan' {} CatalogEntry
a -> GetPlan
s {$sel:source:GetPlan' :: CatalogEntry
source = CatalogEntry
a} :: GetPlan)
instance Core.AWSRequest GetPlan where
type AWSResponse GetPlan = GetPlanResponse
request :: GetPlan -> Request GetPlan
request = Service -> GetPlan -> Request GetPlan
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
response :: Logger
-> Service
-> Proxy GetPlan
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse GetPlan)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse GetPlan))
-> Logger
-> Service
-> Proxy GetPlan
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse GetPlan)))
forall (m :: * -> *) a.
MonadResource m =>
(Int -> ResponseHeaders -> Object -> Either String (AWSResponse a))
-> Logger
-> Service
-> Proxy a
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse a)))
Response.receiveJSON
( \Int
s ResponseHeaders
h Object
x ->
Maybe Text -> Maybe Text -> Int -> GetPlanResponse
GetPlanResponse'
(Maybe Text -> Maybe Text -> Int -> GetPlanResponse)
-> Either String (Maybe Text)
-> Either String (Maybe Text -> Int -> GetPlanResponse)
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
"PythonScript")
Either String (Maybe Text -> Int -> GetPlanResponse)
-> Either String (Maybe Text)
-> Either String (Int -> GetPlanResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe Text)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"ScalaCode")
Either String (Int -> GetPlanResponse)
-> Either String Int -> Either String GetPlanResponse
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 GetPlan
instance Prelude.NFData GetPlan
instance Core.ToHeaders GetPlan where
toHeaders :: GetPlan -> ResponseHeaders
toHeaders =
ResponseHeaders -> GetPlan -> 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
"AWSGlue.GetPlan" :: 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 GetPlan where
toJSON :: GetPlan -> Value
toJSON GetPlan' {[MappingEntry]
Maybe [CatalogEntry]
Maybe (HashMap Text Text)
Maybe Language
Maybe Location
CatalogEntry
source :: CatalogEntry
mapping :: [MappingEntry]
additionalPlanOptionsMap :: Maybe (HashMap Text Text)
language :: Maybe Language
location :: Maybe Location
sinks :: Maybe [CatalogEntry]
$sel:source:GetPlan' :: GetPlan -> CatalogEntry
$sel:mapping:GetPlan' :: GetPlan -> [MappingEntry]
$sel:additionalPlanOptionsMap:GetPlan' :: GetPlan -> Maybe (HashMap Text Text)
$sel:language:GetPlan' :: GetPlan -> Maybe Language
$sel:location:GetPlan' :: GetPlan -> Maybe Location
$sel:sinks:GetPlan' :: GetPlan -> Maybe [CatalogEntry]
..} =
[Pair] -> Value
Core.object
( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[ (Text
"Sinks" Text -> [CatalogEntry] -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) ([CatalogEntry] -> Pair) -> Maybe [CatalogEntry] -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [CatalogEntry]
sinks,
(Text
"Location" Text -> Location -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (Location -> Pair) -> Maybe Location -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Location
location,
(Text
"Language" Text -> Language -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (Language -> Pair) -> Maybe Language -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Language
language,
(Text
"AdditionalPlanOptionsMap" Text -> HashMap Text Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
(HashMap Text Text -> Pair)
-> Maybe (HashMap Text Text) -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (HashMap Text Text)
additionalPlanOptionsMap,
Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just (Text
"Mapping" Text -> [MappingEntry] -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= [MappingEntry]
mapping),
Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just (Text
"Source" Text -> CatalogEntry -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= CatalogEntry
source)
]
)
instance Core.ToPath GetPlan where
toPath :: GetPlan -> ByteString
toPath = ByteString -> GetPlan -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/"
instance Core.ToQuery GetPlan where
toQuery :: GetPlan -> QueryString
toQuery = QueryString -> GetPlan -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data GetPlanResponse = GetPlanResponse'
{
GetPlanResponse -> Maybe Text
pythonScript :: Prelude.Maybe Prelude.Text,
GetPlanResponse -> Maybe Text
scalaCode :: Prelude.Maybe Prelude.Text,
GetPlanResponse -> Int
httpStatus :: Prelude.Int
}
deriving (GetPlanResponse -> GetPlanResponse -> Bool
(GetPlanResponse -> GetPlanResponse -> Bool)
-> (GetPlanResponse -> GetPlanResponse -> Bool)
-> Eq GetPlanResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: GetPlanResponse -> GetPlanResponse -> Bool
$c/= :: GetPlanResponse -> GetPlanResponse -> Bool
== :: GetPlanResponse -> GetPlanResponse -> Bool
$c== :: GetPlanResponse -> GetPlanResponse -> Bool
Prelude.Eq, ReadPrec [GetPlanResponse]
ReadPrec GetPlanResponse
Int -> ReadS GetPlanResponse
ReadS [GetPlanResponse]
(Int -> ReadS GetPlanResponse)
-> ReadS [GetPlanResponse]
-> ReadPrec GetPlanResponse
-> ReadPrec [GetPlanResponse]
-> Read GetPlanResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [GetPlanResponse]
$creadListPrec :: ReadPrec [GetPlanResponse]
readPrec :: ReadPrec GetPlanResponse
$creadPrec :: ReadPrec GetPlanResponse
readList :: ReadS [GetPlanResponse]
$creadList :: ReadS [GetPlanResponse]
readsPrec :: Int -> ReadS GetPlanResponse
$creadsPrec :: Int -> ReadS GetPlanResponse
Prelude.Read, Int -> GetPlanResponse -> ShowS
[GetPlanResponse] -> ShowS
GetPlanResponse -> String
(Int -> GetPlanResponse -> ShowS)
-> (GetPlanResponse -> String)
-> ([GetPlanResponse] -> ShowS)
-> Show GetPlanResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [GetPlanResponse] -> ShowS
$cshowList :: [GetPlanResponse] -> ShowS
show :: GetPlanResponse -> String
$cshow :: GetPlanResponse -> String
showsPrec :: Int -> GetPlanResponse -> ShowS
$cshowsPrec :: Int -> GetPlanResponse -> ShowS
Prelude.Show, (forall x. GetPlanResponse -> Rep GetPlanResponse x)
-> (forall x. Rep GetPlanResponse x -> GetPlanResponse)
-> Generic GetPlanResponse
forall x. Rep GetPlanResponse x -> GetPlanResponse
forall x. GetPlanResponse -> Rep GetPlanResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep GetPlanResponse x -> GetPlanResponse
$cfrom :: forall x. GetPlanResponse -> Rep GetPlanResponse x
Prelude.Generic)
newGetPlanResponse ::
Prelude.Int ->
GetPlanResponse
newGetPlanResponse :: Int -> GetPlanResponse
newGetPlanResponse Int
pHttpStatus_ =
GetPlanResponse' :: Maybe Text -> Maybe Text -> Int -> GetPlanResponse
GetPlanResponse'
{ $sel:pythonScript:GetPlanResponse' :: Maybe Text
pythonScript = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:scalaCode:GetPlanResponse' :: Maybe Text
scalaCode = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:GetPlanResponse' :: Int
httpStatus = Int
pHttpStatus_
}
getPlanResponse_pythonScript :: Lens.Lens' GetPlanResponse (Prelude.Maybe Prelude.Text)
getPlanResponse_pythonScript :: (Maybe Text -> f (Maybe Text))
-> GetPlanResponse -> f GetPlanResponse
getPlanResponse_pythonScript = (GetPlanResponse -> Maybe Text)
-> (GetPlanResponse -> Maybe Text -> GetPlanResponse)
-> Lens GetPlanResponse GetPlanResponse (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetPlanResponse' {Maybe Text
pythonScript :: Maybe Text
$sel:pythonScript:GetPlanResponse' :: GetPlanResponse -> Maybe Text
pythonScript} -> Maybe Text
pythonScript) (\s :: GetPlanResponse
s@GetPlanResponse' {} Maybe Text
a -> GetPlanResponse
s {$sel:pythonScript:GetPlanResponse' :: Maybe Text
pythonScript = Maybe Text
a} :: GetPlanResponse)
getPlanResponse_scalaCode :: Lens.Lens' GetPlanResponse (Prelude.Maybe Prelude.Text)
getPlanResponse_scalaCode :: (Maybe Text -> f (Maybe Text))
-> GetPlanResponse -> f GetPlanResponse
getPlanResponse_scalaCode = (GetPlanResponse -> Maybe Text)
-> (GetPlanResponse -> Maybe Text -> GetPlanResponse)
-> Lens GetPlanResponse GetPlanResponse (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetPlanResponse' {Maybe Text
scalaCode :: Maybe Text
$sel:scalaCode:GetPlanResponse' :: GetPlanResponse -> Maybe Text
scalaCode} -> Maybe Text
scalaCode) (\s :: GetPlanResponse
s@GetPlanResponse' {} Maybe Text
a -> GetPlanResponse
s {$sel:scalaCode:GetPlanResponse' :: Maybe Text
scalaCode = Maybe Text
a} :: GetPlanResponse)
getPlanResponse_httpStatus :: Lens.Lens' GetPlanResponse Prelude.Int
getPlanResponse_httpStatus :: (Int -> f Int) -> GetPlanResponse -> f GetPlanResponse
getPlanResponse_httpStatus = (GetPlanResponse -> Int)
-> (GetPlanResponse -> Int -> GetPlanResponse)
-> Lens GetPlanResponse GetPlanResponse Int Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetPlanResponse' {Int
httpStatus :: Int
$sel:httpStatus:GetPlanResponse' :: GetPlanResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: GetPlanResponse
s@GetPlanResponse' {} Int
a -> GetPlanResponse
s {$sel:httpStatus:GetPlanResponse' :: Int
httpStatus = Int
a} :: GetPlanResponse)
instance Prelude.NFData GetPlanResponse