{-# 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.Blueprint where
import qualified Amazonka.Core as Core
import qualified Amazonka.Core.Lens.Internal as Lens
import qualified Amazonka.Data as Data
import Amazonka.Glue.Types.BlueprintStatus
import Amazonka.Glue.Types.LastActiveDefinition
import qualified Amazonka.Prelude as Prelude
data Blueprint = Blueprint'
{
Blueprint -> Maybe Text
blueprintLocation :: Prelude.Maybe Prelude.Text,
Blueprint -> Maybe Text
blueprintServiceLocation :: Prelude.Maybe Prelude.Text,
Blueprint -> Maybe POSIX
createdOn :: Prelude.Maybe Data.POSIX,
Blueprint -> Maybe Text
description :: Prelude.Maybe Prelude.Text,
Blueprint -> Maybe Text
errorMessage :: Prelude.Maybe Prelude.Text,
Blueprint -> Maybe LastActiveDefinition
lastActiveDefinition :: Prelude.Maybe LastActiveDefinition,
Blueprint -> Maybe POSIX
lastModifiedOn :: Prelude.Maybe Data.POSIX,
Blueprint -> Maybe Text
name :: Prelude.Maybe Prelude.Text,
Blueprint -> Maybe Text
parameterSpec :: Prelude.Maybe Prelude.Text,
Blueprint -> Maybe BlueprintStatus
status :: Prelude.Maybe BlueprintStatus
}
deriving (Blueprint -> Blueprint -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: Blueprint -> Blueprint -> Bool
$c/= :: Blueprint -> Blueprint -> Bool
== :: Blueprint -> Blueprint -> Bool
$c== :: Blueprint -> Blueprint -> Bool
Prelude.Eq, ReadPrec [Blueprint]
ReadPrec Blueprint
Int -> ReadS Blueprint
ReadS [Blueprint]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [Blueprint]
$creadListPrec :: ReadPrec [Blueprint]
readPrec :: ReadPrec Blueprint
$creadPrec :: ReadPrec Blueprint
readList :: ReadS [Blueprint]
$creadList :: ReadS [Blueprint]
readsPrec :: Int -> ReadS Blueprint
$creadsPrec :: Int -> ReadS Blueprint
Prelude.Read, Int -> Blueprint -> ShowS
[Blueprint] -> ShowS
Blueprint -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [Blueprint] -> ShowS
$cshowList :: [Blueprint] -> ShowS
show :: Blueprint -> String
$cshow :: Blueprint -> String
showsPrec :: Int -> Blueprint -> ShowS
$cshowsPrec :: Int -> Blueprint -> ShowS
Prelude.Show, forall x. Rep Blueprint x -> Blueprint
forall x. Blueprint -> Rep Blueprint x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep Blueprint x -> Blueprint
$cfrom :: forall x. Blueprint -> Rep Blueprint x
Prelude.Generic)
newBlueprint ::
Blueprint
newBlueprint :: Blueprint
newBlueprint =
Blueprint'
{ $sel:blueprintLocation:Blueprint' :: Maybe Text
blueprintLocation = forall a. Maybe a
Prelude.Nothing,
$sel:blueprintServiceLocation:Blueprint' :: Maybe Text
blueprintServiceLocation = forall a. Maybe a
Prelude.Nothing,
$sel:createdOn:Blueprint' :: Maybe POSIX
createdOn = forall a. Maybe a
Prelude.Nothing,
$sel:description:Blueprint' :: Maybe Text
description = forall a. Maybe a
Prelude.Nothing,
$sel:errorMessage:Blueprint' :: Maybe Text
errorMessage = forall a. Maybe a
Prelude.Nothing,
$sel:lastActiveDefinition:Blueprint' :: Maybe LastActiveDefinition
lastActiveDefinition = forall a. Maybe a
Prelude.Nothing,
$sel:lastModifiedOn:Blueprint' :: Maybe POSIX
lastModifiedOn = forall a. Maybe a
Prelude.Nothing,
$sel:name:Blueprint' :: Maybe Text
name = forall a. Maybe a
Prelude.Nothing,
$sel:parameterSpec:Blueprint' :: Maybe Text
parameterSpec = forall a. Maybe a
Prelude.Nothing,
$sel:status:Blueprint' :: Maybe BlueprintStatus
status = forall a. Maybe a
Prelude.Nothing
}
blueprint_blueprintLocation :: Lens.Lens' Blueprint (Prelude.Maybe Prelude.Text)
blueprint_blueprintLocation :: Lens' Blueprint (Maybe Text)
blueprint_blueprintLocation = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Blueprint' {Maybe Text
blueprintLocation :: Maybe Text
$sel:blueprintLocation:Blueprint' :: Blueprint -> Maybe Text
blueprintLocation} -> Maybe Text
blueprintLocation) (\s :: Blueprint
s@Blueprint' {} Maybe Text
a -> Blueprint
s {$sel:blueprintLocation:Blueprint' :: Maybe Text
blueprintLocation = Maybe Text
a} :: Blueprint)
blueprint_blueprintServiceLocation :: Lens.Lens' Blueprint (Prelude.Maybe Prelude.Text)
blueprint_blueprintServiceLocation :: Lens' Blueprint (Maybe Text)
blueprint_blueprintServiceLocation = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Blueprint' {Maybe Text
blueprintServiceLocation :: Maybe Text
$sel:blueprintServiceLocation:Blueprint' :: Blueprint -> Maybe Text
blueprintServiceLocation} -> Maybe Text
blueprintServiceLocation) (\s :: Blueprint
s@Blueprint' {} Maybe Text
a -> Blueprint
s {$sel:blueprintServiceLocation:Blueprint' :: Maybe Text
blueprintServiceLocation = Maybe Text
a} :: Blueprint)
blueprint_createdOn :: Lens.Lens' Blueprint (Prelude.Maybe Prelude.UTCTime)
blueprint_createdOn :: Lens' Blueprint (Maybe UTCTime)
blueprint_createdOn = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Blueprint' {Maybe POSIX
createdOn :: Maybe POSIX
$sel:createdOn:Blueprint' :: Blueprint -> Maybe POSIX
createdOn} -> Maybe POSIX
createdOn) (\s :: Blueprint
s@Blueprint' {} Maybe POSIX
a -> Blueprint
s {$sel:createdOn:Blueprint' :: Maybe POSIX
createdOn = Maybe POSIX
a} :: Blueprint) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping forall (a :: Format). Iso' (Time a) UTCTime
Data._Time
blueprint_description :: Lens.Lens' Blueprint (Prelude.Maybe Prelude.Text)
blueprint_description :: Lens' Blueprint (Maybe Text)
blueprint_description = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Blueprint' {Maybe Text
description :: Maybe Text
$sel:description:Blueprint' :: Blueprint -> Maybe Text
description} -> Maybe Text
description) (\s :: Blueprint
s@Blueprint' {} Maybe Text
a -> Blueprint
s {$sel:description:Blueprint' :: Maybe Text
description = Maybe Text
a} :: Blueprint)
blueprint_errorMessage :: Lens.Lens' Blueprint (Prelude.Maybe Prelude.Text)
blueprint_errorMessage :: Lens' Blueprint (Maybe Text)
blueprint_errorMessage = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Blueprint' {Maybe Text
errorMessage :: Maybe Text
$sel:errorMessage:Blueprint' :: Blueprint -> Maybe Text
errorMessage} -> Maybe Text
errorMessage) (\s :: Blueprint
s@Blueprint' {} Maybe Text
a -> Blueprint
s {$sel:errorMessage:Blueprint' :: Maybe Text
errorMessage = Maybe Text
a} :: Blueprint)
blueprint_lastActiveDefinition :: Lens.Lens' Blueprint (Prelude.Maybe LastActiveDefinition)
blueprint_lastActiveDefinition :: Lens' Blueprint (Maybe LastActiveDefinition)
blueprint_lastActiveDefinition = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Blueprint' {Maybe LastActiveDefinition
lastActiveDefinition :: Maybe LastActiveDefinition
$sel:lastActiveDefinition:Blueprint' :: Blueprint -> Maybe LastActiveDefinition
lastActiveDefinition} -> Maybe LastActiveDefinition
lastActiveDefinition) (\s :: Blueprint
s@Blueprint' {} Maybe LastActiveDefinition
a -> Blueprint
s {$sel:lastActiveDefinition:Blueprint' :: Maybe LastActiveDefinition
lastActiveDefinition = Maybe LastActiveDefinition
a} :: Blueprint)
blueprint_lastModifiedOn :: Lens.Lens' Blueprint (Prelude.Maybe Prelude.UTCTime)
blueprint_lastModifiedOn :: Lens' Blueprint (Maybe UTCTime)
blueprint_lastModifiedOn = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Blueprint' {Maybe POSIX
lastModifiedOn :: Maybe POSIX
$sel:lastModifiedOn:Blueprint' :: Blueprint -> Maybe POSIX
lastModifiedOn} -> Maybe POSIX
lastModifiedOn) (\s :: Blueprint
s@Blueprint' {} Maybe POSIX
a -> Blueprint
s {$sel:lastModifiedOn:Blueprint' :: Maybe POSIX
lastModifiedOn = Maybe POSIX
a} :: Blueprint) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping forall (a :: Format). Iso' (Time a) UTCTime
Data._Time
blueprint_name :: Lens.Lens' Blueprint (Prelude.Maybe Prelude.Text)
blueprint_name :: Lens' Blueprint (Maybe Text)
blueprint_name = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Blueprint' {Maybe Text
name :: Maybe Text
$sel:name:Blueprint' :: Blueprint -> Maybe Text
name} -> Maybe Text
name) (\s :: Blueprint
s@Blueprint' {} Maybe Text
a -> Blueprint
s {$sel:name:Blueprint' :: Maybe Text
name = Maybe Text
a} :: Blueprint)
blueprint_parameterSpec :: Lens.Lens' Blueprint (Prelude.Maybe Prelude.Text)
blueprint_parameterSpec :: Lens' Blueprint (Maybe Text)
blueprint_parameterSpec = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Blueprint' {Maybe Text
parameterSpec :: Maybe Text
$sel:parameterSpec:Blueprint' :: Blueprint -> Maybe Text
parameterSpec} -> Maybe Text
parameterSpec) (\s :: Blueprint
s@Blueprint' {} Maybe Text
a -> Blueprint
s {$sel:parameterSpec:Blueprint' :: Maybe Text
parameterSpec = Maybe Text
a} :: Blueprint)
blueprint_status :: Lens.Lens' Blueprint (Prelude.Maybe BlueprintStatus)
blueprint_status :: Lens' Blueprint (Maybe BlueprintStatus)
blueprint_status = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Blueprint' {Maybe BlueprintStatus
status :: Maybe BlueprintStatus
$sel:status:Blueprint' :: Blueprint -> Maybe BlueprintStatus
status} -> Maybe BlueprintStatus
status) (\s :: Blueprint
s@Blueprint' {} Maybe BlueprintStatus
a -> Blueprint
s {$sel:status:Blueprint' :: Maybe BlueprintStatus
status = Maybe BlueprintStatus
a} :: Blueprint)
instance Data.FromJSON Blueprint where
parseJSON :: Value -> Parser Blueprint
parseJSON =
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Data.withObject
String
"Blueprint"
( \Object
x ->
Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe LastActiveDefinition
-> Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe BlueprintStatus
-> Blueprint
Blueprint'
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"BlueprintLocation")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"BlueprintServiceLocation")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"CreatedOn")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"Description")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"ErrorMessage")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"LastActiveDefinition")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"LastModifiedOn")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"Name")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"ParameterSpec")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"Status")
)
instance Prelude.Hashable Blueprint where
hashWithSalt :: Int -> Blueprint -> Int
hashWithSalt Int
_salt Blueprint' {Maybe Text
Maybe POSIX
Maybe BlueprintStatus
Maybe LastActiveDefinition
status :: Maybe BlueprintStatus
parameterSpec :: Maybe Text
name :: Maybe Text
lastModifiedOn :: Maybe POSIX
lastActiveDefinition :: Maybe LastActiveDefinition
errorMessage :: Maybe Text
description :: Maybe Text
createdOn :: Maybe POSIX
blueprintServiceLocation :: Maybe Text
blueprintLocation :: Maybe Text
$sel:status:Blueprint' :: Blueprint -> Maybe BlueprintStatus
$sel:parameterSpec:Blueprint' :: Blueprint -> Maybe Text
$sel:name:Blueprint' :: Blueprint -> Maybe Text
$sel:lastModifiedOn:Blueprint' :: Blueprint -> Maybe POSIX
$sel:lastActiveDefinition:Blueprint' :: Blueprint -> Maybe LastActiveDefinition
$sel:errorMessage:Blueprint' :: Blueprint -> Maybe Text
$sel:description:Blueprint' :: Blueprint -> Maybe Text
$sel:createdOn:Blueprint' :: Blueprint -> Maybe POSIX
$sel:blueprintServiceLocation:Blueprint' :: Blueprint -> Maybe Text
$sel:blueprintLocation:Blueprint' :: Blueprint -> Maybe Text
..} =
Int
_salt
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
blueprintLocation
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
blueprintServiceLocation
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe POSIX
createdOn
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
description
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
errorMessage
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe LastActiveDefinition
lastActiveDefinition
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe POSIX
lastModifiedOn
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
name
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
parameterSpec
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe BlueprintStatus
status
instance Prelude.NFData Blueprint where
rnf :: Blueprint -> ()
rnf Blueprint' {Maybe Text
Maybe POSIX
Maybe BlueprintStatus
Maybe LastActiveDefinition
status :: Maybe BlueprintStatus
parameterSpec :: Maybe Text
name :: Maybe Text
lastModifiedOn :: Maybe POSIX
lastActiveDefinition :: Maybe LastActiveDefinition
errorMessage :: Maybe Text
description :: Maybe Text
createdOn :: Maybe POSIX
blueprintServiceLocation :: Maybe Text
blueprintLocation :: Maybe Text
$sel:status:Blueprint' :: Blueprint -> Maybe BlueprintStatus
$sel:parameterSpec:Blueprint' :: Blueprint -> Maybe Text
$sel:name:Blueprint' :: Blueprint -> Maybe Text
$sel:lastModifiedOn:Blueprint' :: Blueprint -> Maybe POSIX
$sel:lastActiveDefinition:Blueprint' :: Blueprint -> Maybe LastActiveDefinition
$sel:errorMessage:Blueprint' :: Blueprint -> Maybe Text
$sel:description:Blueprint' :: Blueprint -> Maybe Text
$sel:createdOn:Blueprint' :: Blueprint -> Maybe POSIX
$sel:blueprintServiceLocation:Blueprint' :: Blueprint -> Maybe Text
$sel:blueprintLocation:Blueprint' :: Blueprint -> Maybe Text
..} =
forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
blueprintLocation
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
blueprintServiceLocation
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe POSIX
createdOn
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
description
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
errorMessage
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe LastActiveDefinition
lastActiveDefinition
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe POSIX
lastModifiedOn
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
name
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
parameterSpec
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe BlueprintStatus
status