{-# 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.ListIntegrationItem 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
data ListIntegrationItem = ListIntegrationItem'
{
ListIntegrationItem -> Maybe Bool
isUnstructured :: Prelude.Maybe Prelude.Bool,
ListIntegrationItem -> Maybe Text
objectTypeName :: Prelude.Maybe Prelude.Text,
ListIntegrationItem -> Maybe (HashMap Text Text)
objectTypeNames :: Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text),
ListIntegrationItem -> Maybe (HashMap Text Text)
tags :: Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text),
ListIntegrationItem -> Maybe Text
workflowId :: Prelude.Maybe Prelude.Text,
ListIntegrationItem -> Text
domainName :: Prelude.Text,
ListIntegrationItem -> Text
uri :: Prelude.Text,
ListIntegrationItem -> POSIX
createdAt :: Data.POSIX,
ListIntegrationItem -> POSIX
lastUpdatedAt :: Data.POSIX
}
deriving (ListIntegrationItem -> ListIntegrationItem -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListIntegrationItem -> ListIntegrationItem -> Bool
$c/= :: ListIntegrationItem -> ListIntegrationItem -> Bool
== :: ListIntegrationItem -> ListIntegrationItem -> Bool
$c== :: ListIntegrationItem -> ListIntegrationItem -> Bool
Prelude.Eq, ReadPrec [ListIntegrationItem]
ReadPrec ListIntegrationItem
Int -> ReadS ListIntegrationItem
ReadS [ListIntegrationItem]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListIntegrationItem]
$creadListPrec :: ReadPrec [ListIntegrationItem]
readPrec :: ReadPrec ListIntegrationItem
$creadPrec :: ReadPrec ListIntegrationItem
readList :: ReadS [ListIntegrationItem]
$creadList :: ReadS [ListIntegrationItem]
readsPrec :: Int -> ReadS ListIntegrationItem
$creadsPrec :: Int -> ReadS ListIntegrationItem
Prelude.Read, Int -> ListIntegrationItem -> ShowS
[ListIntegrationItem] -> ShowS
ListIntegrationItem -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListIntegrationItem] -> ShowS
$cshowList :: [ListIntegrationItem] -> ShowS
show :: ListIntegrationItem -> String
$cshow :: ListIntegrationItem -> String
showsPrec :: Int -> ListIntegrationItem -> ShowS
$cshowsPrec :: Int -> ListIntegrationItem -> ShowS
Prelude.Show, forall x. Rep ListIntegrationItem x -> ListIntegrationItem
forall x. ListIntegrationItem -> Rep ListIntegrationItem x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ListIntegrationItem x -> ListIntegrationItem
$cfrom :: forall x. ListIntegrationItem -> Rep ListIntegrationItem x
Prelude.Generic)
newListIntegrationItem ::
Prelude.Text ->
Prelude.Text ->
Prelude.UTCTime ->
Prelude.UTCTime ->
ListIntegrationItem
newListIntegrationItem :: Text -> Text -> UTCTime -> UTCTime -> ListIntegrationItem
newListIntegrationItem
Text
pDomainName_
Text
pUri_
UTCTime
pCreatedAt_
UTCTime
pLastUpdatedAt_ =
ListIntegrationItem'
{ $sel:isUnstructured:ListIntegrationItem' :: Maybe Bool
isUnstructured =
forall a. Maybe a
Prelude.Nothing,
$sel:objectTypeName:ListIntegrationItem' :: Maybe Text
objectTypeName = forall a. Maybe a
Prelude.Nothing,
$sel:objectTypeNames:ListIntegrationItem' :: Maybe (HashMap Text Text)
objectTypeNames = forall a. Maybe a
Prelude.Nothing,
$sel:tags:ListIntegrationItem' :: Maybe (HashMap Text Text)
tags = forall a. Maybe a
Prelude.Nothing,
$sel:workflowId:ListIntegrationItem' :: Maybe Text
workflowId = forall a. Maybe a
Prelude.Nothing,
$sel:domainName:ListIntegrationItem' :: Text
domainName = Text
pDomainName_,
$sel:uri:ListIntegrationItem' :: Text
uri = Text
pUri_,
$sel:createdAt:ListIntegrationItem' :: POSIX
createdAt = forall (a :: Format). Iso' (Time a) UTCTime
Data._Time forall t b. AReview t b -> b -> t
Lens.# UTCTime
pCreatedAt_,
$sel:lastUpdatedAt:ListIntegrationItem' :: POSIX
lastUpdatedAt = forall (a :: Format). Iso' (Time a) UTCTime
Data._Time forall t b. AReview t b -> b -> t
Lens.# UTCTime
pLastUpdatedAt_
}
listIntegrationItem_isUnstructured :: Lens.Lens' ListIntegrationItem (Prelude.Maybe Prelude.Bool)
listIntegrationItem_isUnstructured :: Lens' ListIntegrationItem (Maybe Bool)
listIntegrationItem_isUnstructured = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListIntegrationItem' {Maybe Bool
isUnstructured :: Maybe Bool
$sel:isUnstructured:ListIntegrationItem' :: ListIntegrationItem -> Maybe Bool
isUnstructured} -> Maybe Bool
isUnstructured) (\s :: ListIntegrationItem
s@ListIntegrationItem' {} Maybe Bool
a -> ListIntegrationItem
s {$sel:isUnstructured:ListIntegrationItem' :: Maybe Bool
isUnstructured = Maybe Bool
a} :: ListIntegrationItem)
listIntegrationItem_objectTypeName :: Lens.Lens' ListIntegrationItem (Prelude.Maybe Prelude.Text)
listIntegrationItem_objectTypeName :: Lens' ListIntegrationItem (Maybe Text)
listIntegrationItem_objectTypeName = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListIntegrationItem' {Maybe Text
objectTypeName :: Maybe Text
$sel:objectTypeName:ListIntegrationItem' :: ListIntegrationItem -> Maybe Text
objectTypeName} -> Maybe Text
objectTypeName) (\s :: ListIntegrationItem
s@ListIntegrationItem' {} Maybe Text
a -> ListIntegrationItem
s {$sel:objectTypeName:ListIntegrationItem' :: Maybe Text
objectTypeName = Maybe Text
a} :: ListIntegrationItem)
listIntegrationItem_objectTypeNames :: Lens.Lens' ListIntegrationItem (Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text))
listIntegrationItem_objectTypeNames :: Lens' ListIntegrationItem (Maybe (HashMap Text Text))
listIntegrationItem_objectTypeNames = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListIntegrationItem' {Maybe (HashMap Text Text)
objectTypeNames :: Maybe (HashMap Text Text)
$sel:objectTypeNames:ListIntegrationItem' :: ListIntegrationItem -> Maybe (HashMap Text Text)
objectTypeNames} -> Maybe (HashMap Text Text)
objectTypeNames) (\s :: ListIntegrationItem
s@ListIntegrationItem' {} Maybe (HashMap Text Text)
a -> ListIntegrationItem
s {$sel:objectTypeNames:ListIntegrationItem' :: Maybe (HashMap Text Text)
objectTypeNames = Maybe (HashMap Text Text)
a} :: ListIntegrationItem) 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
listIntegrationItem_tags :: Lens.Lens' ListIntegrationItem (Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text))
listIntegrationItem_tags :: Lens' ListIntegrationItem (Maybe (HashMap Text Text))
listIntegrationItem_tags = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListIntegrationItem' {Maybe (HashMap Text Text)
tags :: Maybe (HashMap Text Text)
$sel:tags:ListIntegrationItem' :: ListIntegrationItem -> Maybe (HashMap Text Text)
tags} -> Maybe (HashMap Text Text)
tags) (\s :: ListIntegrationItem
s@ListIntegrationItem' {} Maybe (HashMap Text Text)
a -> ListIntegrationItem
s {$sel:tags:ListIntegrationItem' :: Maybe (HashMap Text Text)
tags = Maybe (HashMap Text Text)
a} :: ListIntegrationItem) 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
listIntegrationItem_workflowId :: Lens.Lens' ListIntegrationItem (Prelude.Maybe Prelude.Text)
listIntegrationItem_workflowId :: Lens' ListIntegrationItem (Maybe Text)
listIntegrationItem_workflowId = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListIntegrationItem' {Maybe Text
workflowId :: Maybe Text
$sel:workflowId:ListIntegrationItem' :: ListIntegrationItem -> Maybe Text
workflowId} -> Maybe Text
workflowId) (\s :: ListIntegrationItem
s@ListIntegrationItem' {} Maybe Text
a -> ListIntegrationItem
s {$sel:workflowId:ListIntegrationItem' :: Maybe Text
workflowId = Maybe Text
a} :: ListIntegrationItem)
listIntegrationItem_domainName :: Lens.Lens' ListIntegrationItem Prelude.Text
listIntegrationItem_domainName :: Lens' ListIntegrationItem Text
listIntegrationItem_domainName = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListIntegrationItem' {Text
domainName :: Text
$sel:domainName:ListIntegrationItem' :: ListIntegrationItem -> Text
domainName} -> Text
domainName) (\s :: ListIntegrationItem
s@ListIntegrationItem' {} Text
a -> ListIntegrationItem
s {$sel:domainName:ListIntegrationItem' :: Text
domainName = Text
a} :: ListIntegrationItem)
listIntegrationItem_uri :: Lens.Lens' ListIntegrationItem Prelude.Text
listIntegrationItem_uri :: Lens' ListIntegrationItem Text
listIntegrationItem_uri = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListIntegrationItem' {Text
uri :: Text
$sel:uri:ListIntegrationItem' :: ListIntegrationItem -> Text
uri} -> Text
uri) (\s :: ListIntegrationItem
s@ListIntegrationItem' {} Text
a -> ListIntegrationItem
s {$sel:uri:ListIntegrationItem' :: Text
uri = Text
a} :: ListIntegrationItem)
listIntegrationItem_createdAt :: Lens.Lens' ListIntegrationItem Prelude.UTCTime
listIntegrationItem_createdAt :: Lens' ListIntegrationItem UTCTime
listIntegrationItem_createdAt = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListIntegrationItem' {POSIX
createdAt :: POSIX
$sel:createdAt:ListIntegrationItem' :: ListIntegrationItem -> POSIX
createdAt} -> POSIX
createdAt) (\s :: ListIntegrationItem
s@ListIntegrationItem' {} POSIX
a -> ListIntegrationItem
s {$sel:createdAt:ListIntegrationItem' :: POSIX
createdAt = POSIX
a} :: ListIntegrationItem) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall (a :: Format). Iso' (Time a) UTCTime
Data._Time
listIntegrationItem_lastUpdatedAt :: Lens.Lens' ListIntegrationItem Prelude.UTCTime
listIntegrationItem_lastUpdatedAt :: Lens' ListIntegrationItem UTCTime
listIntegrationItem_lastUpdatedAt = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListIntegrationItem' {POSIX
lastUpdatedAt :: POSIX
$sel:lastUpdatedAt:ListIntegrationItem' :: ListIntegrationItem -> POSIX
lastUpdatedAt} -> POSIX
lastUpdatedAt) (\s :: ListIntegrationItem
s@ListIntegrationItem' {} POSIX
a -> ListIntegrationItem
s {$sel:lastUpdatedAt:ListIntegrationItem' :: POSIX
lastUpdatedAt = POSIX
a} :: ListIntegrationItem) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall (a :: Format). Iso' (Time a) UTCTime
Data._Time
instance Data.FromJSON ListIntegrationItem where
parseJSON :: Value -> Parser ListIntegrationItem
parseJSON =
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Data.withObject
String
"ListIntegrationItem"
( \Object
x ->
Maybe Bool
-> Maybe Text
-> Maybe (HashMap Text Text)
-> Maybe (HashMap Text Text)
-> Maybe Text
-> Text
-> Text
-> POSIX
-> POSIX
-> ListIntegrationItem
ListIntegrationItem'
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
"IsUnstructured")
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
"ObjectTypeName")
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
"ObjectTypeNames"
forall a. Parser (Maybe a) -> a -> Parser a
Data..!= forall a. Monoid a => a
Prelude.mempty
)
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
"Tags" forall a. Parser (Maybe a) -> a -> Parser a
Data..!= forall a. Monoid a => a
Prelude.mempty)
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
"WorkflowId")
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
"DomainName")
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
"Uri")
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 ListIntegrationItem where
hashWithSalt :: Int -> ListIntegrationItem -> Int
hashWithSalt Int
_salt ListIntegrationItem' {Maybe Bool
Maybe Text
Maybe (HashMap Text Text)
Text
POSIX
lastUpdatedAt :: POSIX
createdAt :: POSIX
uri :: Text
domainName :: Text
workflowId :: Maybe Text
tags :: Maybe (HashMap Text Text)
objectTypeNames :: Maybe (HashMap Text Text)
objectTypeName :: Maybe Text
isUnstructured :: Maybe Bool
$sel:lastUpdatedAt:ListIntegrationItem' :: ListIntegrationItem -> POSIX
$sel:createdAt:ListIntegrationItem' :: ListIntegrationItem -> POSIX
$sel:uri:ListIntegrationItem' :: ListIntegrationItem -> Text
$sel:domainName:ListIntegrationItem' :: ListIntegrationItem -> Text
$sel:workflowId:ListIntegrationItem' :: ListIntegrationItem -> Maybe Text
$sel:tags:ListIntegrationItem' :: ListIntegrationItem -> Maybe (HashMap Text Text)
$sel:objectTypeNames:ListIntegrationItem' :: ListIntegrationItem -> Maybe (HashMap Text Text)
$sel:objectTypeName:ListIntegrationItem' :: ListIntegrationItem -> Maybe Text
$sel:isUnstructured:ListIntegrationItem' :: ListIntegrationItem -> Maybe Bool
..} =
Int
_salt
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Bool
isUnstructured
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
objectTypeName
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe (HashMap Text Text)
objectTypeNames
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe (HashMap Text Text)
tags
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
workflowId
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Text
domainName
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Text
uri
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 ListIntegrationItem where
rnf :: ListIntegrationItem -> ()
rnf ListIntegrationItem' {Maybe Bool
Maybe Text
Maybe (HashMap Text Text)
Text
POSIX
lastUpdatedAt :: POSIX
createdAt :: POSIX
uri :: Text
domainName :: Text
workflowId :: Maybe Text
tags :: Maybe (HashMap Text Text)
objectTypeNames :: Maybe (HashMap Text Text)
objectTypeName :: Maybe Text
isUnstructured :: Maybe Bool
$sel:lastUpdatedAt:ListIntegrationItem' :: ListIntegrationItem -> POSIX
$sel:createdAt:ListIntegrationItem' :: ListIntegrationItem -> POSIX
$sel:uri:ListIntegrationItem' :: ListIntegrationItem -> Text
$sel:domainName:ListIntegrationItem' :: ListIntegrationItem -> Text
$sel:workflowId:ListIntegrationItem' :: ListIntegrationItem -> Maybe Text
$sel:tags:ListIntegrationItem' :: ListIntegrationItem -> Maybe (HashMap Text Text)
$sel:objectTypeNames:ListIntegrationItem' :: ListIntegrationItem -> Maybe (HashMap Text Text)
$sel:objectTypeName:ListIntegrationItem' :: ListIntegrationItem -> Maybe Text
$sel:isUnstructured:ListIntegrationItem' :: ListIntegrationItem -> Maybe Bool
..} =
forall a. NFData a => a -> ()
Prelude.rnf Maybe Bool
isUnstructured
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
objectTypeName
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe (HashMap Text Text)
objectTypeNames
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe (HashMap Text Text)
tags
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
workflowId
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Text
domainName
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Text
uri
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