{-# 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.Connect.Types.IntegrationAssociationSummary where
import Amazonka.Connect.Types.IntegrationType
import Amazonka.Connect.Types.SourceType
import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
data IntegrationAssociationSummary = IntegrationAssociationSummary'
{
IntegrationAssociationSummary -> Maybe Text
instanceId :: Prelude.Maybe Prelude.Text,
IntegrationAssociationSummary -> Maybe SourceType
sourceType :: Prelude.Maybe SourceType,
IntegrationAssociationSummary -> Maybe Text
sourceApplicationUrl :: Prelude.Maybe Prelude.Text,
IntegrationAssociationSummary -> Maybe Text
integrationAssociationId :: Prelude.Maybe Prelude.Text,
IntegrationAssociationSummary -> Maybe Text
integrationAssociationArn :: Prelude.Maybe Prelude.Text,
IntegrationAssociationSummary -> Maybe Text
sourceApplicationName :: Prelude.Maybe Prelude.Text,
IntegrationAssociationSummary -> Maybe Text
integrationArn :: Prelude.Maybe Prelude.Text,
IntegrationAssociationSummary -> Maybe IntegrationType
integrationType :: Prelude.Maybe IntegrationType
}
deriving (IntegrationAssociationSummary
-> IntegrationAssociationSummary -> Bool
(IntegrationAssociationSummary
-> IntegrationAssociationSummary -> Bool)
-> (IntegrationAssociationSummary
-> IntegrationAssociationSummary -> Bool)
-> Eq IntegrationAssociationSummary
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: IntegrationAssociationSummary
-> IntegrationAssociationSummary -> Bool
$c/= :: IntegrationAssociationSummary
-> IntegrationAssociationSummary -> Bool
== :: IntegrationAssociationSummary
-> IntegrationAssociationSummary -> Bool
$c== :: IntegrationAssociationSummary
-> IntegrationAssociationSummary -> Bool
Prelude.Eq, ReadPrec [IntegrationAssociationSummary]
ReadPrec IntegrationAssociationSummary
Int -> ReadS IntegrationAssociationSummary
ReadS [IntegrationAssociationSummary]
(Int -> ReadS IntegrationAssociationSummary)
-> ReadS [IntegrationAssociationSummary]
-> ReadPrec IntegrationAssociationSummary
-> ReadPrec [IntegrationAssociationSummary]
-> Read IntegrationAssociationSummary
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [IntegrationAssociationSummary]
$creadListPrec :: ReadPrec [IntegrationAssociationSummary]
readPrec :: ReadPrec IntegrationAssociationSummary
$creadPrec :: ReadPrec IntegrationAssociationSummary
readList :: ReadS [IntegrationAssociationSummary]
$creadList :: ReadS [IntegrationAssociationSummary]
readsPrec :: Int -> ReadS IntegrationAssociationSummary
$creadsPrec :: Int -> ReadS IntegrationAssociationSummary
Prelude.Read, Int -> IntegrationAssociationSummary -> ShowS
[IntegrationAssociationSummary] -> ShowS
IntegrationAssociationSummary -> String
(Int -> IntegrationAssociationSummary -> ShowS)
-> (IntegrationAssociationSummary -> String)
-> ([IntegrationAssociationSummary] -> ShowS)
-> Show IntegrationAssociationSummary
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [IntegrationAssociationSummary] -> ShowS
$cshowList :: [IntegrationAssociationSummary] -> ShowS
show :: IntegrationAssociationSummary -> String
$cshow :: IntegrationAssociationSummary -> String
showsPrec :: Int -> IntegrationAssociationSummary -> ShowS
$cshowsPrec :: Int -> IntegrationAssociationSummary -> ShowS
Prelude.Show, (forall x.
IntegrationAssociationSummary
-> Rep IntegrationAssociationSummary x)
-> (forall x.
Rep IntegrationAssociationSummary x
-> IntegrationAssociationSummary)
-> Generic IntegrationAssociationSummary
forall x.
Rep IntegrationAssociationSummary x
-> IntegrationAssociationSummary
forall x.
IntegrationAssociationSummary
-> Rep IntegrationAssociationSummary x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep IntegrationAssociationSummary x
-> IntegrationAssociationSummary
$cfrom :: forall x.
IntegrationAssociationSummary
-> Rep IntegrationAssociationSummary x
Prelude.Generic)
newIntegrationAssociationSummary ::
IntegrationAssociationSummary
newIntegrationAssociationSummary :: IntegrationAssociationSummary
newIntegrationAssociationSummary =
IntegrationAssociationSummary' :: Maybe Text
-> Maybe SourceType
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe IntegrationType
-> IntegrationAssociationSummary
IntegrationAssociationSummary'
{ $sel:instanceId:IntegrationAssociationSummary' :: Maybe Text
instanceId =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:sourceType:IntegrationAssociationSummary' :: Maybe SourceType
sourceType = Maybe SourceType
forall a. Maybe a
Prelude.Nothing,
$sel:sourceApplicationUrl:IntegrationAssociationSummary' :: Maybe Text
sourceApplicationUrl = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:integrationAssociationId:IntegrationAssociationSummary' :: Maybe Text
integrationAssociationId = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:integrationAssociationArn:IntegrationAssociationSummary' :: Maybe Text
integrationAssociationArn = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:sourceApplicationName:IntegrationAssociationSummary' :: Maybe Text
sourceApplicationName = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:integrationArn:IntegrationAssociationSummary' :: Maybe Text
integrationArn = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:integrationType:IntegrationAssociationSummary' :: Maybe IntegrationType
integrationType = Maybe IntegrationType
forall a. Maybe a
Prelude.Nothing
}
integrationAssociationSummary_instanceId :: Lens.Lens' IntegrationAssociationSummary (Prelude.Maybe Prelude.Text)
integrationAssociationSummary_instanceId :: (Maybe Text -> f (Maybe Text))
-> IntegrationAssociationSummary -> f IntegrationAssociationSummary
integrationAssociationSummary_instanceId = (IntegrationAssociationSummary -> Maybe Text)
-> (IntegrationAssociationSummary
-> Maybe Text -> IntegrationAssociationSummary)
-> Lens
IntegrationAssociationSummary
IntegrationAssociationSummary
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\IntegrationAssociationSummary' {Maybe Text
instanceId :: Maybe Text
$sel:instanceId:IntegrationAssociationSummary' :: IntegrationAssociationSummary -> Maybe Text
instanceId} -> Maybe Text
instanceId) (\s :: IntegrationAssociationSummary
s@IntegrationAssociationSummary' {} Maybe Text
a -> IntegrationAssociationSummary
s {$sel:instanceId:IntegrationAssociationSummary' :: Maybe Text
instanceId = Maybe Text
a} :: IntegrationAssociationSummary)
integrationAssociationSummary_sourceType :: Lens.Lens' IntegrationAssociationSummary (Prelude.Maybe SourceType)
integrationAssociationSummary_sourceType :: (Maybe SourceType -> f (Maybe SourceType))
-> IntegrationAssociationSummary -> f IntegrationAssociationSummary
integrationAssociationSummary_sourceType = (IntegrationAssociationSummary -> Maybe SourceType)
-> (IntegrationAssociationSummary
-> Maybe SourceType -> IntegrationAssociationSummary)
-> Lens
IntegrationAssociationSummary
IntegrationAssociationSummary
(Maybe SourceType)
(Maybe SourceType)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\IntegrationAssociationSummary' {Maybe SourceType
sourceType :: Maybe SourceType
$sel:sourceType:IntegrationAssociationSummary' :: IntegrationAssociationSummary -> Maybe SourceType
sourceType} -> Maybe SourceType
sourceType) (\s :: IntegrationAssociationSummary
s@IntegrationAssociationSummary' {} Maybe SourceType
a -> IntegrationAssociationSummary
s {$sel:sourceType:IntegrationAssociationSummary' :: Maybe SourceType
sourceType = Maybe SourceType
a} :: IntegrationAssociationSummary)
integrationAssociationSummary_sourceApplicationUrl :: Lens.Lens' IntegrationAssociationSummary (Prelude.Maybe Prelude.Text)
integrationAssociationSummary_sourceApplicationUrl :: (Maybe Text -> f (Maybe Text))
-> IntegrationAssociationSummary -> f IntegrationAssociationSummary
integrationAssociationSummary_sourceApplicationUrl = (IntegrationAssociationSummary -> Maybe Text)
-> (IntegrationAssociationSummary
-> Maybe Text -> IntegrationAssociationSummary)
-> Lens
IntegrationAssociationSummary
IntegrationAssociationSummary
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\IntegrationAssociationSummary' {Maybe Text
sourceApplicationUrl :: Maybe Text
$sel:sourceApplicationUrl:IntegrationAssociationSummary' :: IntegrationAssociationSummary -> Maybe Text
sourceApplicationUrl} -> Maybe Text
sourceApplicationUrl) (\s :: IntegrationAssociationSummary
s@IntegrationAssociationSummary' {} Maybe Text
a -> IntegrationAssociationSummary
s {$sel:sourceApplicationUrl:IntegrationAssociationSummary' :: Maybe Text
sourceApplicationUrl = Maybe Text
a} :: IntegrationAssociationSummary)
integrationAssociationSummary_integrationAssociationId :: Lens.Lens' IntegrationAssociationSummary (Prelude.Maybe Prelude.Text)
integrationAssociationSummary_integrationAssociationId :: (Maybe Text -> f (Maybe Text))
-> IntegrationAssociationSummary -> f IntegrationAssociationSummary
integrationAssociationSummary_integrationAssociationId = (IntegrationAssociationSummary -> Maybe Text)
-> (IntegrationAssociationSummary
-> Maybe Text -> IntegrationAssociationSummary)
-> Lens
IntegrationAssociationSummary
IntegrationAssociationSummary
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\IntegrationAssociationSummary' {Maybe Text
integrationAssociationId :: Maybe Text
$sel:integrationAssociationId:IntegrationAssociationSummary' :: IntegrationAssociationSummary -> Maybe Text
integrationAssociationId} -> Maybe Text
integrationAssociationId) (\s :: IntegrationAssociationSummary
s@IntegrationAssociationSummary' {} Maybe Text
a -> IntegrationAssociationSummary
s {$sel:integrationAssociationId:IntegrationAssociationSummary' :: Maybe Text
integrationAssociationId = Maybe Text
a} :: IntegrationAssociationSummary)
integrationAssociationSummary_integrationAssociationArn :: Lens.Lens' IntegrationAssociationSummary (Prelude.Maybe Prelude.Text)
integrationAssociationSummary_integrationAssociationArn :: (Maybe Text -> f (Maybe Text))
-> IntegrationAssociationSummary -> f IntegrationAssociationSummary
integrationAssociationSummary_integrationAssociationArn = (IntegrationAssociationSummary -> Maybe Text)
-> (IntegrationAssociationSummary
-> Maybe Text -> IntegrationAssociationSummary)
-> Lens
IntegrationAssociationSummary
IntegrationAssociationSummary
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\IntegrationAssociationSummary' {Maybe Text
integrationAssociationArn :: Maybe Text
$sel:integrationAssociationArn:IntegrationAssociationSummary' :: IntegrationAssociationSummary -> Maybe Text
integrationAssociationArn} -> Maybe Text
integrationAssociationArn) (\s :: IntegrationAssociationSummary
s@IntegrationAssociationSummary' {} Maybe Text
a -> IntegrationAssociationSummary
s {$sel:integrationAssociationArn:IntegrationAssociationSummary' :: Maybe Text
integrationAssociationArn = Maybe Text
a} :: IntegrationAssociationSummary)
integrationAssociationSummary_sourceApplicationName :: Lens.Lens' IntegrationAssociationSummary (Prelude.Maybe Prelude.Text)
integrationAssociationSummary_sourceApplicationName :: (Maybe Text -> f (Maybe Text))
-> IntegrationAssociationSummary -> f IntegrationAssociationSummary
integrationAssociationSummary_sourceApplicationName = (IntegrationAssociationSummary -> Maybe Text)
-> (IntegrationAssociationSummary
-> Maybe Text -> IntegrationAssociationSummary)
-> Lens
IntegrationAssociationSummary
IntegrationAssociationSummary
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\IntegrationAssociationSummary' {Maybe Text
sourceApplicationName :: Maybe Text
$sel:sourceApplicationName:IntegrationAssociationSummary' :: IntegrationAssociationSummary -> Maybe Text
sourceApplicationName} -> Maybe Text
sourceApplicationName) (\s :: IntegrationAssociationSummary
s@IntegrationAssociationSummary' {} Maybe Text
a -> IntegrationAssociationSummary
s {$sel:sourceApplicationName:IntegrationAssociationSummary' :: Maybe Text
sourceApplicationName = Maybe Text
a} :: IntegrationAssociationSummary)
integrationAssociationSummary_integrationArn :: Lens.Lens' IntegrationAssociationSummary (Prelude.Maybe Prelude.Text)
integrationAssociationSummary_integrationArn :: (Maybe Text -> f (Maybe Text))
-> IntegrationAssociationSummary -> f IntegrationAssociationSummary
integrationAssociationSummary_integrationArn = (IntegrationAssociationSummary -> Maybe Text)
-> (IntegrationAssociationSummary
-> Maybe Text -> IntegrationAssociationSummary)
-> Lens
IntegrationAssociationSummary
IntegrationAssociationSummary
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\IntegrationAssociationSummary' {Maybe Text
integrationArn :: Maybe Text
$sel:integrationArn:IntegrationAssociationSummary' :: IntegrationAssociationSummary -> Maybe Text
integrationArn} -> Maybe Text
integrationArn) (\s :: IntegrationAssociationSummary
s@IntegrationAssociationSummary' {} Maybe Text
a -> IntegrationAssociationSummary
s {$sel:integrationArn:IntegrationAssociationSummary' :: Maybe Text
integrationArn = Maybe Text
a} :: IntegrationAssociationSummary)
integrationAssociationSummary_integrationType :: Lens.Lens' IntegrationAssociationSummary (Prelude.Maybe IntegrationType)
integrationAssociationSummary_integrationType :: (Maybe IntegrationType -> f (Maybe IntegrationType))
-> IntegrationAssociationSummary -> f IntegrationAssociationSummary
integrationAssociationSummary_integrationType = (IntegrationAssociationSummary -> Maybe IntegrationType)
-> (IntegrationAssociationSummary
-> Maybe IntegrationType -> IntegrationAssociationSummary)
-> Lens
IntegrationAssociationSummary
IntegrationAssociationSummary
(Maybe IntegrationType)
(Maybe IntegrationType)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\IntegrationAssociationSummary' {Maybe IntegrationType
integrationType :: Maybe IntegrationType
$sel:integrationType:IntegrationAssociationSummary' :: IntegrationAssociationSummary -> Maybe IntegrationType
integrationType} -> Maybe IntegrationType
integrationType) (\s :: IntegrationAssociationSummary
s@IntegrationAssociationSummary' {} Maybe IntegrationType
a -> IntegrationAssociationSummary
s {$sel:integrationType:IntegrationAssociationSummary' :: Maybe IntegrationType
integrationType = Maybe IntegrationType
a} :: IntegrationAssociationSummary)
instance Core.FromJSON IntegrationAssociationSummary where
parseJSON :: Value -> Parser IntegrationAssociationSummary
parseJSON =
String
-> (Object -> Parser IntegrationAssociationSummary)
-> Value
-> Parser IntegrationAssociationSummary
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Core.withObject
String
"IntegrationAssociationSummary"
( \Object
x ->
Maybe Text
-> Maybe SourceType
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe IntegrationType
-> IntegrationAssociationSummary
IntegrationAssociationSummary'
(Maybe Text
-> Maybe SourceType
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe IntegrationType
-> IntegrationAssociationSummary)
-> Parser (Maybe Text)
-> Parser
(Maybe SourceType
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe IntegrationType
-> IntegrationAssociationSummary)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"InstanceId")
Parser
(Maybe SourceType
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe IntegrationType
-> IntegrationAssociationSummary)
-> Parser (Maybe SourceType)
-> Parser
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe IntegrationType
-> IntegrationAssociationSummary)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe SourceType)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"SourceType")
Parser
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe IntegrationType
-> IntegrationAssociationSummary)
-> Parser (Maybe Text)
-> Parser
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe IntegrationType
-> IntegrationAssociationSummary)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"SourceApplicationUrl")
Parser
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe IntegrationType
-> IntegrationAssociationSummary)
-> Parser (Maybe Text)
-> Parser
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe IntegrationType
-> IntegrationAssociationSummary)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"IntegrationAssociationId")
Parser
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe IntegrationType
-> IntegrationAssociationSummary)
-> Parser (Maybe Text)
-> Parser
(Maybe Text
-> Maybe Text
-> Maybe IntegrationType
-> IntegrationAssociationSummary)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"IntegrationAssociationArn")
Parser
(Maybe Text
-> Maybe Text
-> Maybe IntegrationType
-> IntegrationAssociationSummary)
-> Parser (Maybe Text)
-> Parser
(Maybe Text
-> Maybe IntegrationType -> IntegrationAssociationSummary)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"SourceApplicationName")
Parser
(Maybe Text
-> Maybe IntegrationType -> IntegrationAssociationSummary)
-> Parser (Maybe Text)
-> Parser (Maybe IntegrationType -> IntegrationAssociationSummary)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"IntegrationArn")
Parser (Maybe IntegrationType -> IntegrationAssociationSummary)
-> Parser (Maybe IntegrationType)
-> Parser IntegrationAssociationSummary
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe IntegrationType)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"IntegrationType")
)
instance
Prelude.Hashable
IntegrationAssociationSummary
instance Prelude.NFData IntegrationAssociationSummary