{-# 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.KinesisAnalyticsV2.Types.CustomArtifactConfigurationDescription where
import qualified Amazonka.Core as Core
import Amazonka.KinesisAnalyticsV2.Types.ArtifactType
import Amazonka.KinesisAnalyticsV2.Types.MavenReference
import Amazonka.KinesisAnalyticsV2.Types.S3ContentLocation
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
data CustomArtifactConfigurationDescription = CustomArtifactConfigurationDescription'
{
CustomArtifactConfigurationDescription -> Maybe MavenReference
mavenReferenceDescription :: Prelude.Maybe MavenReference,
CustomArtifactConfigurationDescription -> Maybe S3ContentLocation
s3ContentLocationDescription :: Prelude.Maybe S3ContentLocation,
CustomArtifactConfigurationDescription -> Maybe ArtifactType
artifactType :: Prelude.Maybe ArtifactType
}
deriving (CustomArtifactConfigurationDescription
-> CustomArtifactConfigurationDescription -> Bool
(CustomArtifactConfigurationDescription
-> CustomArtifactConfigurationDescription -> Bool)
-> (CustomArtifactConfigurationDescription
-> CustomArtifactConfigurationDescription -> Bool)
-> Eq CustomArtifactConfigurationDescription
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: CustomArtifactConfigurationDescription
-> CustomArtifactConfigurationDescription -> Bool
$c/= :: CustomArtifactConfigurationDescription
-> CustomArtifactConfigurationDescription -> Bool
== :: CustomArtifactConfigurationDescription
-> CustomArtifactConfigurationDescription -> Bool
$c== :: CustomArtifactConfigurationDescription
-> CustomArtifactConfigurationDescription -> Bool
Prelude.Eq, ReadPrec [CustomArtifactConfigurationDescription]
ReadPrec CustomArtifactConfigurationDescription
Int -> ReadS CustomArtifactConfigurationDescription
ReadS [CustomArtifactConfigurationDescription]
(Int -> ReadS CustomArtifactConfigurationDescription)
-> ReadS [CustomArtifactConfigurationDescription]
-> ReadPrec CustomArtifactConfigurationDescription
-> ReadPrec [CustomArtifactConfigurationDescription]
-> Read CustomArtifactConfigurationDescription
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [CustomArtifactConfigurationDescription]
$creadListPrec :: ReadPrec [CustomArtifactConfigurationDescription]
readPrec :: ReadPrec CustomArtifactConfigurationDescription
$creadPrec :: ReadPrec CustomArtifactConfigurationDescription
readList :: ReadS [CustomArtifactConfigurationDescription]
$creadList :: ReadS [CustomArtifactConfigurationDescription]
readsPrec :: Int -> ReadS CustomArtifactConfigurationDescription
$creadsPrec :: Int -> ReadS CustomArtifactConfigurationDescription
Prelude.Read, Int -> CustomArtifactConfigurationDescription -> ShowS
[CustomArtifactConfigurationDescription] -> ShowS
CustomArtifactConfigurationDescription -> String
(Int -> CustomArtifactConfigurationDescription -> ShowS)
-> (CustomArtifactConfigurationDescription -> String)
-> ([CustomArtifactConfigurationDescription] -> ShowS)
-> Show CustomArtifactConfigurationDescription
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [CustomArtifactConfigurationDescription] -> ShowS
$cshowList :: [CustomArtifactConfigurationDescription] -> ShowS
show :: CustomArtifactConfigurationDescription -> String
$cshow :: CustomArtifactConfigurationDescription -> String
showsPrec :: Int -> CustomArtifactConfigurationDescription -> ShowS
$cshowsPrec :: Int -> CustomArtifactConfigurationDescription -> ShowS
Prelude.Show, (forall x.
CustomArtifactConfigurationDescription
-> Rep CustomArtifactConfigurationDescription x)
-> (forall x.
Rep CustomArtifactConfigurationDescription x
-> CustomArtifactConfigurationDescription)
-> Generic CustomArtifactConfigurationDescription
forall x.
Rep CustomArtifactConfigurationDescription x
-> CustomArtifactConfigurationDescription
forall x.
CustomArtifactConfigurationDescription
-> Rep CustomArtifactConfigurationDescription x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep CustomArtifactConfigurationDescription x
-> CustomArtifactConfigurationDescription
$cfrom :: forall x.
CustomArtifactConfigurationDescription
-> Rep CustomArtifactConfigurationDescription x
Prelude.Generic)
newCustomArtifactConfigurationDescription ::
CustomArtifactConfigurationDescription
newCustomArtifactConfigurationDescription :: CustomArtifactConfigurationDescription
newCustomArtifactConfigurationDescription =
CustomArtifactConfigurationDescription' :: Maybe MavenReference
-> Maybe S3ContentLocation
-> Maybe ArtifactType
-> CustomArtifactConfigurationDescription
CustomArtifactConfigurationDescription'
{ $sel:mavenReferenceDescription:CustomArtifactConfigurationDescription' :: Maybe MavenReference
mavenReferenceDescription =
Maybe MavenReference
forall a. Maybe a
Prelude.Nothing,
$sel:s3ContentLocationDescription:CustomArtifactConfigurationDescription' :: Maybe S3ContentLocation
s3ContentLocationDescription =
Maybe S3ContentLocation
forall a. Maybe a
Prelude.Nothing,
$sel:artifactType:CustomArtifactConfigurationDescription' :: Maybe ArtifactType
artifactType = Maybe ArtifactType
forall a. Maybe a
Prelude.Nothing
}
customArtifactConfigurationDescription_mavenReferenceDescription :: Lens.Lens' CustomArtifactConfigurationDescription (Prelude.Maybe MavenReference)
customArtifactConfigurationDescription_mavenReferenceDescription :: (Maybe MavenReference -> f (Maybe MavenReference))
-> CustomArtifactConfigurationDescription
-> f CustomArtifactConfigurationDescription
customArtifactConfigurationDescription_mavenReferenceDescription = (CustomArtifactConfigurationDescription -> Maybe MavenReference)
-> (CustomArtifactConfigurationDescription
-> Maybe MavenReference -> CustomArtifactConfigurationDescription)
-> Lens
CustomArtifactConfigurationDescription
CustomArtifactConfigurationDescription
(Maybe MavenReference)
(Maybe MavenReference)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CustomArtifactConfigurationDescription' {Maybe MavenReference
mavenReferenceDescription :: Maybe MavenReference
$sel:mavenReferenceDescription:CustomArtifactConfigurationDescription' :: CustomArtifactConfigurationDescription -> Maybe MavenReference
mavenReferenceDescription} -> Maybe MavenReference
mavenReferenceDescription) (\s :: CustomArtifactConfigurationDescription
s@CustomArtifactConfigurationDescription' {} Maybe MavenReference
a -> CustomArtifactConfigurationDescription
s {$sel:mavenReferenceDescription:CustomArtifactConfigurationDescription' :: Maybe MavenReference
mavenReferenceDescription = Maybe MavenReference
a} :: CustomArtifactConfigurationDescription)
customArtifactConfigurationDescription_s3ContentLocationDescription :: Lens.Lens' CustomArtifactConfigurationDescription (Prelude.Maybe S3ContentLocation)
customArtifactConfigurationDescription_s3ContentLocationDescription :: (Maybe S3ContentLocation -> f (Maybe S3ContentLocation))
-> CustomArtifactConfigurationDescription
-> f CustomArtifactConfigurationDescription
customArtifactConfigurationDescription_s3ContentLocationDescription = (CustomArtifactConfigurationDescription -> Maybe S3ContentLocation)
-> (CustomArtifactConfigurationDescription
-> Maybe S3ContentLocation
-> CustomArtifactConfigurationDescription)
-> Lens
CustomArtifactConfigurationDescription
CustomArtifactConfigurationDescription
(Maybe S3ContentLocation)
(Maybe S3ContentLocation)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CustomArtifactConfigurationDescription' {Maybe S3ContentLocation
s3ContentLocationDescription :: Maybe S3ContentLocation
$sel:s3ContentLocationDescription:CustomArtifactConfigurationDescription' :: CustomArtifactConfigurationDescription -> Maybe S3ContentLocation
s3ContentLocationDescription} -> Maybe S3ContentLocation
s3ContentLocationDescription) (\s :: CustomArtifactConfigurationDescription
s@CustomArtifactConfigurationDescription' {} Maybe S3ContentLocation
a -> CustomArtifactConfigurationDescription
s {$sel:s3ContentLocationDescription:CustomArtifactConfigurationDescription' :: Maybe S3ContentLocation
s3ContentLocationDescription = Maybe S3ContentLocation
a} :: CustomArtifactConfigurationDescription)
customArtifactConfigurationDescription_artifactType :: Lens.Lens' CustomArtifactConfigurationDescription (Prelude.Maybe ArtifactType)
customArtifactConfigurationDescription_artifactType :: (Maybe ArtifactType -> f (Maybe ArtifactType))
-> CustomArtifactConfigurationDescription
-> f CustomArtifactConfigurationDescription
customArtifactConfigurationDescription_artifactType = (CustomArtifactConfigurationDescription -> Maybe ArtifactType)
-> (CustomArtifactConfigurationDescription
-> Maybe ArtifactType -> CustomArtifactConfigurationDescription)
-> Lens
CustomArtifactConfigurationDescription
CustomArtifactConfigurationDescription
(Maybe ArtifactType)
(Maybe ArtifactType)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CustomArtifactConfigurationDescription' {Maybe ArtifactType
artifactType :: Maybe ArtifactType
$sel:artifactType:CustomArtifactConfigurationDescription' :: CustomArtifactConfigurationDescription -> Maybe ArtifactType
artifactType} -> Maybe ArtifactType
artifactType) (\s :: CustomArtifactConfigurationDescription
s@CustomArtifactConfigurationDescription' {} Maybe ArtifactType
a -> CustomArtifactConfigurationDescription
s {$sel:artifactType:CustomArtifactConfigurationDescription' :: Maybe ArtifactType
artifactType = Maybe ArtifactType
a} :: CustomArtifactConfigurationDescription)
instance
Core.FromJSON
CustomArtifactConfigurationDescription
where
parseJSON :: Value -> Parser CustomArtifactConfigurationDescription
parseJSON =
String
-> (Object -> Parser CustomArtifactConfigurationDescription)
-> Value
-> Parser CustomArtifactConfigurationDescription
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Core.withObject
String
"CustomArtifactConfigurationDescription"
( \Object
x ->
Maybe MavenReference
-> Maybe S3ContentLocation
-> Maybe ArtifactType
-> CustomArtifactConfigurationDescription
CustomArtifactConfigurationDescription'
(Maybe MavenReference
-> Maybe S3ContentLocation
-> Maybe ArtifactType
-> CustomArtifactConfigurationDescription)
-> Parser (Maybe MavenReference)
-> Parser
(Maybe S3ContentLocation
-> Maybe ArtifactType -> CustomArtifactConfigurationDescription)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Parser (Maybe MavenReference)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"MavenReferenceDescription")
Parser
(Maybe S3ContentLocation
-> Maybe ArtifactType -> CustomArtifactConfigurationDescription)
-> Parser (Maybe S3ContentLocation)
-> Parser
(Maybe ArtifactType -> CustomArtifactConfigurationDescription)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe S3ContentLocation)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"S3ContentLocationDescription")
Parser
(Maybe ArtifactType -> CustomArtifactConfigurationDescription)
-> Parser (Maybe ArtifactType)
-> Parser CustomArtifactConfigurationDescription
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe ArtifactType)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"ArtifactType")
)
instance
Prelude.Hashable
CustomArtifactConfigurationDescription
instance
Prelude.NFData
CustomArtifactConfigurationDescription