{-# 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.AppflowIntegrationWorkflowStep where
import qualified Amazonka.Core as Core
import qualified Amazonka.Core.Lens.Internal as Lens
import Amazonka.CustomerProfiles.Types.Status
import qualified Amazonka.Data as Data
import qualified Amazonka.Prelude as Prelude
data AppflowIntegrationWorkflowStep = AppflowIntegrationWorkflowStep'
{
AppflowIntegrationWorkflowStep -> Text
flowName :: Prelude.Text,
AppflowIntegrationWorkflowStep -> Status
status :: Status,
AppflowIntegrationWorkflowStep -> Text
executionMessage :: Prelude.Text,
AppflowIntegrationWorkflowStep -> Integer
recordsProcessed :: Prelude.Integer,
AppflowIntegrationWorkflowStep -> Text
batchRecordsStartTime :: Prelude.Text,
AppflowIntegrationWorkflowStep -> Text
batchRecordsEndTime :: Prelude.Text,
AppflowIntegrationWorkflowStep -> POSIX
createdAt :: Data.POSIX,
AppflowIntegrationWorkflowStep -> POSIX
lastUpdatedAt :: Data.POSIX
}
deriving (AppflowIntegrationWorkflowStep
-> AppflowIntegrationWorkflowStep -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: AppflowIntegrationWorkflowStep
-> AppflowIntegrationWorkflowStep -> Bool
$c/= :: AppflowIntegrationWorkflowStep
-> AppflowIntegrationWorkflowStep -> Bool
== :: AppflowIntegrationWorkflowStep
-> AppflowIntegrationWorkflowStep -> Bool
$c== :: AppflowIntegrationWorkflowStep
-> AppflowIntegrationWorkflowStep -> Bool
Prelude.Eq, ReadPrec [AppflowIntegrationWorkflowStep]
ReadPrec AppflowIntegrationWorkflowStep
Int -> ReadS AppflowIntegrationWorkflowStep
ReadS [AppflowIntegrationWorkflowStep]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [AppflowIntegrationWorkflowStep]
$creadListPrec :: ReadPrec [AppflowIntegrationWorkflowStep]
readPrec :: ReadPrec AppflowIntegrationWorkflowStep
$creadPrec :: ReadPrec AppflowIntegrationWorkflowStep
readList :: ReadS [AppflowIntegrationWorkflowStep]
$creadList :: ReadS [AppflowIntegrationWorkflowStep]
readsPrec :: Int -> ReadS AppflowIntegrationWorkflowStep
$creadsPrec :: Int -> ReadS AppflowIntegrationWorkflowStep
Prelude.Read, Int -> AppflowIntegrationWorkflowStep -> ShowS
[AppflowIntegrationWorkflowStep] -> ShowS
AppflowIntegrationWorkflowStep -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [AppflowIntegrationWorkflowStep] -> ShowS
$cshowList :: [AppflowIntegrationWorkflowStep] -> ShowS
show :: AppflowIntegrationWorkflowStep -> String
$cshow :: AppflowIntegrationWorkflowStep -> String
showsPrec :: Int -> AppflowIntegrationWorkflowStep -> ShowS
$cshowsPrec :: Int -> AppflowIntegrationWorkflowStep -> ShowS
Prelude.Show, forall x.
Rep AppflowIntegrationWorkflowStep x
-> AppflowIntegrationWorkflowStep
forall x.
AppflowIntegrationWorkflowStep
-> Rep AppflowIntegrationWorkflowStep x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep AppflowIntegrationWorkflowStep x
-> AppflowIntegrationWorkflowStep
$cfrom :: forall x.
AppflowIntegrationWorkflowStep
-> Rep AppflowIntegrationWorkflowStep x
Prelude.Generic)
newAppflowIntegrationWorkflowStep ::
Prelude.Text ->
Status ->
Prelude.Text ->
Prelude.Integer ->
Prelude.Text ->
Prelude.Text ->
Prelude.UTCTime ->
Prelude.UTCTime ->
AppflowIntegrationWorkflowStep
newAppflowIntegrationWorkflowStep :: Text
-> Status
-> Text
-> Integer
-> Text
-> Text
-> UTCTime
-> UTCTime
-> AppflowIntegrationWorkflowStep
newAppflowIntegrationWorkflowStep
Text
pFlowName_
Status
pStatus_
Text
pExecutionMessage_
Integer
pRecordsProcessed_
Text
pBatchRecordsStartTime_
Text
pBatchRecordsEndTime_
UTCTime
pCreatedAt_
UTCTime
pLastUpdatedAt_ =
AppflowIntegrationWorkflowStep'
{ $sel:flowName:AppflowIntegrationWorkflowStep' :: Text
flowName =
Text
pFlowName_,
$sel:status:AppflowIntegrationWorkflowStep' :: Status
status = Status
pStatus_,
$sel:executionMessage:AppflowIntegrationWorkflowStep' :: Text
executionMessage = Text
pExecutionMessage_,
$sel:recordsProcessed:AppflowIntegrationWorkflowStep' :: Integer
recordsProcessed = Integer
pRecordsProcessed_,
$sel:batchRecordsStartTime:AppflowIntegrationWorkflowStep' :: Text
batchRecordsStartTime =
Text
pBatchRecordsStartTime_,
$sel:batchRecordsEndTime:AppflowIntegrationWorkflowStep' :: Text
batchRecordsEndTime = Text
pBatchRecordsEndTime_,
$sel:createdAt:AppflowIntegrationWorkflowStep' :: POSIX
createdAt = forall (a :: Format). Iso' (Time a) UTCTime
Data._Time forall t b. AReview t b -> b -> t
Lens.# UTCTime
pCreatedAt_,
$sel:lastUpdatedAt:AppflowIntegrationWorkflowStep' :: POSIX
lastUpdatedAt =
forall (a :: Format). Iso' (Time a) UTCTime
Data._Time forall t b. AReview t b -> b -> t
Lens.# UTCTime
pLastUpdatedAt_
}
appflowIntegrationWorkflowStep_flowName :: Lens.Lens' AppflowIntegrationWorkflowStep Prelude.Text
appflowIntegrationWorkflowStep_flowName :: Lens' AppflowIntegrationWorkflowStep Text
appflowIntegrationWorkflowStep_flowName = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AppflowIntegrationWorkflowStep' {Text
flowName :: Text
$sel:flowName:AppflowIntegrationWorkflowStep' :: AppflowIntegrationWorkflowStep -> Text
flowName} -> Text
flowName) (\s :: AppflowIntegrationWorkflowStep
s@AppflowIntegrationWorkflowStep' {} Text
a -> AppflowIntegrationWorkflowStep
s {$sel:flowName:AppflowIntegrationWorkflowStep' :: Text
flowName = Text
a} :: AppflowIntegrationWorkflowStep)
appflowIntegrationWorkflowStep_status :: Lens.Lens' AppflowIntegrationWorkflowStep Status
appflowIntegrationWorkflowStep_status :: Lens' AppflowIntegrationWorkflowStep Status
appflowIntegrationWorkflowStep_status = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AppflowIntegrationWorkflowStep' {Status
status :: Status
$sel:status:AppflowIntegrationWorkflowStep' :: AppflowIntegrationWorkflowStep -> Status
status} -> Status
status) (\s :: AppflowIntegrationWorkflowStep
s@AppflowIntegrationWorkflowStep' {} Status
a -> AppflowIntegrationWorkflowStep
s {$sel:status:AppflowIntegrationWorkflowStep' :: Status
status = Status
a} :: AppflowIntegrationWorkflowStep)
appflowIntegrationWorkflowStep_executionMessage :: Lens.Lens' AppflowIntegrationWorkflowStep Prelude.Text
appflowIntegrationWorkflowStep_executionMessage :: Lens' AppflowIntegrationWorkflowStep Text
appflowIntegrationWorkflowStep_executionMessage = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AppflowIntegrationWorkflowStep' {Text
executionMessage :: Text
$sel:executionMessage:AppflowIntegrationWorkflowStep' :: AppflowIntegrationWorkflowStep -> Text
executionMessage} -> Text
executionMessage) (\s :: AppflowIntegrationWorkflowStep
s@AppflowIntegrationWorkflowStep' {} Text
a -> AppflowIntegrationWorkflowStep
s {$sel:executionMessage:AppflowIntegrationWorkflowStep' :: Text
executionMessage = Text
a} :: AppflowIntegrationWorkflowStep)
appflowIntegrationWorkflowStep_recordsProcessed :: Lens.Lens' AppflowIntegrationWorkflowStep Prelude.Integer
appflowIntegrationWorkflowStep_recordsProcessed :: Lens' AppflowIntegrationWorkflowStep Integer
appflowIntegrationWorkflowStep_recordsProcessed = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AppflowIntegrationWorkflowStep' {Integer
recordsProcessed :: Integer
$sel:recordsProcessed:AppflowIntegrationWorkflowStep' :: AppflowIntegrationWorkflowStep -> Integer
recordsProcessed} -> Integer
recordsProcessed) (\s :: AppflowIntegrationWorkflowStep
s@AppflowIntegrationWorkflowStep' {} Integer
a -> AppflowIntegrationWorkflowStep
s {$sel:recordsProcessed:AppflowIntegrationWorkflowStep' :: Integer
recordsProcessed = Integer
a} :: AppflowIntegrationWorkflowStep)
appflowIntegrationWorkflowStep_batchRecordsStartTime :: Lens.Lens' AppflowIntegrationWorkflowStep Prelude.Text
appflowIntegrationWorkflowStep_batchRecordsStartTime :: Lens' AppflowIntegrationWorkflowStep Text
appflowIntegrationWorkflowStep_batchRecordsStartTime = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AppflowIntegrationWorkflowStep' {Text
batchRecordsStartTime :: Text
$sel:batchRecordsStartTime:AppflowIntegrationWorkflowStep' :: AppflowIntegrationWorkflowStep -> Text
batchRecordsStartTime} -> Text
batchRecordsStartTime) (\s :: AppflowIntegrationWorkflowStep
s@AppflowIntegrationWorkflowStep' {} Text
a -> AppflowIntegrationWorkflowStep
s {$sel:batchRecordsStartTime:AppflowIntegrationWorkflowStep' :: Text
batchRecordsStartTime = Text
a} :: AppflowIntegrationWorkflowStep)
appflowIntegrationWorkflowStep_batchRecordsEndTime :: Lens.Lens' AppflowIntegrationWorkflowStep Prelude.Text
appflowIntegrationWorkflowStep_batchRecordsEndTime :: Lens' AppflowIntegrationWorkflowStep Text
appflowIntegrationWorkflowStep_batchRecordsEndTime = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AppflowIntegrationWorkflowStep' {Text
batchRecordsEndTime :: Text
$sel:batchRecordsEndTime:AppflowIntegrationWorkflowStep' :: AppflowIntegrationWorkflowStep -> Text
batchRecordsEndTime} -> Text
batchRecordsEndTime) (\s :: AppflowIntegrationWorkflowStep
s@AppflowIntegrationWorkflowStep' {} Text
a -> AppflowIntegrationWorkflowStep
s {$sel:batchRecordsEndTime:AppflowIntegrationWorkflowStep' :: Text
batchRecordsEndTime = Text
a} :: AppflowIntegrationWorkflowStep)
appflowIntegrationWorkflowStep_createdAt :: Lens.Lens' AppflowIntegrationWorkflowStep Prelude.UTCTime
appflowIntegrationWorkflowStep_createdAt :: Lens' AppflowIntegrationWorkflowStep UTCTime
appflowIntegrationWorkflowStep_createdAt = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AppflowIntegrationWorkflowStep' {POSIX
createdAt :: POSIX
$sel:createdAt:AppflowIntegrationWorkflowStep' :: AppflowIntegrationWorkflowStep -> POSIX
createdAt} -> POSIX
createdAt) (\s :: AppflowIntegrationWorkflowStep
s@AppflowIntegrationWorkflowStep' {} POSIX
a -> AppflowIntegrationWorkflowStep
s {$sel:createdAt:AppflowIntegrationWorkflowStep' :: POSIX
createdAt = POSIX
a} :: AppflowIntegrationWorkflowStep) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall (a :: Format). Iso' (Time a) UTCTime
Data._Time
appflowIntegrationWorkflowStep_lastUpdatedAt :: Lens.Lens' AppflowIntegrationWorkflowStep Prelude.UTCTime
appflowIntegrationWorkflowStep_lastUpdatedAt :: Lens' AppflowIntegrationWorkflowStep UTCTime
appflowIntegrationWorkflowStep_lastUpdatedAt = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AppflowIntegrationWorkflowStep' {POSIX
lastUpdatedAt :: POSIX
$sel:lastUpdatedAt:AppflowIntegrationWorkflowStep' :: AppflowIntegrationWorkflowStep -> POSIX
lastUpdatedAt} -> POSIX
lastUpdatedAt) (\s :: AppflowIntegrationWorkflowStep
s@AppflowIntegrationWorkflowStep' {} POSIX
a -> AppflowIntegrationWorkflowStep
s {$sel:lastUpdatedAt:AppflowIntegrationWorkflowStep' :: POSIX
lastUpdatedAt = POSIX
a} :: AppflowIntegrationWorkflowStep) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall (a :: Format). Iso' (Time a) UTCTime
Data._Time
instance Data.FromJSON AppflowIntegrationWorkflowStep where
parseJSON :: Value -> Parser AppflowIntegrationWorkflowStep
parseJSON =
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Data.withObject
String
"AppflowIntegrationWorkflowStep"
( \Object
x ->
Text
-> Status
-> Text
-> Integer
-> Text
-> Text
-> POSIX
-> POSIX
-> AppflowIntegrationWorkflowStep
AppflowIntegrationWorkflowStep'
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x forall a. FromJSON a => Object -> Key -> Parser a
Data..: Key
"FlowName")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser a
Data..: Key
"Status")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser a
Data..: Key
"ExecutionMessage")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser a
Data..: Key
"RecordsProcessed")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser a
Data..: Key
"BatchRecordsStartTime")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser a
Data..: Key
"BatchRecordsEndTime")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser a
Data..: Key
"CreatedAt")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser a
Data..: Key
"LastUpdatedAt")
)
instance
Prelude.Hashable
AppflowIntegrationWorkflowStep
where
hashWithSalt :: Int -> AppflowIntegrationWorkflowStep -> Int
hashWithSalt
Int
_salt
AppflowIntegrationWorkflowStep' {Integer
Text
POSIX
Status
lastUpdatedAt :: POSIX
createdAt :: POSIX
batchRecordsEndTime :: Text
batchRecordsStartTime :: Text
recordsProcessed :: Integer
executionMessage :: Text
status :: Status
flowName :: Text
$sel:lastUpdatedAt:AppflowIntegrationWorkflowStep' :: AppflowIntegrationWorkflowStep -> POSIX
$sel:createdAt:AppflowIntegrationWorkflowStep' :: AppflowIntegrationWorkflowStep -> POSIX
$sel:batchRecordsEndTime:AppflowIntegrationWorkflowStep' :: AppflowIntegrationWorkflowStep -> Text
$sel:batchRecordsStartTime:AppflowIntegrationWorkflowStep' :: AppflowIntegrationWorkflowStep -> Text
$sel:recordsProcessed:AppflowIntegrationWorkflowStep' :: AppflowIntegrationWorkflowStep -> Integer
$sel:executionMessage:AppflowIntegrationWorkflowStep' :: AppflowIntegrationWorkflowStep -> Text
$sel:status:AppflowIntegrationWorkflowStep' :: AppflowIntegrationWorkflowStep -> Status
$sel:flowName:AppflowIntegrationWorkflowStep' :: AppflowIntegrationWorkflowStep -> Text
..} =
Int
_salt
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Text
flowName
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Status
status
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Text
executionMessage
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Integer
recordsProcessed
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Text
batchRecordsStartTime
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Text
batchRecordsEndTime
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` POSIX
createdAt
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` POSIX
lastUpdatedAt
instance
Prelude.NFData
AppflowIntegrationWorkflowStep
where
rnf :: AppflowIntegrationWorkflowStep -> ()
rnf AppflowIntegrationWorkflowStep' {Integer
Text
POSIX
Status
lastUpdatedAt :: POSIX
createdAt :: POSIX
batchRecordsEndTime :: Text
batchRecordsStartTime :: Text
recordsProcessed :: Integer
executionMessage :: Text
status :: Status
flowName :: Text
$sel:lastUpdatedAt:AppflowIntegrationWorkflowStep' :: AppflowIntegrationWorkflowStep -> POSIX
$sel:createdAt:AppflowIntegrationWorkflowStep' :: AppflowIntegrationWorkflowStep -> POSIX
$sel:batchRecordsEndTime:AppflowIntegrationWorkflowStep' :: AppflowIntegrationWorkflowStep -> Text
$sel:batchRecordsStartTime:AppflowIntegrationWorkflowStep' :: AppflowIntegrationWorkflowStep -> Text
$sel:recordsProcessed:AppflowIntegrationWorkflowStep' :: AppflowIntegrationWorkflowStep -> Integer
$sel:executionMessage:AppflowIntegrationWorkflowStep' :: AppflowIntegrationWorkflowStep -> Text
$sel:status:AppflowIntegrationWorkflowStep' :: AppflowIntegrationWorkflowStep -> Status
$sel:flowName:AppflowIntegrationWorkflowStep' :: AppflowIntegrationWorkflowStep -> Text
..} =
forall a. NFData a => a -> ()
Prelude.rnf Text
flowName
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Status
status
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Text
executionMessage
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Integer
recordsProcessed
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Text
batchRecordsStartTime
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Text
batchRecordsEndTime
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf POSIX
createdAt
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf POSIX
lastUpdatedAt