{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DuplicateRecordFields #-}
{-# LANGUAGE NamedFieldPuns #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
{-# OPTIONS_GHC -fno-warn-unused-matches #-}
module Amazonka.Glue.Types.DevEndpointCustomLibraries where
import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
data DevEndpointCustomLibraries = DevEndpointCustomLibraries'
{
:: Prelude.Maybe Prelude.Text,
:: Prelude.Maybe Prelude.Text
}
deriving (DevEndpointCustomLibraries -> DevEndpointCustomLibraries -> Bool
(DevEndpointCustomLibraries -> DevEndpointCustomLibraries -> Bool)
-> (DevEndpointCustomLibraries
-> DevEndpointCustomLibraries -> Bool)
-> Eq DevEndpointCustomLibraries
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DevEndpointCustomLibraries -> DevEndpointCustomLibraries -> Bool
$c/= :: DevEndpointCustomLibraries -> DevEndpointCustomLibraries -> Bool
== :: DevEndpointCustomLibraries -> DevEndpointCustomLibraries -> Bool
$c== :: DevEndpointCustomLibraries -> DevEndpointCustomLibraries -> Bool
Prelude.Eq, ReadPrec [DevEndpointCustomLibraries]
ReadPrec DevEndpointCustomLibraries
Int -> ReadS DevEndpointCustomLibraries
ReadS [DevEndpointCustomLibraries]
(Int -> ReadS DevEndpointCustomLibraries)
-> ReadS [DevEndpointCustomLibraries]
-> ReadPrec DevEndpointCustomLibraries
-> ReadPrec [DevEndpointCustomLibraries]
-> Read DevEndpointCustomLibraries
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DevEndpointCustomLibraries]
$creadListPrec :: ReadPrec [DevEndpointCustomLibraries]
readPrec :: ReadPrec DevEndpointCustomLibraries
$creadPrec :: ReadPrec DevEndpointCustomLibraries
readList :: ReadS [DevEndpointCustomLibraries]
$creadList :: ReadS [DevEndpointCustomLibraries]
readsPrec :: Int -> ReadS DevEndpointCustomLibraries
$creadsPrec :: Int -> ReadS DevEndpointCustomLibraries
Prelude.Read, Int -> DevEndpointCustomLibraries -> ShowS
[DevEndpointCustomLibraries] -> ShowS
DevEndpointCustomLibraries -> String
(Int -> DevEndpointCustomLibraries -> ShowS)
-> (DevEndpointCustomLibraries -> String)
-> ([DevEndpointCustomLibraries] -> ShowS)
-> Show DevEndpointCustomLibraries
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DevEndpointCustomLibraries] -> ShowS
$cshowList :: [DevEndpointCustomLibraries] -> ShowS
show :: DevEndpointCustomLibraries -> String
$cshow :: DevEndpointCustomLibraries -> String
showsPrec :: Int -> DevEndpointCustomLibraries -> ShowS
$cshowsPrec :: Int -> DevEndpointCustomLibraries -> ShowS
Prelude.Show, (forall x.
DevEndpointCustomLibraries -> Rep DevEndpointCustomLibraries x)
-> (forall x.
Rep DevEndpointCustomLibraries x -> DevEndpointCustomLibraries)
-> Generic DevEndpointCustomLibraries
forall x.
Rep DevEndpointCustomLibraries x -> DevEndpointCustomLibraries
forall x.
DevEndpointCustomLibraries -> Rep DevEndpointCustomLibraries x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep DevEndpointCustomLibraries x -> DevEndpointCustomLibraries
$cfrom :: forall x.
DevEndpointCustomLibraries -> Rep DevEndpointCustomLibraries x
Prelude.Generic)
newDevEndpointCustomLibraries ::
DevEndpointCustomLibraries
newDevEndpointCustomLibraries :: DevEndpointCustomLibraries
newDevEndpointCustomLibraries =
DevEndpointCustomLibraries' :: Maybe Text -> Maybe Text -> DevEndpointCustomLibraries
DevEndpointCustomLibraries'
{ $sel:extraPythonLibsS3Path:DevEndpointCustomLibraries' :: Maybe Text
extraPythonLibsS3Path =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:extraJarsS3Path:DevEndpointCustomLibraries' :: Maybe Text
extraJarsS3Path = Maybe Text
forall a. Maybe a
Prelude.Nothing
}
devEndpointCustomLibraries_extraPythonLibsS3Path :: Lens.Lens' DevEndpointCustomLibraries (Prelude.Maybe Prelude.Text)
= (DevEndpointCustomLibraries -> Maybe Text)
-> (DevEndpointCustomLibraries
-> Maybe Text -> DevEndpointCustomLibraries)
-> Lens
DevEndpointCustomLibraries
DevEndpointCustomLibraries
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DevEndpointCustomLibraries' {Maybe Text
extraPythonLibsS3Path :: Maybe Text
$sel:extraPythonLibsS3Path:DevEndpointCustomLibraries' :: DevEndpointCustomLibraries -> Maybe Text
extraPythonLibsS3Path} -> Maybe Text
extraPythonLibsS3Path) (\s :: DevEndpointCustomLibraries
s@DevEndpointCustomLibraries' {} Maybe Text
a -> DevEndpointCustomLibraries
s {$sel:extraPythonLibsS3Path:DevEndpointCustomLibraries' :: Maybe Text
extraPythonLibsS3Path = Maybe Text
a} :: DevEndpointCustomLibraries)
devEndpointCustomLibraries_extraJarsS3Path :: Lens.Lens' DevEndpointCustomLibraries (Prelude.Maybe Prelude.Text)
= (DevEndpointCustomLibraries -> Maybe Text)
-> (DevEndpointCustomLibraries
-> Maybe Text -> DevEndpointCustomLibraries)
-> Lens
DevEndpointCustomLibraries
DevEndpointCustomLibraries
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DevEndpointCustomLibraries' {Maybe Text
extraJarsS3Path :: Maybe Text
$sel:extraJarsS3Path:DevEndpointCustomLibraries' :: DevEndpointCustomLibraries -> Maybe Text
extraJarsS3Path} -> Maybe Text
extraJarsS3Path) (\s :: DevEndpointCustomLibraries
s@DevEndpointCustomLibraries' {} Maybe Text
a -> DevEndpointCustomLibraries
s {$sel:extraJarsS3Path:DevEndpointCustomLibraries' :: Maybe Text
extraJarsS3Path = Maybe Text
a} :: DevEndpointCustomLibraries)
instance Prelude.Hashable DevEndpointCustomLibraries
instance Prelude.NFData DevEndpointCustomLibraries
instance Core.ToJSON DevEndpointCustomLibraries where
toJSON :: DevEndpointCustomLibraries -> Value
toJSON DevEndpointCustomLibraries' {Maybe Text
extraJarsS3Path :: Maybe Text
extraPythonLibsS3Path :: Maybe Text
$sel:extraJarsS3Path:DevEndpointCustomLibraries' :: DevEndpointCustomLibraries -> Maybe Text
$sel:extraPythonLibsS3Path:DevEndpointCustomLibraries' :: DevEndpointCustomLibraries -> Maybe Text
..} =
[Pair] -> Value
Core.object
( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[ (Text
"ExtraPythonLibsS3Path" 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
extraPythonLibsS3Path,
(Text
"ExtraJarsS3Path" 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
extraJarsS3Path
]
)