{-# 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.Core.Lens.Internal as Lens
import qualified Amazonka.Data as Data
import qualified Amazonka.Prelude as Prelude
data DevEndpointCustomLibraries = DevEndpointCustomLibraries'
{
:: Prelude.Maybe Prelude.Text,
:: Prelude.Maybe Prelude.Text
}
deriving (DevEndpointCustomLibraries -> DevEndpointCustomLibraries -> Bool
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]
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
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.
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'
{ $sel:extraJarsS3Path:DevEndpointCustomLibraries' :: Maybe Text
extraJarsS3Path =
forall a. Maybe a
Prelude.Nothing,
$sel:extraPythonLibsS3Path:DevEndpointCustomLibraries' :: Maybe Text
extraPythonLibsS3Path = forall a. Maybe a
Prelude.Nothing
}
devEndpointCustomLibraries_extraJarsS3Path :: Lens.Lens' DevEndpointCustomLibraries (Prelude.Maybe Prelude.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)
devEndpointCustomLibraries_extraPythonLibsS3Path :: Lens.Lens' DevEndpointCustomLibraries (Prelude.Maybe Prelude.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)
instance Prelude.Hashable DevEndpointCustomLibraries where
hashWithSalt :: Int -> DevEndpointCustomLibraries -> Int
hashWithSalt Int
_salt DevEndpointCustomLibraries' {Maybe Text
extraPythonLibsS3Path :: Maybe Text
extraJarsS3Path :: Maybe Text
$sel:extraPythonLibsS3Path:DevEndpointCustomLibraries' :: DevEndpointCustomLibraries -> Maybe Text
$sel:extraJarsS3Path:DevEndpointCustomLibraries' :: DevEndpointCustomLibraries -> Maybe Text
..} =
Int
_salt
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
extraJarsS3Path
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
extraPythonLibsS3Path
instance Prelude.NFData DevEndpointCustomLibraries where
rnf :: DevEndpointCustomLibraries -> ()
rnf DevEndpointCustomLibraries' {Maybe Text
extraPythonLibsS3Path :: Maybe Text
extraJarsS3Path :: Maybe Text
$sel:extraPythonLibsS3Path:DevEndpointCustomLibraries' :: DevEndpointCustomLibraries -> Maybe Text
$sel:extraJarsS3Path:DevEndpointCustomLibraries' :: DevEndpointCustomLibraries -> Maybe Text
..} =
forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
extraJarsS3Path
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
extraPythonLibsS3Path
instance Data.ToJSON DevEndpointCustomLibraries where
toJSON :: DevEndpointCustomLibraries -> Value
toJSON DevEndpointCustomLibraries' {Maybe Text
extraPythonLibsS3Path :: Maybe Text
extraJarsS3Path :: Maybe Text
$sel:extraPythonLibsS3Path:DevEndpointCustomLibraries' :: DevEndpointCustomLibraries -> Maybe Text
$sel:extraJarsS3Path:DevEndpointCustomLibraries' :: DevEndpointCustomLibraries -> Maybe Text
..} =
[Pair] -> Value
Data.object
( forall a. [Maybe a] -> [a]
Prelude.catMaybes
[ (Key
"ExtraJarsS3Path" 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
extraJarsS3Path,
(Key
"ExtraPythonLibsS3Path" 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
extraPythonLibsS3Path
]
)