{-# 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.CodeBuild.Types.BuildArtifacts where
import Amazonka.CodeBuild.Types.BucketOwnerAccess
import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
data BuildArtifacts = BuildArtifacts'
{
BuildArtifacts -> Maybe Text
location :: Prelude.Maybe Prelude.Text,
BuildArtifacts -> Maybe Text
md5sum :: Prelude.Maybe Prelude.Text,
BuildArtifacts -> Maybe Bool
encryptionDisabled :: Prelude.Maybe Prelude.Bool,
BuildArtifacts -> Maybe Bool
overrideArtifactName :: Prelude.Maybe Prelude.Bool,
BuildArtifacts -> Maybe Text
artifactIdentifier :: Prelude.Maybe Prelude.Text,
BuildArtifacts -> Maybe Text
sha256sum :: Prelude.Maybe Prelude.Text,
BuildArtifacts -> Maybe BucketOwnerAccess
bucketOwnerAccess :: Prelude.Maybe BucketOwnerAccess
}
deriving (BuildArtifacts -> BuildArtifacts -> Bool
(BuildArtifacts -> BuildArtifacts -> Bool)
-> (BuildArtifacts -> BuildArtifacts -> Bool) -> Eq BuildArtifacts
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: BuildArtifacts -> BuildArtifacts -> Bool
$c/= :: BuildArtifacts -> BuildArtifacts -> Bool
== :: BuildArtifacts -> BuildArtifacts -> Bool
$c== :: BuildArtifacts -> BuildArtifacts -> Bool
Prelude.Eq, ReadPrec [BuildArtifacts]
ReadPrec BuildArtifacts
Int -> ReadS BuildArtifacts
ReadS [BuildArtifacts]
(Int -> ReadS BuildArtifacts)
-> ReadS [BuildArtifacts]
-> ReadPrec BuildArtifacts
-> ReadPrec [BuildArtifacts]
-> Read BuildArtifacts
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [BuildArtifacts]
$creadListPrec :: ReadPrec [BuildArtifacts]
readPrec :: ReadPrec BuildArtifacts
$creadPrec :: ReadPrec BuildArtifacts
readList :: ReadS [BuildArtifacts]
$creadList :: ReadS [BuildArtifacts]
readsPrec :: Int -> ReadS BuildArtifacts
$creadsPrec :: Int -> ReadS BuildArtifacts
Prelude.Read, Int -> BuildArtifacts -> ShowS
[BuildArtifacts] -> ShowS
BuildArtifacts -> String
(Int -> BuildArtifacts -> ShowS)
-> (BuildArtifacts -> String)
-> ([BuildArtifacts] -> ShowS)
-> Show BuildArtifacts
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [BuildArtifacts] -> ShowS
$cshowList :: [BuildArtifacts] -> ShowS
show :: BuildArtifacts -> String
$cshow :: BuildArtifacts -> String
showsPrec :: Int -> BuildArtifacts -> ShowS
$cshowsPrec :: Int -> BuildArtifacts -> ShowS
Prelude.Show, (forall x. BuildArtifacts -> Rep BuildArtifacts x)
-> (forall x. Rep BuildArtifacts x -> BuildArtifacts)
-> Generic BuildArtifacts
forall x. Rep BuildArtifacts x -> BuildArtifacts
forall x. BuildArtifacts -> Rep BuildArtifacts x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep BuildArtifacts x -> BuildArtifacts
$cfrom :: forall x. BuildArtifacts -> Rep BuildArtifacts x
Prelude.Generic)
newBuildArtifacts ::
BuildArtifacts
newBuildArtifacts :: BuildArtifacts
newBuildArtifacts =
BuildArtifacts' :: Maybe Text
-> Maybe Text
-> Maybe Bool
-> Maybe Bool
-> Maybe Text
-> Maybe Text
-> Maybe BucketOwnerAccess
-> BuildArtifacts
BuildArtifacts'
{ $sel:location:BuildArtifacts' :: Maybe Text
location = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:md5sum:BuildArtifacts' :: Maybe Text
md5sum = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:encryptionDisabled:BuildArtifacts' :: Maybe Bool
encryptionDisabled = Maybe Bool
forall a. Maybe a
Prelude.Nothing,
$sel:overrideArtifactName:BuildArtifacts' :: Maybe Bool
overrideArtifactName = Maybe Bool
forall a. Maybe a
Prelude.Nothing,
$sel:artifactIdentifier:BuildArtifacts' :: Maybe Text
artifactIdentifier = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:sha256sum:BuildArtifacts' :: Maybe Text
sha256sum = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:bucketOwnerAccess:BuildArtifacts' :: Maybe BucketOwnerAccess
bucketOwnerAccess = Maybe BucketOwnerAccess
forall a. Maybe a
Prelude.Nothing
}
buildArtifacts_location :: Lens.Lens' BuildArtifacts (Prelude.Maybe Prelude.Text)
buildArtifacts_location :: (Maybe Text -> f (Maybe Text))
-> BuildArtifacts -> f BuildArtifacts
buildArtifacts_location = (BuildArtifacts -> Maybe Text)
-> (BuildArtifacts -> Maybe Text -> BuildArtifacts)
-> Lens BuildArtifacts BuildArtifacts (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\BuildArtifacts' {Maybe Text
location :: Maybe Text
$sel:location:BuildArtifacts' :: BuildArtifacts -> Maybe Text
location} -> Maybe Text
location) (\s :: BuildArtifacts
s@BuildArtifacts' {} Maybe Text
a -> BuildArtifacts
s {$sel:location:BuildArtifacts' :: Maybe Text
location = Maybe Text
a} :: BuildArtifacts)
buildArtifacts_md5sum :: Lens.Lens' BuildArtifacts (Prelude.Maybe Prelude.Text)
buildArtifacts_md5sum :: (Maybe Text -> f (Maybe Text))
-> BuildArtifacts -> f BuildArtifacts
buildArtifacts_md5sum = (BuildArtifacts -> Maybe Text)
-> (BuildArtifacts -> Maybe Text -> BuildArtifacts)
-> Lens BuildArtifacts BuildArtifacts (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\BuildArtifacts' {Maybe Text
md5sum :: Maybe Text
$sel:md5sum:BuildArtifacts' :: BuildArtifacts -> Maybe Text
md5sum} -> Maybe Text
md5sum) (\s :: BuildArtifacts
s@BuildArtifacts' {} Maybe Text
a -> BuildArtifacts
s {$sel:md5sum:BuildArtifacts' :: Maybe Text
md5sum = Maybe Text
a} :: BuildArtifacts)
buildArtifacts_encryptionDisabled :: Lens.Lens' BuildArtifacts (Prelude.Maybe Prelude.Bool)
buildArtifacts_encryptionDisabled :: (Maybe Bool -> f (Maybe Bool))
-> BuildArtifacts -> f BuildArtifacts
buildArtifacts_encryptionDisabled = (BuildArtifacts -> Maybe Bool)
-> (BuildArtifacts -> Maybe Bool -> BuildArtifacts)
-> Lens BuildArtifacts BuildArtifacts (Maybe Bool) (Maybe Bool)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\BuildArtifacts' {Maybe Bool
encryptionDisabled :: Maybe Bool
$sel:encryptionDisabled:BuildArtifacts' :: BuildArtifacts -> Maybe Bool
encryptionDisabled} -> Maybe Bool
encryptionDisabled) (\s :: BuildArtifacts
s@BuildArtifacts' {} Maybe Bool
a -> BuildArtifacts
s {$sel:encryptionDisabled:BuildArtifacts' :: Maybe Bool
encryptionDisabled = Maybe Bool
a} :: BuildArtifacts)
buildArtifacts_overrideArtifactName :: Lens.Lens' BuildArtifacts (Prelude.Maybe Prelude.Bool)
buildArtifacts_overrideArtifactName :: (Maybe Bool -> f (Maybe Bool))
-> BuildArtifacts -> f BuildArtifacts
buildArtifacts_overrideArtifactName = (BuildArtifacts -> Maybe Bool)
-> (BuildArtifacts -> Maybe Bool -> BuildArtifacts)
-> Lens BuildArtifacts BuildArtifacts (Maybe Bool) (Maybe Bool)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\BuildArtifacts' {Maybe Bool
overrideArtifactName :: Maybe Bool
$sel:overrideArtifactName:BuildArtifacts' :: BuildArtifacts -> Maybe Bool
overrideArtifactName} -> Maybe Bool
overrideArtifactName) (\s :: BuildArtifacts
s@BuildArtifacts' {} Maybe Bool
a -> BuildArtifacts
s {$sel:overrideArtifactName:BuildArtifacts' :: Maybe Bool
overrideArtifactName = Maybe Bool
a} :: BuildArtifacts)
buildArtifacts_artifactIdentifier :: Lens.Lens' BuildArtifacts (Prelude.Maybe Prelude.Text)
buildArtifacts_artifactIdentifier :: (Maybe Text -> f (Maybe Text))
-> BuildArtifacts -> f BuildArtifacts
buildArtifacts_artifactIdentifier = (BuildArtifacts -> Maybe Text)
-> (BuildArtifacts -> Maybe Text -> BuildArtifacts)
-> Lens BuildArtifacts BuildArtifacts (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\BuildArtifacts' {Maybe Text
artifactIdentifier :: Maybe Text
$sel:artifactIdentifier:BuildArtifacts' :: BuildArtifacts -> Maybe Text
artifactIdentifier} -> Maybe Text
artifactIdentifier) (\s :: BuildArtifacts
s@BuildArtifacts' {} Maybe Text
a -> BuildArtifacts
s {$sel:artifactIdentifier:BuildArtifacts' :: Maybe Text
artifactIdentifier = Maybe Text
a} :: BuildArtifacts)
buildArtifacts_sha256sum :: Lens.Lens' BuildArtifacts (Prelude.Maybe Prelude.Text)
buildArtifacts_sha256sum :: (Maybe Text -> f (Maybe Text))
-> BuildArtifacts -> f BuildArtifacts
buildArtifacts_sha256sum = (BuildArtifacts -> Maybe Text)
-> (BuildArtifacts -> Maybe Text -> BuildArtifacts)
-> Lens BuildArtifacts BuildArtifacts (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\BuildArtifacts' {Maybe Text
sha256sum :: Maybe Text
$sel:sha256sum:BuildArtifacts' :: BuildArtifacts -> Maybe Text
sha256sum} -> Maybe Text
sha256sum) (\s :: BuildArtifacts
s@BuildArtifacts' {} Maybe Text
a -> BuildArtifacts
s {$sel:sha256sum:BuildArtifacts' :: Maybe Text
sha256sum = Maybe Text
a} :: BuildArtifacts)
buildArtifacts_bucketOwnerAccess :: Lens.Lens' BuildArtifacts (Prelude.Maybe BucketOwnerAccess)
buildArtifacts_bucketOwnerAccess :: (Maybe BucketOwnerAccess -> f (Maybe BucketOwnerAccess))
-> BuildArtifacts -> f BuildArtifacts
buildArtifacts_bucketOwnerAccess = (BuildArtifacts -> Maybe BucketOwnerAccess)
-> (BuildArtifacts -> Maybe BucketOwnerAccess -> BuildArtifacts)
-> Lens
BuildArtifacts
BuildArtifacts
(Maybe BucketOwnerAccess)
(Maybe BucketOwnerAccess)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\BuildArtifacts' {Maybe BucketOwnerAccess
bucketOwnerAccess :: Maybe BucketOwnerAccess
$sel:bucketOwnerAccess:BuildArtifacts' :: BuildArtifacts -> Maybe BucketOwnerAccess
bucketOwnerAccess} -> Maybe BucketOwnerAccess
bucketOwnerAccess) (\s :: BuildArtifacts
s@BuildArtifacts' {} Maybe BucketOwnerAccess
a -> BuildArtifacts
s {$sel:bucketOwnerAccess:BuildArtifacts' :: Maybe BucketOwnerAccess
bucketOwnerAccess = Maybe BucketOwnerAccess
a} :: BuildArtifacts)
instance Core.FromJSON BuildArtifacts where
parseJSON :: Value -> Parser BuildArtifacts
parseJSON =
String
-> (Object -> Parser BuildArtifacts)
-> Value
-> Parser BuildArtifacts
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Core.withObject
String
"BuildArtifacts"
( \Object
x ->
Maybe Text
-> Maybe Text
-> Maybe Bool
-> Maybe Bool
-> Maybe Text
-> Maybe Text
-> Maybe BucketOwnerAccess
-> BuildArtifacts
BuildArtifacts'
(Maybe Text
-> Maybe Text
-> Maybe Bool
-> Maybe Bool
-> Maybe Text
-> Maybe Text
-> Maybe BucketOwnerAccess
-> BuildArtifacts)
-> Parser (Maybe Text)
-> Parser
(Maybe Text
-> Maybe Bool
-> Maybe Bool
-> Maybe Text
-> Maybe Text
-> Maybe BucketOwnerAccess
-> BuildArtifacts)
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
"location")
Parser
(Maybe Text
-> Maybe Bool
-> Maybe Bool
-> Maybe Text
-> Maybe Text
-> Maybe BucketOwnerAccess
-> BuildArtifacts)
-> Parser (Maybe Text)
-> Parser
(Maybe Bool
-> Maybe Bool
-> Maybe Text
-> Maybe Text
-> Maybe BucketOwnerAccess
-> BuildArtifacts)
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
"md5sum")
Parser
(Maybe Bool
-> Maybe Bool
-> Maybe Text
-> Maybe Text
-> Maybe BucketOwnerAccess
-> BuildArtifacts)
-> Parser (Maybe Bool)
-> Parser
(Maybe Bool
-> Maybe Text
-> Maybe Text
-> Maybe BucketOwnerAccess
-> BuildArtifacts)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Bool)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"encryptionDisabled")
Parser
(Maybe Bool
-> Maybe Text
-> Maybe Text
-> Maybe BucketOwnerAccess
-> BuildArtifacts)
-> Parser (Maybe Bool)
-> Parser
(Maybe Text
-> Maybe Text -> Maybe BucketOwnerAccess -> BuildArtifacts)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Bool)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"overrideArtifactName")
Parser
(Maybe Text
-> Maybe Text -> Maybe BucketOwnerAccess -> BuildArtifacts)
-> Parser (Maybe Text)
-> Parser (Maybe Text -> Maybe BucketOwnerAccess -> BuildArtifacts)
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
"artifactIdentifier")
Parser (Maybe Text -> Maybe BucketOwnerAccess -> BuildArtifacts)
-> Parser (Maybe Text)
-> Parser (Maybe BucketOwnerAccess -> BuildArtifacts)
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
"sha256sum")
Parser (Maybe BucketOwnerAccess -> BuildArtifacts)
-> Parser (Maybe BucketOwnerAccess) -> Parser BuildArtifacts
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe BucketOwnerAccess)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"bucketOwnerAccess")
)
instance Prelude.Hashable BuildArtifacts
instance Prelude.NFData BuildArtifacts