{-# 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.Pinpoint.Types.EndpointBatchItem where
import qualified Amazonka.Core as Core
import qualified Amazonka.Core.Lens.Internal as Lens
import qualified Amazonka.Data as Data
import Amazonka.Pinpoint.Types.ChannelType
import Amazonka.Pinpoint.Types.EndpointDemographic
import Amazonka.Pinpoint.Types.EndpointLocation
import Amazonka.Pinpoint.Types.EndpointUser
import qualified Amazonka.Prelude as Prelude
data EndpointBatchItem = EndpointBatchItem'
{
EndpointBatchItem -> Maybe Text
address :: Prelude.Maybe Prelude.Text,
EndpointBatchItem -> Maybe (HashMap Text [Text])
attributes :: Prelude.Maybe (Prelude.HashMap Prelude.Text [Prelude.Text]),
EndpointBatchItem -> Maybe ChannelType
channelType :: Prelude.Maybe ChannelType,
EndpointBatchItem -> Maybe EndpointDemographic
demographic :: Prelude.Maybe EndpointDemographic,
EndpointBatchItem -> Maybe Text
effectiveDate :: Prelude.Maybe Prelude.Text,
EndpointBatchItem -> Maybe Text
endpointStatus :: Prelude.Maybe Prelude.Text,
EndpointBatchItem -> Maybe Text
id :: Prelude.Maybe Prelude.Text,
EndpointBatchItem -> Maybe EndpointLocation
location :: Prelude.Maybe EndpointLocation,
EndpointBatchItem -> Maybe (HashMap Text Double)
metrics :: Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Double),
EndpointBatchItem -> Maybe Text
optOut :: Prelude.Maybe Prelude.Text,
EndpointBatchItem -> Maybe Text
requestId :: Prelude.Maybe Prelude.Text,
EndpointBatchItem -> Maybe EndpointUser
user :: Prelude.Maybe EndpointUser
}
deriving (EndpointBatchItem -> EndpointBatchItem -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: EndpointBatchItem -> EndpointBatchItem -> Bool
$c/= :: EndpointBatchItem -> EndpointBatchItem -> Bool
== :: EndpointBatchItem -> EndpointBatchItem -> Bool
$c== :: EndpointBatchItem -> EndpointBatchItem -> Bool
Prelude.Eq, ReadPrec [EndpointBatchItem]
ReadPrec EndpointBatchItem
Int -> ReadS EndpointBatchItem
ReadS [EndpointBatchItem]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [EndpointBatchItem]
$creadListPrec :: ReadPrec [EndpointBatchItem]
readPrec :: ReadPrec EndpointBatchItem
$creadPrec :: ReadPrec EndpointBatchItem
readList :: ReadS [EndpointBatchItem]
$creadList :: ReadS [EndpointBatchItem]
readsPrec :: Int -> ReadS EndpointBatchItem
$creadsPrec :: Int -> ReadS EndpointBatchItem
Prelude.Read, Int -> EndpointBatchItem -> ShowS
[EndpointBatchItem] -> ShowS
EndpointBatchItem -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [EndpointBatchItem] -> ShowS
$cshowList :: [EndpointBatchItem] -> ShowS
show :: EndpointBatchItem -> String
$cshow :: EndpointBatchItem -> String
showsPrec :: Int -> EndpointBatchItem -> ShowS
$cshowsPrec :: Int -> EndpointBatchItem -> ShowS
Prelude.Show, forall x. Rep EndpointBatchItem x -> EndpointBatchItem
forall x. EndpointBatchItem -> Rep EndpointBatchItem x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep EndpointBatchItem x -> EndpointBatchItem
$cfrom :: forall x. EndpointBatchItem -> Rep EndpointBatchItem x
Prelude.Generic)
newEndpointBatchItem ::
EndpointBatchItem
newEndpointBatchItem :: EndpointBatchItem
newEndpointBatchItem =
EndpointBatchItem'
{ $sel:address:EndpointBatchItem' :: Maybe Text
address = forall a. Maybe a
Prelude.Nothing,
$sel:attributes:EndpointBatchItem' :: Maybe (HashMap Text [Text])
attributes = forall a. Maybe a
Prelude.Nothing,
$sel:channelType:EndpointBatchItem' :: Maybe ChannelType
channelType = forall a. Maybe a
Prelude.Nothing,
$sel:demographic:EndpointBatchItem' :: Maybe EndpointDemographic
demographic = forall a. Maybe a
Prelude.Nothing,
$sel:effectiveDate:EndpointBatchItem' :: Maybe Text
effectiveDate = forall a. Maybe a
Prelude.Nothing,
$sel:endpointStatus:EndpointBatchItem' :: Maybe Text
endpointStatus = forall a. Maybe a
Prelude.Nothing,
$sel:id:EndpointBatchItem' :: Maybe Text
id = forall a. Maybe a
Prelude.Nothing,
$sel:location:EndpointBatchItem' :: Maybe EndpointLocation
location = forall a. Maybe a
Prelude.Nothing,
$sel:metrics:EndpointBatchItem' :: Maybe (HashMap Text Double)
metrics = forall a. Maybe a
Prelude.Nothing,
$sel:optOut:EndpointBatchItem' :: Maybe Text
optOut = forall a. Maybe a
Prelude.Nothing,
$sel:requestId:EndpointBatchItem' :: Maybe Text
requestId = forall a. Maybe a
Prelude.Nothing,
$sel:user:EndpointBatchItem' :: Maybe EndpointUser
user = forall a. Maybe a
Prelude.Nothing
}
endpointBatchItem_address :: Lens.Lens' EndpointBatchItem (Prelude.Maybe Prelude.Text)
endpointBatchItem_address :: Lens' EndpointBatchItem (Maybe Text)
endpointBatchItem_address = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\EndpointBatchItem' {Maybe Text
address :: Maybe Text
$sel:address:EndpointBatchItem' :: EndpointBatchItem -> Maybe Text
address} -> Maybe Text
address) (\s :: EndpointBatchItem
s@EndpointBatchItem' {} Maybe Text
a -> EndpointBatchItem
s {$sel:address:EndpointBatchItem' :: Maybe Text
address = Maybe Text
a} :: EndpointBatchItem)
endpointBatchItem_attributes :: Lens.Lens' EndpointBatchItem (Prelude.Maybe (Prelude.HashMap Prelude.Text [Prelude.Text]))
endpointBatchItem_attributes :: Lens' EndpointBatchItem (Maybe (HashMap Text [Text]))
endpointBatchItem_attributes = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\EndpointBatchItem' {Maybe (HashMap Text [Text])
attributes :: Maybe (HashMap Text [Text])
$sel:attributes:EndpointBatchItem' :: EndpointBatchItem -> Maybe (HashMap Text [Text])
attributes} -> Maybe (HashMap Text [Text])
attributes) (\s :: EndpointBatchItem
s@EndpointBatchItem' {} Maybe (HashMap Text [Text])
a -> EndpointBatchItem
s {$sel:attributes:EndpointBatchItem' :: Maybe (HashMap Text [Text])
attributes = Maybe (HashMap Text [Text])
a} :: EndpointBatchItem) 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 s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
endpointBatchItem_channelType :: Lens.Lens' EndpointBatchItem (Prelude.Maybe ChannelType)
endpointBatchItem_channelType :: Lens' EndpointBatchItem (Maybe ChannelType)
endpointBatchItem_channelType = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\EndpointBatchItem' {Maybe ChannelType
channelType :: Maybe ChannelType
$sel:channelType:EndpointBatchItem' :: EndpointBatchItem -> Maybe ChannelType
channelType} -> Maybe ChannelType
channelType) (\s :: EndpointBatchItem
s@EndpointBatchItem' {} Maybe ChannelType
a -> EndpointBatchItem
s {$sel:channelType:EndpointBatchItem' :: Maybe ChannelType
channelType = Maybe ChannelType
a} :: EndpointBatchItem)
endpointBatchItem_demographic :: Lens.Lens' EndpointBatchItem (Prelude.Maybe EndpointDemographic)
endpointBatchItem_demographic :: Lens' EndpointBatchItem (Maybe EndpointDemographic)
endpointBatchItem_demographic = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\EndpointBatchItem' {Maybe EndpointDemographic
demographic :: Maybe EndpointDemographic
$sel:demographic:EndpointBatchItem' :: EndpointBatchItem -> Maybe EndpointDemographic
demographic} -> Maybe EndpointDemographic
demographic) (\s :: EndpointBatchItem
s@EndpointBatchItem' {} Maybe EndpointDemographic
a -> EndpointBatchItem
s {$sel:demographic:EndpointBatchItem' :: Maybe EndpointDemographic
demographic = Maybe EndpointDemographic
a} :: EndpointBatchItem)
endpointBatchItem_effectiveDate :: Lens.Lens' EndpointBatchItem (Prelude.Maybe Prelude.Text)
endpointBatchItem_effectiveDate :: Lens' EndpointBatchItem (Maybe Text)
endpointBatchItem_effectiveDate = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\EndpointBatchItem' {Maybe Text
effectiveDate :: Maybe Text
$sel:effectiveDate:EndpointBatchItem' :: EndpointBatchItem -> Maybe Text
effectiveDate} -> Maybe Text
effectiveDate) (\s :: EndpointBatchItem
s@EndpointBatchItem' {} Maybe Text
a -> EndpointBatchItem
s {$sel:effectiveDate:EndpointBatchItem' :: Maybe Text
effectiveDate = Maybe Text
a} :: EndpointBatchItem)
endpointBatchItem_endpointStatus :: Lens.Lens' EndpointBatchItem (Prelude.Maybe Prelude.Text)
endpointBatchItem_endpointStatus :: Lens' EndpointBatchItem (Maybe Text)
endpointBatchItem_endpointStatus = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\EndpointBatchItem' {Maybe Text
endpointStatus :: Maybe Text
$sel:endpointStatus:EndpointBatchItem' :: EndpointBatchItem -> Maybe Text
endpointStatus} -> Maybe Text
endpointStatus) (\s :: EndpointBatchItem
s@EndpointBatchItem' {} Maybe Text
a -> EndpointBatchItem
s {$sel:endpointStatus:EndpointBatchItem' :: Maybe Text
endpointStatus = Maybe Text
a} :: EndpointBatchItem)
endpointBatchItem_id :: Lens.Lens' EndpointBatchItem (Prelude.Maybe Prelude.Text)
endpointBatchItem_id :: Lens' EndpointBatchItem (Maybe Text)
endpointBatchItem_id = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\EndpointBatchItem' {Maybe Text
id :: Maybe Text
$sel:id:EndpointBatchItem' :: EndpointBatchItem -> Maybe Text
id} -> Maybe Text
id) (\s :: EndpointBatchItem
s@EndpointBatchItem' {} Maybe Text
a -> EndpointBatchItem
s {$sel:id:EndpointBatchItem' :: Maybe Text
id = Maybe Text
a} :: EndpointBatchItem)
endpointBatchItem_location :: Lens.Lens' EndpointBatchItem (Prelude.Maybe EndpointLocation)
endpointBatchItem_location :: Lens' EndpointBatchItem (Maybe EndpointLocation)
endpointBatchItem_location = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\EndpointBatchItem' {Maybe EndpointLocation
location :: Maybe EndpointLocation
$sel:location:EndpointBatchItem' :: EndpointBatchItem -> Maybe EndpointLocation
location} -> Maybe EndpointLocation
location) (\s :: EndpointBatchItem
s@EndpointBatchItem' {} Maybe EndpointLocation
a -> EndpointBatchItem
s {$sel:location:EndpointBatchItem' :: Maybe EndpointLocation
location = Maybe EndpointLocation
a} :: EndpointBatchItem)
endpointBatchItem_metrics :: Lens.Lens' EndpointBatchItem (Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Double))
endpointBatchItem_metrics :: Lens' EndpointBatchItem (Maybe (HashMap Text Double))
endpointBatchItem_metrics = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\EndpointBatchItem' {Maybe (HashMap Text Double)
metrics :: Maybe (HashMap Text Double)
$sel:metrics:EndpointBatchItem' :: EndpointBatchItem -> Maybe (HashMap Text Double)
metrics} -> Maybe (HashMap Text Double)
metrics) (\s :: EndpointBatchItem
s@EndpointBatchItem' {} Maybe (HashMap Text Double)
a -> EndpointBatchItem
s {$sel:metrics:EndpointBatchItem' :: Maybe (HashMap Text Double)
metrics = Maybe (HashMap Text Double)
a} :: EndpointBatchItem) 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 s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
endpointBatchItem_optOut :: Lens.Lens' EndpointBatchItem (Prelude.Maybe Prelude.Text)
endpointBatchItem_optOut :: Lens' EndpointBatchItem (Maybe Text)
endpointBatchItem_optOut = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\EndpointBatchItem' {Maybe Text
optOut :: Maybe Text
$sel:optOut:EndpointBatchItem' :: EndpointBatchItem -> Maybe Text
optOut} -> Maybe Text
optOut) (\s :: EndpointBatchItem
s@EndpointBatchItem' {} Maybe Text
a -> EndpointBatchItem
s {$sel:optOut:EndpointBatchItem' :: Maybe Text
optOut = Maybe Text
a} :: EndpointBatchItem)
endpointBatchItem_requestId :: Lens.Lens' EndpointBatchItem (Prelude.Maybe Prelude.Text)
endpointBatchItem_requestId :: Lens' EndpointBatchItem (Maybe Text)
endpointBatchItem_requestId = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\EndpointBatchItem' {Maybe Text
requestId :: Maybe Text
$sel:requestId:EndpointBatchItem' :: EndpointBatchItem -> Maybe Text
requestId} -> Maybe Text
requestId) (\s :: EndpointBatchItem
s@EndpointBatchItem' {} Maybe Text
a -> EndpointBatchItem
s {$sel:requestId:EndpointBatchItem' :: Maybe Text
requestId = Maybe Text
a} :: EndpointBatchItem)
endpointBatchItem_user :: Lens.Lens' EndpointBatchItem (Prelude.Maybe EndpointUser)
endpointBatchItem_user :: Lens' EndpointBatchItem (Maybe EndpointUser)
endpointBatchItem_user = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\EndpointBatchItem' {Maybe EndpointUser
user :: Maybe EndpointUser
$sel:user:EndpointBatchItem' :: EndpointBatchItem -> Maybe EndpointUser
user} -> Maybe EndpointUser
user) (\s :: EndpointBatchItem
s@EndpointBatchItem' {} Maybe EndpointUser
a -> EndpointBatchItem
s {$sel:user:EndpointBatchItem' :: Maybe EndpointUser
user = Maybe EndpointUser
a} :: EndpointBatchItem)
instance Prelude.Hashable EndpointBatchItem where
hashWithSalt :: Int -> EndpointBatchItem -> Int
hashWithSalt Int
_salt EndpointBatchItem' {Maybe Text
Maybe (HashMap Text Double)
Maybe (HashMap Text [Text])
Maybe ChannelType
Maybe EndpointDemographic
Maybe EndpointLocation
Maybe EndpointUser
user :: Maybe EndpointUser
requestId :: Maybe Text
optOut :: Maybe Text
metrics :: Maybe (HashMap Text Double)
location :: Maybe EndpointLocation
id :: Maybe Text
endpointStatus :: Maybe Text
effectiveDate :: Maybe Text
demographic :: Maybe EndpointDemographic
channelType :: Maybe ChannelType
attributes :: Maybe (HashMap Text [Text])
address :: Maybe Text
$sel:user:EndpointBatchItem' :: EndpointBatchItem -> Maybe EndpointUser
$sel:requestId:EndpointBatchItem' :: EndpointBatchItem -> Maybe Text
$sel:optOut:EndpointBatchItem' :: EndpointBatchItem -> Maybe Text
$sel:metrics:EndpointBatchItem' :: EndpointBatchItem -> Maybe (HashMap Text Double)
$sel:location:EndpointBatchItem' :: EndpointBatchItem -> Maybe EndpointLocation
$sel:id:EndpointBatchItem' :: EndpointBatchItem -> Maybe Text
$sel:endpointStatus:EndpointBatchItem' :: EndpointBatchItem -> Maybe Text
$sel:effectiveDate:EndpointBatchItem' :: EndpointBatchItem -> Maybe Text
$sel:demographic:EndpointBatchItem' :: EndpointBatchItem -> Maybe EndpointDemographic
$sel:channelType:EndpointBatchItem' :: EndpointBatchItem -> Maybe ChannelType
$sel:attributes:EndpointBatchItem' :: EndpointBatchItem -> Maybe (HashMap Text [Text])
$sel:address:EndpointBatchItem' :: EndpointBatchItem -> Maybe Text
..} =
Int
_salt
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
address
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe (HashMap Text [Text])
attributes
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe ChannelType
channelType
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe EndpointDemographic
demographic
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
effectiveDate
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
endpointStatus
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
id
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe EndpointLocation
location
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe (HashMap Text Double)
metrics
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
optOut
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
requestId
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe EndpointUser
user
instance Prelude.NFData EndpointBatchItem where
rnf :: EndpointBatchItem -> ()
rnf EndpointBatchItem' {Maybe Text
Maybe (HashMap Text Double)
Maybe (HashMap Text [Text])
Maybe ChannelType
Maybe EndpointDemographic
Maybe EndpointLocation
Maybe EndpointUser
user :: Maybe EndpointUser
requestId :: Maybe Text
optOut :: Maybe Text
metrics :: Maybe (HashMap Text Double)
location :: Maybe EndpointLocation
id :: Maybe Text
endpointStatus :: Maybe Text
effectiveDate :: Maybe Text
demographic :: Maybe EndpointDemographic
channelType :: Maybe ChannelType
attributes :: Maybe (HashMap Text [Text])
address :: Maybe Text
$sel:user:EndpointBatchItem' :: EndpointBatchItem -> Maybe EndpointUser
$sel:requestId:EndpointBatchItem' :: EndpointBatchItem -> Maybe Text
$sel:optOut:EndpointBatchItem' :: EndpointBatchItem -> Maybe Text
$sel:metrics:EndpointBatchItem' :: EndpointBatchItem -> Maybe (HashMap Text Double)
$sel:location:EndpointBatchItem' :: EndpointBatchItem -> Maybe EndpointLocation
$sel:id:EndpointBatchItem' :: EndpointBatchItem -> Maybe Text
$sel:endpointStatus:EndpointBatchItem' :: EndpointBatchItem -> Maybe Text
$sel:effectiveDate:EndpointBatchItem' :: EndpointBatchItem -> Maybe Text
$sel:demographic:EndpointBatchItem' :: EndpointBatchItem -> Maybe EndpointDemographic
$sel:channelType:EndpointBatchItem' :: EndpointBatchItem -> Maybe ChannelType
$sel:attributes:EndpointBatchItem' :: EndpointBatchItem -> Maybe (HashMap Text [Text])
$sel:address:EndpointBatchItem' :: EndpointBatchItem -> Maybe Text
..} =
forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
address
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe (HashMap Text [Text])
attributes
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe ChannelType
channelType
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe EndpointDemographic
demographic
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
effectiveDate
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
endpointStatus
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
id
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe EndpointLocation
location
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe (HashMap Text Double)
metrics
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
optOut
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
requestId
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe EndpointUser
user
instance Data.ToJSON EndpointBatchItem where
toJSON :: EndpointBatchItem -> Value
toJSON EndpointBatchItem' {Maybe Text
Maybe (HashMap Text Double)
Maybe (HashMap Text [Text])
Maybe ChannelType
Maybe EndpointDemographic
Maybe EndpointLocation
Maybe EndpointUser
user :: Maybe EndpointUser
requestId :: Maybe Text
optOut :: Maybe Text
metrics :: Maybe (HashMap Text Double)
location :: Maybe EndpointLocation
id :: Maybe Text
endpointStatus :: Maybe Text
effectiveDate :: Maybe Text
demographic :: Maybe EndpointDemographic
channelType :: Maybe ChannelType
attributes :: Maybe (HashMap Text [Text])
address :: Maybe Text
$sel:user:EndpointBatchItem' :: EndpointBatchItem -> Maybe EndpointUser
$sel:requestId:EndpointBatchItem' :: EndpointBatchItem -> Maybe Text
$sel:optOut:EndpointBatchItem' :: EndpointBatchItem -> Maybe Text
$sel:metrics:EndpointBatchItem' :: EndpointBatchItem -> Maybe (HashMap Text Double)
$sel:location:EndpointBatchItem' :: EndpointBatchItem -> Maybe EndpointLocation
$sel:id:EndpointBatchItem' :: EndpointBatchItem -> Maybe Text
$sel:endpointStatus:EndpointBatchItem' :: EndpointBatchItem -> Maybe Text
$sel:effectiveDate:EndpointBatchItem' :: EndpointBatchItem -> Maybe Text
$sel:demographic:EndpointBatchItem' :: EndpointBatchItem -> Maybe EndpointDemographic
$sel:channelType:EndpointBatchItem' :: EndpointBatchItem -> Maybe ChannelType
$sel:attributes:EndpointBatchItem' :: EndpointBatchItem -> Maybe (HashMap Text [Text])
$sel:address:EndpointBatchItem' :: EndpointBatchItem -> Maybe Text
..} =
[Pair] -> Value
Data.object
( forall a. [Maybe a] -> [a]
Prelude.catMaybes
[ (Key
"Address" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=) forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
address,
(Key
"Attributes" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=) forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (HashMap Text [Text])
attributes,
(Key
"ChannelType" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=) forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe ChannelType
channelType,
(Key
"Demographic" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=) forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe EndpointDemographic
demographic,
(Key
"EffectiveDate" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=) forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
effectiveDate,
(Key
"EndpointStatus" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
endpointStatus,
(Key
"Id" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=) forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
id,
(Key
"Location" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=) forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe EndpointLocation
location,
(Key
"Metrics" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=) forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (HashMap Text Double)
metrics,
(Key
"OptOut" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=) forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
optOut,
(Key
"RequestId" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=) forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
requestId,
(Key
"User" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=) forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe EndpointUser
user
]
)