{-# 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.Redshift.Types.PartnerIntegrationInputMessage where
import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
import Amazonka.Redshift.Internal
data PartnerIntegrationInputMessage = PartnerIntegrationInputMessage'
{
PartnerIntegrationInputMessage -> Text
accountId :: Prelude.Text,
PartnerIntegrationInputMessage -> Text
clusterIdentifier :: Prelude.Text,
PartnerIntegrationInputMessage -> Text
databaseName :: Prelude.Text,
PartnerIntegrationInputMessage -> Text
partnerName :: Prelude.Text
}
deriving (PartnerIntegrationInputMessage
-> PartnerIntegrationInputMessage -> Bool
(PartnerIntegrationInputMessage
-> PartnerIntegrationInputMessage -> Bool)
-> (PartnerIntegrationInputMessage
-> PartnerIntegrationInputMessage -> Bool)
-> Eq PartnerIntegrationInputMessage
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: PartnerIntegrationInputMessage
-> PartnerIntegrationInputMessage -> Bool
$c/= :: PartnerIntegrationInputMessage
-> PartnerIntegrationInputMessage -> Bool
== :: PartnerIntegrationInputMessage
-> PartnerIntegrationInputMessage -> Bool
$c== :: PartnerIntegrationInputMessage
-> PartnerIntegrationInputMessage -> Bool
Prelude.Eq, ReadPrec [PartnerIntegrationInputMessage]
ReadPrec PartnerIntegrationInputMessage
Int -> ReadS PartnerIntegrationInputMessage
ReadS [PartnerIntegrationInputMessage]
(Int -> ReadS PartnerIntegrationInputMessage)
-> ReadS [PartnerIntegrationInputMessage]
-> ReadPrec PartnerIntegrationInputMessage
-> ReadPrec [PartnerIntegrationInputMessage]
-> Read PartnerIntegrationInputMessage
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [PartnerIntegrationInputMessage]
$creadListPrec :: ReadPrec [PartnerIntegrationInputMessage]
readPrec :: ReadPrec PartnerIntegrationInputMessage
$creadPrec :: ReadPrec PartnerIntegrationInputMessage
readList :: ReadS [PartnerIntegrationInputMessage]
$creadList :: ReadS [PartnerIntegrationInputMessage]
readsPrec :: Int -> ReadS PartnerIntegrationInputMessage
$creadsPrec :: Int -> ReadS PartnerIntegrationInputMessage
Prelude.Read, Int -> PartnerIntegrationInputMessage -> ShowS
[PartnerIntegrationInputMessage] -> ShowS
PartnerIntegrationInputMessage -> String
(Int -> PartnerIntegrationInputMessage -> ShowS)
-> (PartnerIntegrationInputMessage -> String)
-> ([PartnerIntegrationInputMessage] -> ShowS)
-> Show PartnerIntegrationInputMessage
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [PartnerIntegrationInputMessage] -> ShowS
$cshowList :: [PartnerIntegrationInputMessage] -> ShowS
show :: PartnerIntegrationInputMessage -> String
$cshow :: PartnerIntegrationInputMessage -> String
showsPrec :: Int -> PartnerIntegrationInputMessage -> ShowS
$cshowsPrec :: Int -> PartnerIntegrationInputMessage -> ShowS
Prelude.Show, (forall x.
PartnerIntegrationInputMessage
-> Rep PartnerIntegrationInputMessage x)
-> (forall x.
Rep PartnerIntegrationInputMessage x
-> PartnerIntegrationInputMessage)
-> Generic PartnerIntegrationInputMessage
forall x.
Rep PartnerIntegrationInputMessage x
-> PartnerIntegrationInputMessage
forall x.
PartnerIntegrationInputMessage
-> Rep PartnerIntegrationInputMessage x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep PartnerIntegrationInputMessage x
-> PartnerIntegrationInputMessage
$cfrom :: forall x.
PartnerIntegrationInputMessage
-> Rep PartnerIntegrationInputMessage x
Prelude.Generic)
newPartnerIntegrationInputMessage ::
Prelude.Text ->
Prelude.Text ->
Prelude.Text ->
Prelude.Text ->
PartnerIntegrationInputMessage
newPartnerIntegrationInputMessage :: Text -> Text -> Text -> Text -> PartnerIntegrationInputMessage
newPartnerIntegrationInputMessage
Text
pAccountId_
Text
pClusterIdentifier_
Text
pDatabaseName_
Text
pPartnerName_ =
PartnerIntegrationInputMessage' :: Text -> Text -> Text -> Text -> PartnerIntegrationInputMessage
PartnerIntegrationInputMessage'
{ $sel:accountId:PartnerIntegrationInputMessage' :: Text
accountId =
Text
pAccountId_,
$sel:clusterIdentifier:PartnerIntegrationInputMessage' :: Text
clusterIdentifier = Text
pClusterIdentifier_,
$sel:databaseName:PartnerIntegrationInputMessage' :: Text
databaseName = Text
pDatabaseName_,
$sel:partnerName:PartnerIntegrationInputMessage' :: Text
partnerName = Text
pPartnerName_
}
partnerIntegrationInputMessage_accountId :: Lens.Lens' PartnerIntegrationInputMessage Prelude.Text
partnerIntegrationInputMessage_accountId :: (Text -> f Text)
-> PartnerIntegrationInputMessage
-> f PartnerIntegrationInputMessage
partnerIntegrationInputMessage_accountId = (PartnerIntegrationInputMessage -> Text)
-> (PartnerIntegrationInputMessage
-> Text -> PartnerIntegrationInputMessage)
-> Lens
PartnerIntegrationInputMessage
PartnerIntegrationInputMessage
Text
Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\PartnerIntegrationInputMessage' {Text
accountId :: Text
$sel:accountId:PartnerIntegrationInputMessage' :: PartnerIntegrationInputMessage -> Text
accountId} -> Text
accountId) (\s :: PartnerIntegrationInputMessage
s@PartnerIntegrationInputMessage' {} Text
a -> PartnerIntegrationInputMessage
s {$sel:accountId:PartnerIntegrationInputMessage' :: Text
accountId = Text
a} :: PartnerIntegrationInputMessage)
partnerIntegrationInputMessage_clusterIdentifier :: Lens.Lens' PartnerIntegrationInputMessage Prelude.Text
partnerIntegrationInputMessage_clusterIdentifier :: (Text -> f Text)
-> PartnerIntegrationInputMessage
-> f PartnerIntegrationInputMessage
partnerIntegrationInputMessage_clusterIdentifier = (PartnerIntegrationInputMessage -> Text)
-> (PartnerIntegrationInputMessage
-> Text -> PartnerIntegrationInputMessage)
-> Lens
PartnerIntegrationInputMessage
PartnerIntegrationInputMessage
Text
Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\PartnerIntegrationInputMessage' {Text
clusterIdentifier :: Text
$sel:clusterIdentifier:PartnerIntegrationInputMessage' :: PartnerIntegrationInputMessage -> Text
clusterIdentifier} -> Text
clusterIdentifier) (\s :: PartnerIntegrationInputMessage
s@PartnerIntegrationInputMessage' {} Text
a -> PartnerIntegrationInputMessage
s {$sel:clusterIdentifier:PartnerIntegrationInputMessage' :: Text
clusterIdentifier = Text
a} :: PartnerIntegrationInputMessage)
partnerIntegrationInputMessage_databaseName :: Lens.Lens' PartnerIntegrationInputMessage Prelude.Text
partnerIntegrationInputMessage_databaseName :: (Text -> f Text)
-> PartnerIntegrationInputMessage
-> f PartnerIntegrationInputMessage
partnerIntegrationInputMessage_databaseName = (PartnerIntegrationInputMessage -> Text)
-> (PartnerIntegrationInputMessage
-> Text -> PartnerIntegrationInputMessage)
-> Lens
PartnerIntegrationInputMessage
PartnerIntegrationInputMessage
Text
Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\PartnerIntegrationInputMessage' {Text
databaseName :: Text
$sel:databaseName:PartnerIntegrationInputMessage' :: PartnerIntegrationInputMessage -> Text
databaseName} -> Text
databaseName) (\s :: PartnerIntegrationInputMessage
s@PartnerIntegrationInputMessage' {} Text
a -> PartnerIntegrationInputMessage
s {$sel:databaseName:PartnerIntegrationInputMessage' :: Text
databaseName = Text
a} :: PartnerIntegrationInputMessage)
partnerIntegrationInputMessage_partnerName :: Lens.Lens' PartnerIntegrationInputMessage Prelude.Text
partnerIntegrationInputMessage_partnerName :: (Text -> f Text)
-> PartnerIntegrationInputMessage
-> f PartnerIntegrationInputMessage
partnerIntegrationInputMessage_partnerName = (PartnerIntegrationInputMessage -> Text)
-> (PartnerIntegrationInputMessage
-> Text -> PartnerIntegrationInputMessage)
-> Lens
PartnerIntegrationInputMessage
PartnerIntegrationInputMessage
Text
Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\PartnerIntegrationInputMessage' {Text
partnerName :: Text
$sel:partnerName:PartnerIntegrationInputMessage' :: PartnerIntegrationInputMessage -> Text
partnerName} -> Text
partnerName) (\s :: PartnerIntegrationInputMessage
s@PartnerIntegrationInputMessage' {} Text
a -> PartnerIntegrationInputMessage
s {$sel:partnerName:PartnerIntegrationInputMessage' :: Text
partnerName = Text
a} :: PartnerIntegrationInputMessage)
instance
Prelude.Hashable
PartnerIntegrationInputMessage
instance
Prelude.NFData
PartnerIntegrationInputMessage
instance Core.ToQuery PartnerIntegrationInputMessage where
toQuery :: PartnerIntegrationInputMessage -> QueryString
toQuery PartnerIntegrationInputMessage' {Text
partnerName :: Text
databaseName :: Text
clusterIdentifier :: Text
accountId :: Text
$sel:partnerName:PartnerIntegrationInputMessage' :: PartnerIntegrationInputMessage -> Text
$sel:databaseName:PartnerIntegrationInputMessage' :: PartnerIntegrationInputMessage -> Text
$sel:clusterIdentifier:PartnerIntegrationInputMessage' :: PartnerIntegrationInputMessage -> Text
$sel:accountId:PartnerIntegrationInputMessage' :: PartnerIntegrationInputMessage -> Text
..} =
[QueryString] -> QueryString
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ ByteString
"AccountId" ByteString -> Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Text
accountId,
ByteString
"ClusterIdentifier" ByteString -> Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Text
clusterIdentifier,
ByteString
"DatabaseName" ByteString -> Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Text
databaseName,
ByteString
"PartnerName" ByteString -> Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Text
partnerName
]