{-# 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.SecurityHub.Types.AwsCodeBuildProjectEnvironmentEnvironmentVariablesDetails where
import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
data AwsCodeBuildProjectEnvironmentEnvironmentVariablesDetails = AwsCodeBuildProjectEnvironmentEnvironmentVariablesDetails'
{
AwsCodeBuildProjectEnvironmentEnvironmentVariablesDetails
-> Maybe Text
value :: Prelude.Maybe Prelude.Text,
AwsCodeBuildProjectEnvironmentEnvironmentVariablesDetails
-> Maybe Text
name :: Prelude.Maybe Prelude.Text,
AwsCodeBuildProjectEnvironmentEnvironmentVariablesDetails
-> Maybe Text
type' :: Prelude.Maybe Prelude.Text
}
deriving (AwsCodeBuildProjectEnvironmentEnvironmentVariablesDetails
-> AwsCodeBuildProjectEnvironmentEnvironmentVariablesDetails
-> Bool
(AwsCodeBuildProjectEnvironmentEnvironmentVariablesDetails
-> AwsCodeBuildProjectEnvironmentEnvironmentVariablesDetails
-> Bool)
-> (AwsCodeBuildProjectEnvironmentEnvironmentVariablesDetails
-> AwsCodeBuildProjectEnvironmentEnvironmentVariablesDetails
-> Bool)
-> Eq AwsCodeBuildProjectEnvironmentEnvironmentVariablesDetails
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: AwsCodeBuildProjectEnvironmentEnvironmentVariablesDetails
-> AwsCodeBuildProjectEnvironmentEnvironmentVariablesDetails
-> Bool
$c/= :: AwsCodeBuildProjectEnvironmentEnvironmentVariablesDetails
-> AwsCodeBuildProjectEnvironmentEnvironmentVariablesDetails
-> Bool
== :: AwsCodeBuildProjectEnvironmentEnvironmentVariablesDetails
-> AwsCodeBuildProjectEnvironmentEnvironmentVariablesDetails
-> Bool
$c== :: AwsCodeBuildProjectEnvironmentEnvironmentVariablesDetails
-> AwsCodeBuildProjectEnvironmentEnvironmentVariablesDetails
-> Bool
Prelude.Eq, ReadPrec
[AwsCodeBuildProjectEnvironmentEnvironmentVariablesDetails]
ReadPrec AwsCodeBuildProjectEnvironmentEnvironmentVariablesDetails
Int
-> ReadS AwsCodeBuildProjectEnvironmentEnvironmentVariablesDetails
ReadS [AwsCodeBuildProjectEnvironmentEnvironmentVariablesDetails]
(Int
-> ReadS AwsCodeBuildProjectEnvironmentEnvironmentVariablesDetails)
-> ReadS
[AwsCodeBuildProjectEnvironmentEnvironmentVariablesDetails]
-> ReadPrec
AwsCodeBuildProjectEnvironmentEnvironmentVariablesDetails
-> ReadPrec
[AwsCodeBuildProjectEnvironmentEnvironmentVariablesDetails]
-> Read AwsCodeBuildProjectEnvironmentEnvironmentVariablesDetails
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec
[AwsCodeBuildProjectEnvironmentEnvironmentVariablesDetails]
$creadListPrec :: ReadPrec
[AwsCodeBuildProjectEnvironmentEnvironmentVariablesDetails]
readPrec :: ReadPrec AwsCodeBuildProjectEnvironmentEnvironmentVariablesDetails
$creadPrec :: ReadPrec AwsCodeBuildProjectEnvironmentEnvironmentVariablesDetails
readList :: ReadS [AwsCodeBuildProjectEnvironmentEnvironmentVariablesDetails]
$creadList :: ReadS [AwsCodeBuildProjectEnvironmentEnvironmentVariablesDetails]
readsPrec :: Int
-> ReadS AwsCodeBuildProjectEnvironmentEnvironmentVariablesDetails
$creadsPrec :: Int
-> ReadS AwsCodeBuildProjectEnvironmentEnvironmentVariablesDetails
Prelude.Read, Int
-> AwsCodeBuildProjectEnvironmentEnvironmentVariablesDetails
-> ShowS
[AwsCodeBuildProjectEnvironmentEnvironmentVariablesDetails]
-> ShowS
AwsCodeBuildProjectEnvironmentEnvironmentVariablesDetails -> String
(Int
-> AwsCodeBuildProjectEnvironmentEnvironmentVariablesDetails
-> ShowS)
-> (AwsCodeBuildProjectEnvironmentEnvironmentVariablesDetails
-> String)
-> ([AwsCodeBuildProjectEnvironmentEnvironmentVariablesDetails]
-> ShowS)
-> Show AwsCodeBuildProjectEnvironmentEnvironmentVariablesDetails
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [AwsCodeBuildProjectEnvironmentEnvironmentVariablesDetails]
-> ShowS
$cshowList :: [AwsCodeBuildProjectEnvironmentEnvironmentVariablesDetails]
-> ShowS
show :: AwsCodeBuildProjectEnvironmentEnvironmentVariablesDetails -> String
$cshow :: AwsCodeBuildProjectEnvironmentEnvironmentVariablesDetails -> String
showsPrec :: Int
-> AwsCodeBuildProjectEnvironmentEnvironmentVariablesDetails
-> ShowS
$cshowsPrec :: Int
-> AwsCodeBuildProjectEnvironmentEnvironmentVariablesDetails
-> ShowS
Prelude.Show, (forall x.
AwsCodeBuildProjectEnvironmentEnvironmentVariablesDetails
-> Rep AwsCodeBuildProjectEnvironmentEnvironmentVariablesDetails x)
-> (forall x.
Rep AwsCodeBuildProjectEnvironmentEnvironmentVariablesDetails x
-> AwsCodeBuildProjectEnvironmentEnvironmentVariablesDetails)
-> Generic
AwsCodeBuildProjectEnvironmentEnvironmentVariablesDetails
forall x.
Rep AwsCodeBuildProjectEnvironmentEnvironmentVariablesDetails x
-> AwsCodeBuildProjectEnvironmentEnvironmentVariablesDetails
forall x.
AwsCodeBuildProjectEnvironmentEnvironmentVariablesDetails
-> Rep AwsCodeBuildProjectEnvironmentEnvironmentVariablesDetails x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep AwsCodeBuildProjectEnvironmentEnvironmentVariablesDetails x
-> AwsCodeBuildProjectEnvironmentEnvironmentVariablesDetails
$cfrom :: forall x.
AwsCodeBuildProjectEnvironmentEnvironmentVariablesDetails
-> Rep AwsCodeBuildProjectEnvironmentEnvironmentVariablesDetails x
Prelude.Generic)
newAwsCodeBuildProjectEnvironmentEnvironmentVariablesDetails ::
AwsCodeBuildProjectEnvironmentEnvironmentVariablesDetails
newAwsCodeBuildProjectEnvironmentEnvironmentVariablesDetails :: AwsCodeBuildProjectEnvironmentEnvironmentVariablesDetails
newAwsCodeBuildProjectEnvironmentEnvironmentVariablesDetails =
AwsCodeBuildProjectEnvironmentEnvironmentVariablesDetails' :: Maybe Text
-> Maybe Text
-> Maybe Text
-> AwsCodeBuildProjectEnvironmentEnvironmentVariablesDetails
AwsCodeBuildProjectEnvironmentEnvironmentVariablesDetails'
{ $sel:value:AwsCodeBuildProjectEnvironmentEnvironmentVariablesDetails' :: Maybe Text
value =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:name:AwsCodeBuildProjectEnvironmentEnvironmentVariablesDetails' :: Maybe Text
name =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:type':AwsCodeBuildProjectEnvironmentEnvironmentVariablesDetails' :: Maybe Text
type' =
Maybe Text
forall a. Maybe a
Prelude.Nothing
}
awsCodeBuildProjectEnvironmentEnvironmentVariablesDetails_value :: Lens.Lens' AwsCodeBuildProjectEnvironmentEnvironmentVariablesDetails (Prelude.Maybe Prelude.Text)
awsCodeBuildProjectEnvironmentEnvironmentVariablesDetails_value :: (Maybe Text -> f (Maybe Text))
-> AwsCodeBuildProjectEnvironmentEnvironmentVariablesDetails
-> f AwsCodeBuildProjectEnvironmentEnvironmentVariablesDetails
awsCodeBuildProjectEnvironmentEnvironmentVariablesDetails_value = (AwsCodeBuildProjectEnvironmentEnvironmentVariablesDetails
-> Maybe Text)
-> (AwsCodeBuildProjectEnvironmentEnvironmentVariablesDetails
-> Maybe Text
-> AwsCodeBuildProjectEnvironmentEnvironmentVariablesDetails)
-> Lens
AwsCodeBuildProjectEnvironmentEnvironmentVariablesDetails
AwsCodeBuildProjectEnvironmentEnvironmentVariablesDetails
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AwsCodeBuildProjectEnvironmentEnvironmentVariablesDetails' {Maybe Text
value :: Maybe Text
$sel:value:AwsCodeBuildProjectEnvironmentEnvironmentVariablesDetails' :: AwsCodeBuildProjectEnvironmentEnvironmentVariablesDetails
-> Maybe Text
value} -> Maybe Text
value) (\s :: AwsCodeBuildProjectEnvironmentEnvironmentVariablesDetails
s@AwsCodeBuildProjectEnvironmentEnvironmentVariablesDetails' {} Maybe Text
a -> AwsCodeBuildProjectEnvironmentEnvironmentVariablesDetails
s {$sel:value:AwsCodeBuildProjectEnvironmentEnvironmentVariablesDetails' :: Maybe Text
value = Maybe Text
a} :: AwsCodeBuildProjectEnvironmentEnvironmentVariablesDetails)
awsCodeBuildProjectEnvironmentEnvironmentVariablesDetails_name :: Lens.Lens' AwsCodeBuildProjectEnvironmentEnvironmentVariablesDetails (Prelude.Maybe Prelude.Text)
awsCodeBuildProjectEnvironmentEnvironmentVariablesDetails_name :: (Maybe Text -> f (Maybe Text))
-> AwsCodeBuildProjectEnvironmentEnvironmentVariablesDetails
-> f AwsCodeBuildProjectEnvironmentEnvironmentVariablesDetails
awsCodeBuildProjectEnvironmentEnvironmentVariablesDetails_name = (AwsCodeBuildProjectEnvironmentEnvironmentVariablesDetails
-> Maybe Text)
-> (AwsCodeBuildProjectEnvironmentEnvironmentVariablesDetails
-> Maybe Text
-> AwsCodeBuildProjectEnvironmentEnvironmentVariablesDetails)
-> Lens
AwsCodeBuildProjectEnvironmentEnvironmentVariablesDetails
AwsCodeBuildProjectEnvironmentEnvironmentVariablesDetails
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AwsCodeBuildProjectEnvironmentEnvironmentVariablesDetails' {Maybe Text
name :: Maybe Text
$sel:name:AwsCodeBuildProjectEnvironmentEnvironmentVariablesDetails' :: AwsCodeBuildProjectEnvironmentEnvironmentVariablesDetails
-> Maybe Text
name} -> Maybe Text
name) (\s :: AwsCodeBuildProjectEnvironmentEnvironmentVariablesDetails
s@AwsCodeBuildProjectEnvironmentEnvironmentVariablesDetails' {} Maybe Text
a -> AwsCodeBuildProjectEnvironmentEnvironmentVariablesDetails
s {$sel:name:AwsCodeBuildProjectEnvironmentEnvironmentVariablesDetails' :: Maybe Text
name = Maybe Text
a} :: AwsCodeBuildProjectEnvironmentEnvironmentVariablesDetails)
awsCodeBuildProjectEnvironmentEnvironmentVariablesDetails_type :: Lens.Lens' AwsCodeBuildProjectEnvironmentEnvironmentVariablesDetails (Prelude.Maybe Prelude.Text)
awsCodeBuildProjectEnvironmentEnvironmentVariablesDetails_type :: (Maybe Text -> f (Maybe Text))
-> AwsCodeBuildProjectEnvironmentEnvironmentVariablesDetails
-> f AwsCodeBuildProjectEnvironmentEnvironmentVariablesDetails
awsCodeBuildProjectEnvironmentEnvironmentVariablesDetails_type = (AwsCodeBuildProjectEnvironmentEnvironmentVariablesDetails
-> Maybe Text)
-> (AwsCodeBuildProjectEnvironmentEnvironmentVariablesDetails
-> Maybe Text
-> AwsCodeBuildProjectEnvironmentEnvironmentVariablesDetails)
-> Lens
AwsCodeBuildProjectEnvironmentEnvironmentVariablesDetails
AwsCodeBuildProjectEnvironmentEnvironmentVariablesDetails
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AwsCodeBuildProjectEnvironmentEnvironmentVariablesDetails' {Maybe Text
type' :: Maybe Text
$sel:type':AwsCodeBuildProjectEnvironmentEnvironmentVariablesDetails' :: AwsCodeBuildProjectEnvironmentEnvironmentVariablesDetails
-> Maybe Text
type'} -> Maybe Text
type') (\s :: AwsCodeBuildProjectEnvironmentEnvironmentVariablesDetails
s@AwsCodeBuildProjectEnvironmentEnvironmentVariablesDetails' {} Maybe Text
a -> AwsCodeBuildProjectEnvironmentEnvironmentVariablesDetails
s {$sel:type':AwsCodeBuildProjectEnvironmentEnvironmentVariablesDetails' :: Maybe Text
type' = Maybe Text
a} :: AwsCodeBuildProjectEnvironmentEnvironmentVariablesDetails)
instance
Core.FromJSON
AwsCodeBuildProjectEnvironmentEnvironmentVariablesDetails
where
parseJSON :: Value
-> Parser AwsCodeBuildProjectEnvironmentEnvironmentVariablesDetails
parseJSON =
String
-> (Object
-> Parser
AwsCodeBuildProjectEnvironmentEnvironmentVariablesDetails)
-> Value
-> Parser AwsCodeBuildProjectEnvironmentEnvironmentVariablesDetails
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Core.withObject
String
"AwsCodeBuildProjectEnvironmentEnvironmentVariablesDetails"
( \Object
x ->
Maybe Text
-> Maybe Text
-> Maybe Text
-> AwsCodeBuildProjectEnvironmentEnvironmentVariablesDetails
AwsCodeBuildProjectEnvironmentEnvironmentVariablesDetails'
(Maybe Text
-> Maybe Text
-> Maybe Text
-> AwsCodeBuildProjectEnvironmentEnvironmentVariablesDetails)
-> Parser (Maybe Text)
-> Parser
(Maybe Text
-> Maybe Text
-> AwsCodeBuildProjectEnvironmentEnvironmentVariablesDetails)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"Value") Parser
(Maybe Text
-> Maybe Text
-> AwsCodeBuildProjectEnvironmentEnvironmentVariablesDetails)
-> Parser (Maybe Text)
-> Parser
(Maybe Text
-> AwsCodeBuildProjectEnvironmentEnvironmentVariablesDetails)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"Name")
Parser
(Maybe Text
-> AwsCodeBuildProjectEnvironmentEnvironmentVariablesDetails)
-> Parser (Maybe Text)
-> Parser AwsCodeBuildProjectEnvironmentEnvironmentVariablesDetails
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"Type")
)
instance
Prelude.Hashable
AwsCodeBuildProjectEnvironmentEnvironmentVariablesDetails
instance
Prelude.NFData
AwsCodeBuildProjectEnvironmentEnvironmentVariablesDetails
instance
Core.ToJSON
AwsCodeBuildProjectEnvironmentEnvironmentVariablesDetails
where
toJSON :: AwsCodeBuildProjectEnvironmentEnvironmentVariablesDetails -> Value
toJSON
AwsCodeBuildProjectEnvironmentEnvironmentVariablesDetails' {Maybe Text
type' :: Maybe Text
name :: Maybe Text
value :: Maybe Text
$sel:type':AwsCodeBuildProjectEnvironmentEnvironmentVariablesDetails' :: AwsCodeBuildProjectEnvironmentEnvironmentVariablesDetails
-> Maybe Text
$sel:name:AwsCodeBuildProjectEnvironmentEnvironmentVariablesDetails' :: AwsCodeBuildProjectEnvironmentEnvironmentVariablesDetails
-> Maybe Text
$sel:value:AwsCodeBuildProjectEnvironmentEnvironmentVariablesDetails' :: AwsCodeBuildProjectEnvironmentEnvironmentVariablesDetails
-> Maybe Text
..} =
[Pair] -> Value
Core.object
( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[ (Text
"Value" 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
value,
(Text
"Name" 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
name,
(Text
"Type" 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
type'
]
)