{-# 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.CustomerProfiles.Types.WorkflowAttributes where
import qualified Amazonka.Core as Core
import qualified Amazonka.Core.Lens.Internal as Lens
import Amazonka.CustomerProfiles.Types.AppflowIntegrationWorkflowAttributes
import qualified Amazonka.Data as Data
import qualified Amazonka.Prelude as Prelude
data WorkflowAttributes = WorkflowAttributes'
{
WorkflowAttributes -> Maybe AppflowIntegrationWorkflowAttributes
appflowIntegration :: Prelude.Maybe AppflowIntegrationWorkflowAttributes
}
deriving (WorkflowAttributes -> WorkflowAttributes -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: WorkflowAttributes -> WorkflowAttributes -> Bool
$c/= :: WorkflowAttributes -> WorkflowAttributes -> Bool
== :: WorkflowAttributes -> WorkflowAttributes -> Bool
$c== :: WorkflowAttributes -> WorkflowAttributes -> Bool
Prelude.Eq, ReadPrec [WorkflowAttributes]
ReadPrec WorkflowAttributes
Int -> ReadS WorkflowAttributes
ReadS [WorkflowAttributes]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [WorkflowAttributes]
$creadListPrec :: ReadPrec [WorkflowAttributes]
readPrec :: ReadPrec WorkflowAttributes
$creadPrec :: ReadPrec WorkflowAttributes
readList :: ReadS [WorkflowAttributes]
$creadList :: ReadS [WorkflowAttributes]
readsPrec :: Int -> ReadS WorkflowAttributes
$creadsPrec :: Int -> ReadS WorkflowAttributes
Prelude.Read, Int -> WorkflowAttributes -> ShowS
[WorkflowAttributes] -> ShowS
WorkflowAttributes -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [WorkflowAttributes] -> ShowS
$cshowList :: [WorkflowAttributes] -> ShowS
show :: WorkflowAttributes -> String
$cshow :: WorkflowAttributes -> String
showsPrec :: Int -> WorkflowAttributes -> ShowS
$cshowsPrec :: Int -> WorkflowAttributes -> ShowS
Prelude.Show, forall x. Rep WorkflowAttributes x -> WorkflowAttributes
forall x. WorkflowAttributes -> Rep WorkflowAttributes x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep WorkflowAttributes x -> WorkflowAttributes
$cfrom :: forall x. WorkflowAttributes -> Rep WorkflowAttributes x
Prelude.Generic)
newWorkflowAttributes ::
WorkflowAttributes
newWorkflowAttributes :: WorkflowAttributes
newWorkflowAttributes =
WorkflowAttributes'
{ $sel:appflowIntegration:WorkflowAttributes' :: Maybe AppflowIntegrationWorkflowAttributes
appflowIntegration =
forall a. Maybe a
Prelude.Nothing
}
workflowAttributes_appflowIntegration :: Lens.Lens' WorkflowAttributes (Prelude.Maybe AppflowIntegrationWorkflowAttributes)
workflowAttributes_appflowIntegration :: Lens'
WorkflowAttributes (Maybe AppflowIntegrationWorkflowAttributes)
workflowAttributes_appflowIntegration = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\WorkflowAttributes' {Maybe AppflowIntegrationWorkflowAttributes
appflowIntegration :: Maybe AppflowIntegrationWorkflowAttributes
$sel:appflowIntegration:WorkflowAttributes' :: WorkflowAttributes -> Maybe AppflowIntegrationWorkflowAttributes
appflowIntegration} -> Maybe AppflowIntegrationWorkflowAttributes
appflowIntegration) (\s :: WorkflowAttributes
s@WorkflowAttributes' {} Maybe AppflowIntegrationWorkflowAttributes
a -> WorkflowAttributes
s {$sel:appflowIntegration:WorkflowAttributes' :: Maybe AppflowIntegrationWorkflowAttributes
appflowIntegration = Maybe AppflowIntegrationWorkflowAttributes
a} :: WorkflowAttributes)
instance Data.FromJSON WorkflowAttributes where
parseJSON :: Value -> Parser WorkflowAttributes
parseJSON =
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Data.withObject
String
"WorkflowAttributes"
( \Object
x ->
Maybe AppflowIntegrationWorkflowAttributes -> WorkflowAttributes
WorkflowAttributes'
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
"AppflowIntegration")
)
instance Prelude.Hashable WorkflowAttributes where
hashWithSalt :: Int -> WorkflowAttributes -> Int
hashWithSalt Int
_salt WorkflowAttributes' {Maybe AppflowIntegrationWorkflowAttributes
appflowIntegration :: Maybe AppflowIntegrationWorkflowAttributes
$sel:appflowIntegration:WorkflowAttributes' :: WorkflowAttributes -> Maybe AppflowIntegrationWorkflowAttributes
..} =
Int
_salt forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe AppflowIntegrationWorkflowAttributes
appflowIntegration
instance Prelude.NFData WorkflowAttributes where
rnf :: WorkflowAttributes -> ()
rnf WorkflowAttributes' {Maybe AppflowIntegrationWorkflowAttributes
appflowIntegration :: Maybe AppflowIntegrationWorkflowAttributes
$sel:appflowIntegration:WorkflowAttributes' :: WorkflowAttributes -> Maybe AppflowIntegrationWorkflowAttributes
..} =
forall a. NFData a => a -> ()
Prelude.rnf Maybe AppflowIntegrationWorkflowAttributes
appflowIntegration