{-# 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 #-}

-- Derived from AWS service descriptions, licensed under Apache 2.0.

-- |
-- Module      : Amazonka.Pinpoint.Types.ActivityResponse
-- Copyright   : (c) 2013-2023 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
module Amazonka.Pinpoint.Types.ActivityResponse where

import qualified Amazonka.Core as Core
import qualified Amazonka.Core.Lens.Internal as Lens
import qualified Amazonka.Data as Data
import qualified Amazonka.Prelude as Prelude

-- | Provides information about an activity that was performed by a campaign.
--
-- /See:/ 'newActivityResponse' smart constructor.
data ActivityResponse = ActivityResponse'
  { -- | The actual time, in ISO 8601 format, when the activity was marked
    -- CANCELLED or COMPLETED.
    ActivityResponse -> Maybe Text
end :: Prelude.Maybe Prelude.Text,
    -- | Specifies whether the activity succeeded. Possible values are SUCCESS
    -- and FAIL.
    ActivityResponse -> Maybe Text
result :: Prelude.Maybe Prelude.Text,
    -- | The scheduled start time, in ISO 8601 format, for the activity.
    ActivityResponse -> Maybe Text
scheduledStart :: Prelude.Maybe Prelude.Text,
    -- | The actual start time, in ISO 8601 format, of the activity.
    ActivityResponse -> Maybe Text
start :: Prelude.Maybe Prelude.Text,
    -- | The current status of the activity. Possible values are: PENDING,
    -- INITIALIZING, RUNNING, PAUSED, CANCELLED, and COMPLETED.
    ActivityResponse -> Maybe Text
state :: Prelude.Maybe Prelude.Text,
    -- | The total number of endpoints that the campaign successfully delivered
    -- messages to.
    ActivityResponse -> Maybe Int
successfulEndpointCount :: Prelude.Maybe Prelude.Int,
    -- | The total number of time zones that were completed.
    ActivityResponse -> Maybe Int
timezonesCompletedCount :: Prelude.Maybe Prelude.Int,
    -- | The total number of unique time zones that are in the segment for the
    -- campaign.
    ActivityResponse -> Maybe Int
timezonesTotalCount :: Prelude.Maybe Prelude.Int,
    -- | The total number of endpoints that the campaign attempted to deliver
    -- messages to.
    ActivityResponse -> Maybe Int
totalEndpointCount :: Prelude.Maybe Prelude.Int,
    -- | The unique identifier for the campaign treatment that the activity
    -- applies to. A treatment is a variation of a campaign that\'s used for
    -- A\/B testing of a campaign.
    ActivityResponse -> Maybe Text
treatmentId :: Prelude.Maybe Prelude.Text,
    -- | The unique identifier for the campaign that the activity applies to.
    ActivityResponse -> Text
campaignId :: Prelude.Text,
    -- | The unique identifier for the activity.
    ActivityResponse -> Text
id :: Prelude.Text,
    -- | The unique identifier for the application that the campaign applies to.
    ActivityResponse -> Text
applicationId :: Prelude.Text
  }
  deriving (ActivityResponse -> ActivityResponse -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ActivityResponse -> ActivityResponse -> Bool
$c/= :: ActivityResponse -> ActivityResponse -> Bool
== :: ActivityResponse -> ActivityResponse -> Bool
$c== :: ActivityResponse -> ActivityResponse -> Bool
Prelude.Eq, ReadPrec [ActivityResponse]
ReadPrec ActivityResponse
Int -> ReadS ActivityResponse
ReadS [ActivityResponse]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ActivityResponse]
$creadListPrec :: ReadPrec [ActivityResponse]
readPrec :: ReadPrec ActivityResponse
$creadPrec :: ReadPrec ActivityResponse
readList :: ReadS [ActivityResponse]
$creadList :: ReadS [ActivityResponse]
readsPrec :: Int -> ReadS ActivityResponse
$creadsPrec :: Int -> ReadS ActivityResponse
Prelude.Read, Int -> ActivityResponse -> ShowS
[ActivityResponse] -> ShowS
ActivityResponse -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ActivityResponse] -> ShowS
$cshowList :: [ActivityResponse] -> ShowS
show :: ActivityResponse -> String
$cshow :: ActivityResponse -> String
showsPrec :: Int -> ActivityResponse -> ShowS
$cshowsPrec :: Int -> ActivityResponse -> ShowS
Prelude.Show, forall x. Rep ActivityResponse x -> ActivityResponse
forall x. ActivityResponse -> Rep ActivityResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ActivityResponse x -> ActivityResponse
$cfrom :: forall x. ActivityResponse -> Rep ActivityResponse x
Prelude.Generic)

-- |
-- Create a value of 'ActivityResponse' with all optional fields omitted.
--
-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.
--
-- The following record fields are available, with the corresponding lenses provided
-- for backwards compatibility:
--
-- 'end', 'activityResponse_end' - The actual time, in ISO 8601 format, when the activity was marked
-- CANCELLED or COMPLETED.
--
-- 'result', 'activityResponse_result' - Specifies whether the activity succeeded. Possible values are SUCCESS
-- and FAIL.
--
-- 'scheduledStart', 'activityResponse_scheduledStart' - The scheduled start time, in ISO 8601 format, for the activity.
--
-- 'start', 'activityResponse_start' - The actual start time, in ISO 8601 format, of the activity.
--
-- 'state', 'activityResponse_state' - The current status of the activity. Possible values are: PENDING,
-- INITIALIZING, RUNNING, PAUSED, CANCELLED, and COMPLETED.
--
-- 'successfulEndpointCount', 'activityResponse_successfulEndpointCount' - The total number of endpoints that the campaign successfully delivered
-- messages to.
--
-- 'timezonesCompletedCount', 'activityResponse_timezonesCompletedCount' - The total number of time zones that were completed.
--
-- 'timezonesTotalCount', 'activityResponse_timezonesTotalCount' - The total number of unique time zones that are in the segment for the
-- campaign.
--
-- 'totalEndpointCount', 'activityResponse_totalEndpointCount' - The total number of endpoints that the campaign attempted to deliver
-- messages to.
--
-- 'treatmentId', 'activityResponse_treatmentId' - The unique identifier for the campaign treatment that the activity
-- applies to. A treatment is a variation of a campaign that\'s used for
-- A\/B testing of a campaign.
--
-- 'campaignId', 'activityResponse_campaignId' - The unique identifier for the campaign that the activity applies to.
--
-- 'id', 'activityResponse_id' - The unique identifier for the activity.
--
-- 'applicationId', 'activityResponse_applicationId' - The unique identifier for the application that the campaign applies to.
newActivityResponse ::
  -- | 'campaignId'
  Prelude.Text ->
  -- | 'id'
  Prelude.Text ->
  -- | 'applicationId'
  Prelude.Text ->
  ActivityResponse
newActivityResponse :: Text -> Text -> Text -> ActivityResponse
newActivityResponse Text
pCampaignId_ Text
pId_ Text
pApplicationId_ =
  ActivityResponse'
    { $sel:end:ActivityResponse' :: Maybe Text
end = forall a. Maybe a
Prelude.Nothing,
      $sel:result:ActivityResponse' :: Maybe Text
result = forall a. Maybe a
Prelude.Nothing,
      $sel:scheduledStart:ActivityResponse' :: Maybe Text
scheduledStart = forall a. Maybe a
Prelude.Nothing,
      $sel:start:ActivityResponse' :: Maybe Text
start = forall a. Maybe a
Prelude.Nothing,
      $sel:state:ActivityResponse' :: Maybe Text
state = forall a. Maybe a
Prelude.Nothing,
      $sel:successfulEndpointCount:ActivityResponse' :: Maybe Int
successfulEndpointCount = forall a. Maybe a
Prelude.Nothing,
      $sel:timezonesCompletedCount:ActivityResponse' :: Maybe Int
timezonesCompletedCount = forall a. Maybe a
Prelude.Nothing,
      $sel:timezonesTotalCount:ActivityResponse' :: Maybe Int
timezonesTotalCount = forall a. Maybe a
Prelude.Nothing,
      $sel:totalEndpointCount:ActivityResponse' :: Maybe Int
totalEndpointCount = forall a. Maybe a
Prelude.Nothing,
      $sel:treatmentId:ActivityResponse' :: Maybe Text
treatmentId = forall a. Maybe a
Prelude.Nothing,
      $sel:campaignId:ActivityResponse' :: Text
campaignId = Text
pCampaignId_,
      $sel:id:ActivityResponse' :: Text
id = Text
pId_,
      $sel:applicationId:ActivityResponse' :: Text
applicationId = Text
pApplicationId_
    }

-- | The actual time, in ISO 8601 format, when the activity was marked
-- CANCELLED or COMPLETED.
activityResponse_end :: Lens.Lens' ActivityResponse (Prelude.Maybe Prelude.Text)
activityResponse_end :: Lens' ActivityResponse (Maybe Text)
activityResponse_end = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ActivityResponse' {Maybe Text
end :: Maybe Text
$sel:end:ActivityResponse' :: ActivityResponse -> Maybe Text
end} -> Maybe Text
end) (\s :: ActivityResponse
s@ActivityResponse' {} Maybe Text
a -> ActivityResponse
s {$sel:end:ActivityResponse' :: Maybe Text
end = Maybe Text
a} :: ActivityResponse)

-- | Specifies whether the activity succeeded. Possible values are SUCCESS
-- and FAIL.
activityResponse_result :: Lens.Lens' ActivityResponse (Prelude.Maybe Prelude.Text)
activityResponse_result :: Lens' ActivityResponse (Maybe Text)
activityResponse_result = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ActivityResponse' {Maybe Text
result :: Maybe Text
$sel:result:ActivityResponse' :: ActivityResponse -> Maybe Text
result} -> Maybe Text
result) (\s :: ActivityResponse
s@ActivityResponse' {} Maybe Text
a -> ActivityResponse
s {$sel:result:ActivityResponse' :: Maybe Text
result = Maybe Text
a} :: ActivityResponse)

-- | The scheduled start time, in ISO 8601 format, for the activity.
activityResponse_scheduledStart :: Lens.Lens' ActivityResponse (Prelude.Maybe Prelude.Text)
activityResponse_scheduledStart :: Lens' ActivityResponse (Maybe Text)
activityResponse_scheduledStart = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ActivityResponse' {Maybe Text
scheduledStart :: Maybe Text
$sel:scheduledStart:ActivityResponse' :: ActivityResponse -> Maybe Text
scheduledStart} -> Maybe Text
scheduledStart) (\s :: ActivityResponse
s@ActivityResponse' {} Maybe Text
a -> ActivityResponse
s {$sel:scheduledStart:ActivityResponse' :: Maybe Text
scheduledStart = Maybe Text
a} :: ActivityResponse)

-- | The actual start time, in ISO 8601 format, of the activity.
activityResponse_start :: Lens.Lens' ActivityResponse (Prelude.Maybe Prelude.Text)
activityResponse_start :: Lens' ActivityResponse (Maybe Text)
activityResponse_start = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ActivityResponse' {Maybe Text
start :: Maybe Text
$sel:start:ActivityResponse' :: ActivityResponse -> Maybe Text
start} -> Maybe Text
start) (\s :: ActivityResponse
s@ActivityResponse' {} Maybe Text
a -> ActivityResponse
s {$sel:start:ActivityResponse' :: Maybe Text
start = Maybe Text
a} :: ActivityResponse)

-- | The current status of the activity. Possible values are: PENDING,
-- INITIALIZING, RUNNING, PAUSED, CANCELLED, and COMPLETED.
activityResponse_state :: Lens.Lens' ActivityResponse (Prelude.Maybe Prelude.Text)
activityResponse_state :: Lens' ActivityResponse (Maybe Text)
activityResponse_state = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ActivityResponse' {Maybe Text
state :: Maybe Text
$sel:state:ActivityResponse' :: ActivityResponse -> Maybe Text
state} -> Maybe Text
state) (\s :: ActivityResponse
s@ActivityResponse' {} Maybe Text
a -> ActivityResponse
s {$sel:state:ActivityResponse' :: Maybe Text
state = Maybe Text
a} :: ActivityResponse)

-- | The total number of endpoints that the campaign successfully delivered
-- messages to.
activityResponse_successfulEndpointCount :: Lens.Lens' ActivityResponse (Prelude.Maybe Prelude.Int)
activityResponse_successfulEndpointCount :: Lens' ActivityResponse (Maybe Int)
activityResponse_successfulEndpointCount = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ActivityResponse' {Maybe Int
successfulEndpointCount :: Maybe Int
$sel:successfulEndpointCount:ActivityResponse' :: ActivityResponse -> Maybe Int
successfulEndpointCount} -> Maybe Int
successfulEndpointCount) (\s :: ActivityResponse
s@ActivityResponse' {} Maybe Int
a -> ActivityResponse
s {$sel:successfulEndpointCount:ActivityResponse' :: Maybe Int
successfulEndpointCount = Maybe Int
a} :: ActivityResponse)

-- | The total number of time zones that were completed.
activityResponse_timezonesCompletedCount :: Lens.Lens' ActivityResponse (Prelude.Maybe Prelude.Int)
activityResponse_timezonesCompletedCount :: Lens' ActivityResponse (Maybe Int)
activityResponse_timezonesCompletedCount = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ActivityResponse' {Maybe Int
timezonesCompletedCount :: Maybe Int
$sel:timezonesCompletedCount:ActivityResponse' :: ActivityResponse -> Maybe Int
timezonesCompletedCount} -> Maybe Int
timezonesCompletedCount) (\s :: ActivityResponse
s@ActivityResponse' {} Maybe Int
a -> ActivityResponse
s {$sel:timezonesCompletedCount:ActivityResponse' :: Maybe Int
timezonesCompletedCount = Maybe Int
a} :: ActivityResponse)

-- | The total number of unique time zones that are in the segment for the
-- campaign.
activityResponse_timezonesTotalCount :: Lens.Lens' ActivityResponse (Prelude.Maybe Prelude.Int)
activityResponse_timezonesTotalCount :: Lens' ActivityResponse (Maybe Int)
activityResponse_timezonesTotalCount = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ActivityResponse' {Maybe Int
timezonesTotalCount :: Maybe Int
$sel:timezonesTotalCount:ActivityResponse' :: ActivityResponse -> Maybe Int
timezonesTotalCount} -> Maybe Int
timezonesTotalCount) (\s :: ActivityResponse
s@ActivityResponse' {} Maybe Int
a -> ActivityResponse
s {$sel:timezonesTotalCount:ActivityResponse' :: Maybe Int
timezonesTotalCount = Maybe Int
a} :: ActivityResponse)

-- | The total number of endpoints that the campaign attempted to deliver
-- messages to.
activityResponse_totalEndpointCount :: Lens.Lens' ActivityResponse (Prelude.Maybe Prelude.Int)
activityResponse_totalEndpointCount :: Lens' ActivityResponse (Maybe Int)
activityResponse_totalEndpointCount = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ActivityResponse' {Maybe Int
totalEndpointCount :: Maybe Int
$sel:totalEndpointCount:ActivityResponse' :: ActivityResponse -> Maybe Int
totalEndpointCount} -> Maybe Int
totalEndpointCount) (\s :: ActivityResponse
s@ActivityResponse' {} Maybe Int
a -> ActivityResponse
s {$sel:totalEndpointCount:ActivityResponse' :: Maybe Int
totalEndpointCount = Maybe Int
a} :: ActivityResponse)

-- | The unique identifier for the campaign treatment that the activity
-- applies to. A treatment is a variation of a campaign that\'s used for
-- A\/B testing of a campaign.
activityResponse_treatmentId :: Lens.Lens' ActivityResponse (Prelude.Maybe Prelude.Text)
activityResponse_treatmentId :: Lens' ActivityResponse (Maybe Text)
activityResponse_treatmentId = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ActivityResponse' {Maybe Text
treatmentId :: Maybe Text
$sel:treatmentId:ActivityResponse' :: ActivityResponse -> Maybe Text
treatmentId} -> Maybe Text
treatmentId) (\s :: ActivityResponse
s@ActivityResponse' {} Maybe Text
a -> ActivityResponse
s {$sel:treatmentId:ActivityResponse' :: Maybe Text
treatmentId = Maybe Text
a} :: ActivityResponse)

-- | The unique identifier for the campaign that the activity applies to.
activityResponse_campaignId :: Lens.Lens' ActivityResponse Prelude.Text
activityResponse_campaignId :: Lens' ActivityResponse Text
activityResponse_campaignId = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ActivityResponse' {Text
campaignId :: Text
$sel:campaignId:ActivityResponse' :: ActivityResponse -> Text
campaignId} -> Text
campaignId) (\s :: ActivityResponse
s@ActivityResponse' {} Text
a -> ActivityResponse
s {$sel:campaignId:ActivityResponse' :: Text
campaignId = Text
a} :: ActivityResponse)

-- | The unique identifier for the activity.
activityResponse_id :: Lens.Lens' ActivityResponse Prelude.Text
activityResponse_id :: Lens' ActivityResponse Text
activityResponse_id = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ActivityResponse' {Text
id :: Text
$sel:id:ActivityResponse' :: ActivityResponse -> Text
id} -> Text
id) (\s :: ActivityResponse
s@ActivityResponse' {} Text
a -> ActivityResponse
s {$sel:id:ActivityResponse' :: Text
id = Text
a} :: ActivityResponse)

-- | The unique identifier for the application that the campaign applies to.
activityResponse_applicationId :: Lens.Lens' ActivityResponse Prelude.Text
activityResponse_applicationId :: Lens' ActivityResponse Text
activityResponse_applicationId = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ActivityResponse' {Text
applicationId :: Text
$sel:applicationId:ActivityResponse' :: ActivityResponse -> Text
applicationId} -> Text
applicationId) (\s :: ActivityResponse
s@ActivityResponse' {} Text
a -> ActivityResponse
s {$sel:applicationId:ActivityResponse' :: Text
applicationId = Text
a} :: ActivityResponse)

instance Data.FromJSON ActivityResponse where
  parseJSON :: Value -> Parser ActivityResponse
parseJSON =
    forall a. String -> (Object -> Parser a) -> Value -> Parser a
Data.withObject
      String
"ActivityResponse"
      ( \Object
x ->
          Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Int
-> Maybe Int
-> Maybe Int
-> Maybe Int
-> Maybe Text
-> Text
-> Text
-> Text
-> ActivityResponse
ActivityResponse'
            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
"End")
            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
"Result")
            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
"ScheduledStart")
            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
"Start")
            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
"State")
            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
"SuccessfulEndpointCount")
            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
"TimezonesCompletedCount")
            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
"TimezonesTotalCount")
            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
"TotalEndpointCount")
            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
"TreatmentId")
            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
"CampaignId")
            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
"Id")
            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
"ApplicationId")
      )

instance Prelude.Hashable ActivityResponse where
  hashWithSalt :: Int -> ActivityResponse -> Int
hashWithSalt Int
_salt ActivityResponse' {Maybe Int
Maybe Text
Text
applicationId :: Text
id :: Text
campaignId :: Text
treatmentId :: Maybe Text
totalEndpointCount :: Maybe Int
timezonesTotalCount :: Maybe Int
timezonesCompletedCount :: Maybe Int
successfulEndpointCount :: Maybe Int
state :: Maybe Text
start :: Maybe Text
scheduledStart :: Maybe Text
result :: Maybe Text
end :: Maybe Text
$sel:applicationId:ActivityResponse' :: ActivityResponse -> Text
$sel:id:ActivityResponse' :: ActivityResponse -> Text
$sel:campaignId:ActivityResponse' :: ActivityResponse -> Text
$sel:treatmentId:ActivityResponse' :: ActivityResponse -> Maybe Text
$sel:totalEndpointCount:ActivityResponse' :: ActivityResponse -> Maybe Int
$sel:timezonesTotalCount:ActivityResponse' :: ActivityResponse -> Maybe Int
$sel:timezonesCompletedCount:ActivityResponse' :: ActivityResponse -> Maybe Int
$sel:successfulEndpointCount:ActivityResponse' :: ActivityResponse -> Maybe Int
$sel:state:ActivityResponse' :: ActivityResponse -> Maybe Text
$sel:start:ActivityResponse' :: ActivityResponse -> Maybe Text
$sel:scheduledStart:ActivityResponse' :: ActivityResponse -> Maybe Text
$sel:result:ActivityResponse' :: ActivityResponse -> Maybe Text
$sel:end:ActivityResponse' :: ActivityResponse -> Maybe Text
..} =
    Int
_salt
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
end
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
result
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
scheduledStart
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
start
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
state
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Int
successfulEndpointCount
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Int
timezonesCompletedCount
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Int
timezonesTotalCount
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Int
totalEndpointCount
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
treatmentId
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Text
campaignId
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Text
id
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Text
applicationId

instance Prelude.NFData ActivityResponse where
  rnf :: ActivityResponse -> ()
rnf ActivityResponse' {Maybe Int
Maybe Text
Text
applicationId :: Text
id :: Text
campaignId :: Text
treatmentId :: Maybe Text
totalEndpointCount :: Maybe Int
timezonesTotalCount :: Maybe Int
timezonesCompletedCount :: Maybe Int
successfulEndpointCount :: Maybe Int
state :: Maybe Text
start :: Maybe Text
scheduledStart :: Maybe Text
result :: Maybe Text
end :: Maybe Text
$sel:applicationId:ActivityResponse' :: ActivityResponse -> Text
$sel:id:ActivityResponse' :: ActivityResponse -> Text
$sel:campaignId:ActivityResponse' :: ActivityResponse -> Text
$sel:treatmentId:ActivityResponse' :: ActivityResponse -> Maybe Text
$sel:totalEndpointCount:ActivityResponse' :: ActivityResponse -> Maybe Int
$sel:timezonesTotalCount:ActivityResponse' :: ActivityResponse -> Maybe Int
$sel:timezonesCompletedCount:ActivityResponse' :: ActivityResponse -> Maybe Int
$sel:successfulEndpointCount:ActivityResponse' :: ActivityResponse -> Maybe Int
$sel:state:ActivityResponse' :: ActivityResponse -> Maybe Text
$sel:start:ActivityResponse' :: ActivityResponse -> Maybe Text
$sel:scheduledStart:ActivityResponse' :: ActivityResponse -> Maybe Text
$sel:result:ActivityResponse' :: ActivityResponse -> Maybe Text
$sel:end:ActivityResponse' :: ActivityResponse -> Maybe Text
..} =
    forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
end
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
result
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
scheduledStart
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
start
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
state
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Int
successfulEndpointCount
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Int
timezonesCompletedCount
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Int
timezonesTotalCount
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Int
totalEndpointCount
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
treatmentId
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Text
campaignId
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Text
id
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Text
applicationId