{-# 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.Connect.Types.IntegrationAssociationSummary
-- Copyright   : (c) 2013-2021 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com>
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
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

-- | Contains summary information about the associated AppIntegrations.
--
-- /See:/ 'newIntegrationAssociationSummary' smart constructor.
data IntegrationAssociationSummary = IntegrationAssociationSummary'
  { -- | The identifier of the Amazon Connect instance. You can find the
    -- instanceId in the ARN of the instance.
    IntegrationAssociationSummary -> Maybe Text
instanceId :: Prelude.Maybe Prelude.Text,
    -- | The name of the source.
    IntegrationAssociationSummary -> Maybe SourceType
sourceType :: Prelude.Maybe SourceType,
    -- | The URL for the external application.
    IntegrationAssociationSummary -> Maybe Text
sourceApplicationUrl :: Prelude.Maybe Prelude.Text,
    -- | The identifier for the AppIntegration association.
    IntegrationAssociationSummary -> Maybe Text
integrationAssociationId :: Prelude.Maybe Prelude.Text,
    -- | The Amazon Resource Name (ARN) for the AppIntegration association.
    IntegrationAssociationSummary -> Maybe Text
integrationAssociationArn :: Prelude.Maybe Prelude.Text,
    -- | The user-provided, friendly name for the external application.
    IntegrationAssociationSummary -> Maybe Text
sourceApplicationName :: Prelude.Maybe Prelude.Text,
    -- | The Amazon Resource Name (ARN) for the AppIntegration.
    IntegrationAssociationSummary -> Maybe Text
integrationArn :: Prelude.Maybe Prelude.Text,
    -- | The integration type.
    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)

-- |
-- Create a value of 'IntegrationAssociationSummary' 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:
--
-- 'instanceId', 'integrationAssociationSummary_instanceId' - The identifier of the Amazon Connect instance. You can find the
-- instanceId in the ARN of the instance.
--
-- 'sourceType', 'integrationAssociationSummary_sourceType' - The name of the source.
--
-- 'sourceApplicationUrl', 'integrationAssociationSummary_sourceApplicationUrl' - The URL for the external application.
--
-- 'integrationAssociationId', 'integrationAssociationSummary_integrationAssociationId' - The identifier for the AppIntegration association.
--
-- 'integrationAssociationArn', 'integrationAssociationSummary_integrationAssociationArn' - The Amazon Resource Name (ARN) for the AppIntegration association.
--
-- 'sourceApplicationName', 'integrationAssociationSummary_sourceApplicationName' - The user-provided, friendly name for the external application.
--
-- 'integrationArn', 'integrationAssociationSummary_integrationArn' - The Amazon Resource Name (ARN) for the AppIntegration.
--
-- 'integrationType', 'integrationAssociationSummary_integrationType' - The integration type.
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
    }

-- | The identifier of the Amazon Connect instance. You can find the
-- instanceId in the ARN of the instance.
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)

-- | The name of the source.
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)

-- | The URL for the external application.
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)

-- | The identifier for the AppIntegration association.
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)

-- | The Amazon Resource Name (ARN) for the AppIntegration association.
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)

-- | The user-provided, friendly name for the external application.
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)

-- | The Amazon Resource Name (ARN) for the AppIntegration.
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)

-- | The integration type.
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