{-# 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.AppIntegrationS.Types.DataIntegrationAssociationSummary
-- 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.AppIntegrationS.Types.DataIntegrationAssociationSummary where

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

-- | Summary information about the DataIntegration association.
--
-- /See:/ 'newDataIntegrationAssociationSummary' smart constructor.
data DataIntegrationAssociationSummary = DataIntegrationAssociationSummary'
  { -- | The identifier for teh client that is associated with the
    -- DataIntegration association.
    DataIntegrationAssociationSummary -> Maybe Text
clientId :: Prelude.Maybe Prelude.Text,
    -- | The Amazon Resource Name (ARN) of the DataIntegration association.
    DataIntegrationAssociationSummary -> Maybe Text
dataIntegrationAssociationArn :: Prelude.Maybe Prelude.Text,
    -- | The Amazon Resource Name (ARN)of the DataIntegration.
    DataIntegrationAssociationSummary -> Maybe Text
dataIntegrationArn :: Prelude.Maybe Prelude.Text
  }
  deriving (DataIntegrationAssociationSummary
-> DataIntegrationAssociationSummary -> Bool
(DataIntegrationAssociationSummary
 -> DataIntegrationAssociationSummary -> Bool)
-> (DataIntegrationAssociationSummary
    -> DataIntegrationAssociationSummary -> Bool)
-> Eq DataIntegrationAssociationSummary
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DataIntegrationAssociationSummary
-> DataIntegrationAssociationSummary -> Bool
$c/= :: DataIntegrationAssociationSummary
-> DataIntegrationAssociationSummary -> Bool
== :: DataIntegrationAssociationSummary
-> DataIntegrationAssociationSummary -> Bool
$c== :: DataIntegrationAssociationSummary
-> DataIntegrationAssociationSummary -> Bool
Prelude.Eq, ReadPrec [DataIntegrationAssociationSummary]
ReadPrec DataIntegrationAssociationSummary
Int -> ReadS DataIntegrationAssociationSummary
ReadS [DataIntegrationAssociationSummary]
(Int -> ReadS DataIntegrationAssociationSummary)
-> ReadS [DataIntegrationAssociationSummary]
-> ReadPrec DataIntegrationAssociationSummary
-> ReadPrec [DataIntegrationAssociationSummary]
-> Read DataIntegrationAssociationSummary
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DataIntegrationAssociationSummary]
$creadListPrec :: ReadPrec [DataIntegrationAssociationSummary]
readPrec :: ReadPrec DataIntegrationAssociationSummary
$creadPrec :: ReadPrec DataIntegrationAssociationSummary
readList :: ReadS [DataIntegrationAssociationSummary]
$creadList :: ReadS [DataIntegrationAssociationSummary]
readsPrec :: Int -> ReadS DataIntegrationAssociationSummary
$creadsPrec :: Int -> ReadS DataIntegrationAssociationSummary
Prelude.Read, Int -> DataIntegrationAssociationSummary -> ShowS
[DataIntegrationAssociationSummary] -> ShowS
DataIntegrationAssociationSummary -> String
(Int -> DataIntegrationAssociationSummary -> ShowS)
-> (DataIntegrationAssociationSummary -> String)
-> ([DataIntegrationAssociationSummary] -> ShowS)
-> Show DataIntegrationAssociationSummary
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DataIntegrationAssociationSummary] -> ShowS
$cshowList :: [DataIntegrationAssociationSummary] -> ShowS
show :: DataIntegrationAssociationSummary -> String
$cshow :: DataIntegrationAssociationSummary -> String
showsPrec :: Int -> DataIntegrationAssociationSummary -> ShowS
$cshowsPrec :: Int -> DataIntegrationAssociationSummary -> ShowS
Prelude.Show, (forall x.
 DataIntegrationAssociationSummary
 -> Rep DataIntegrationAssociationSummary x)
-> (forall x.
    Rep DataIntegrationAssociationSummary x
    -> DataIntegrationAssociationSummary)
-> Generic DataIntegrationAssociationSummary
forall x.
Rep DataIntegrationAssociationSummary x
-> DataIntegrationAssociationSummary
forall x.
DataIntegrationAssociationSummary
-> Rep DataIntegrationAssociationSummary x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep DataIntegrationAssociationSummary x
-> DataIntegrationAssociationSummary
$cfrom :: forall x.
DataIntegrationAssociationSummary
-> Rep DataIntegrationAssociationSummary x
Prelude.Generic)

-- |
-- Create a value of 'DataIntegrationAssociationSummary' 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:
--
-- 'clientId', 'dataIntegrationAssociationSummary_clientId' - The identifier for teh client that is associated with the
-- DataIntegration association.
--
-- 'dataIntegrationAssociationArn', 'dataIntegrationAssociationSummary_dataIntegrationAssociationArn' - The Amazon Resource Name (ARN) of the DataIntegration association.
--
-- 'dataIntegrationArn', 'dataIntegrationAssociationSummary_dataIntegrationArn' - The Amazon Resource Name (ARN)of the DataIntegration.
newDataIntegrationAssociationSummary ::
  DataIntegrationAssociationSummary
newDataIntegrationAssociationSummary :: DataIntegrationAssociationSummary
newDataIntegrationAssociationSummary =
  DataIntegrationAssociationSummary' :: Maybe Text
-> Maybe Text -> Maybe Text -> DataIntegrationAssociationSummary
DataIntegrationAssociationSummary'
    { $sel:clientId:DataIntegrationAssociationSummary' :: Maybe Text
clientId =
        Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:dataIntegrationAssociationArn:DataIntegrationAssociationSummary' :: Maybe Text
dataIntegrationAssociationArn =
        Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:dataIntegrationArn:DataIntegrationAssociationSummary' :: Maybe Text
dataIntegrationArn = Maybe Text
forall a. Maybe a
Prelude.Nothing
    }

-- | The identifier for teh client that is associated with the
-- DataIntegration association.
dataIntegrationAssociationSummary_clientId :: Lens.Lens' DataIntegrationAssociationSummary (Prelude.Maybe Prelude.Text)
dataIntegrationAssociationSummary_clientId :: (Maybe Text -> f (Maybe Text))
-> DataIntegrationAssociationSummary
-> f DataIntegrationAssociationSummary
dataIntegrationAssociationSummary_clientId = (DataIntegrationAssociationSummary -> Maybe Text)
-> (DataIntegrationAssociationSummary
    -> Maybe Text -> DataIntegrationAssociationSummary)
-> Lens
     DataIntegrationAssociationSummary
     DataIntegrationAssociationSummary
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DataIntegrationAssociationSummary' {Maybe Text
clientId :: Maybe Text
$sel:clientId:DataIntegrationAssociationSummary' :: DataIntegrationAssociationSummary -> Maybe Text
clientId} -> Maybe Text
clientId) (\s :: DataIntegrationAssociationSummary
s@DataIntegrationAssociationSummary' {} Maybe Text
a -> DataIntegrationAssociationSummary
s {$sel:clientId:DataIntegrationAssociationSummary' :: Maybe Text
clientId = Maybe Text
a} :: DataIntegrationAssociationSummary)

-- | The Amazon Resource Name (ARN) of the DataIntegration association.
dataIntegrationAssociationSummary_dataIntegrationAssociationArn :: Lens.Lens' DataIntegrationAssociationSummary (Prelude.Maybe Prelude.Text)
dataIntegrationAssociationSummary_dataIntegrationAssociationArn :: (Maybe Text -> f (Maybe Text))
-> DataIntegrationAssociationSummary
-> f DataIntegrationAssociationSummary
dataIntegrationAssociationSummary_dataIntegrationAssociationArn = (DataIntegrationAssociationSummary -> Maybe Text)
-> (DataIntegrationAssociationSummary
    -> Maybe Text -> DataIntegrationAssociationSummary)
-> Lens
     DataIntegrationAssociationSummary
     DataIntegrationAssociationSummary
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DataIntegrationAssociationSummary' {Maybe Text
dataIntegrationAssociationArn :: Maybe Text
$sel:dataIntegrationAssociationArn:DataIntegrationAssociationSummary' :: DataIntegrationAssociationSummary -> Maybe Text
dataIntegrationAssociationArn} -> Maybe Text
dataIntegrationAssociationArn) (\s :: DataIntegrationAssociationSummary
s@DataIntegrationAssociationSummary' {} Maybe Text
a -> DataIntegrationAssociationSummary
s {$sel:dataIntegrationAssociationArn:DataIntegrationAssociationSummary' :: Maybe Text
dataIntegrationAssociationArn = Maybe Text
a} :: DataIntegrationAssociationSummary)

-- | The Amazon Resource Name (ARN)of the DataIntegration.
dataIntegrationAssociationSummary_dataIntegrationArn :: Lens.Lens' DataIntegrationAssociationSummary (Prelude.Maybe Prelude.Text)
dataIntegrationAssociationSummary_dataIntegrationArn :: (Maybe Text -> f (Maybe Text))
-> DataIntegrationAssociationSummary
-> f DataIntegrationAssociationSummary
dataIntegrationAssociationSummary_dataIntegrationArn = (DataIntegrationAssociationSummary -> Maybe Text)
-> (DataIntegrationAssociationSummary
    -> Maybe Text -> DataIntegrationAssociationSummary)
-> Lens
     DataIntegrationAssociationSummary
     DataIntegrationAssociationSummary
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DataIntegrationAssociationSummary' {Maybe Text
dataIntegrationArn :: Maybe Text
$sel:dataIntegrationArn:DataIntegrationAssociationSummary' :: DataIntegrationAssociationSummary -> Maybe Text
dataIntegrationArn} -> Maybe Text
dataIntegrationArn) (\s :: DataIntegrationAssociationSummary
s@DataIntegrationAssociationSummary' {} Maybe Text
a -> DataIntegrationAssociationSummary
s {$sel:dataIntegrationArn:DataIntegrationAssociationSummary' :: Maybe Text
dataIntegrationArn = Maybe Text
a} :: DataIntegrationAssociationSummary)

instance
  Core.FromJSON
    DataIntegrationAssociationSummary
  where
  parseJSON :: Value -> Parser DataIntegrationAssociationSummary
parseJSON =
    String
-> (Object -> Parser DataIntegrationAssociationSummary)
-> Value
-> Parser DataIntegrationAssociationSummary
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Core.withObject
      String
"DataIntegrationAssociationSummary"
      ( \Object
x ->
          Maybe Text
-> Maybe Text -> Maybe Text -> DataIntegrationAssociationSummary
DataIntegrationAssociationSummary'
            (Maybe Text
 -> Maybe Text -> Maybe Text -> DataIntegrationAssociationSummary)
-> Parser (Maybe Text)
-> Parser
     (Maybe Text -> Maybe Text -> DataIntegrationAssociationSummary)
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
"ClientId")
            Parser
  (Maybe Text -> Maybe Text -> DataIntegrationAssociationSummary)
-> Parser (Maybe Text)
-> Parser (Maybe Text -> DataIntegrationAssociationSummary)
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
"DataIntegrationAssociationArn")
            Parser (Maybe Text -> DataIntegrationAssociationSummary)
-> Parser (Maybe Text) -> Parser DataIntegrationAssociationSummary
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
"DataIntegrationArn")
      )

instance
  Prelude.Hashable
    DataIntegrationAssociationSummary

instance
  Prelude.NFData
    DataIntegrationAssociationSummary