{-# 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.AppFlow.Types.SAPODataConnectorProfileProperties where
import Amazonka.AppFlow.Types.OAuthProperties
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 SAPODataConnectorProfileProperties = SAPODataConnectorProfileProperties'
{
SAPODataConnectorProfileProperties -> Maybe Text
logonLanguage :: Prelude.Maybe Prelude.Text,
SAPODataConnectorProfileProperties -> Maybe OAuthProperties
oAuthProperties :: Prelude.Maybe OAuthProperties,
SAPODataConnectorProfileProperties -> Maybe Text
privateLinkServiceName :: Prelude.Maybe Prelude.Text,
SAPODataConnectorProfileProperties -> Text
applicationHostUrl :: Prelude.Text,
SAPODataConnectorProfileProperties -> Text
applicationServicePath :: Prelude.Text,
SAPODataConnectorProfileProperties -> Natural
portNumber :: Prelude.Natural,
SAPODataConnectorProfileProperties -> Text
clientNumber :: Prelude.Text
}
deriving (SAPODataConnectorProfileProperties
-> SAPODataConnectorProfileProperties -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: SAPODataConnectorProfileProperties
-> SAPODataConnectorProfileProperties -> Bool
$c/= :: SAPODataConnectorProfileProperties
-> SAPODataConnectorProfileProperties -> Bool
== :: SAPODataConnectorProfileProperties
-> SAPODataConnectorProfileProperties -> Bool
$c== :: SAPODataConnectorProfileProperties
-> SAPODataConnectorProfileProperties -> Bool
Prelude.Eq, ReadPrec [SAPODataConnectorProfileProperties]
ReadPrec SAPODataConnectorProfileProperties
Int -> ReadS SAPODataConnectorProfileProperties
ReadS [SAPODataConnectorProfileProperties]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [SAPODataConnectorProfileProperties]
$creadListPrec :: ReadPrec [SAPODataConnectorProfileProperties]
readPrec :: ReadPrec SAPODataConnectorProfileProperties
$creadPrec :: ReadPrec SAPODataConnectorProfileProperties
readList :: ReadS [SAPODataConnectorProfileProperties]
$creadList :: ReadS [SAPODataConnectorProfileProperties]
readsPrec :: Int -> ReadS SAPODataConnectorProfileProperties
$creadsPrec :: Int -> ReadS SAPODataConnectorProfileProperties
Prelude.Read, Int -> SAPODataConnectorProfileProperties -> ShowS
[SAPODataConnectorProfileProperties] -> ShowS
SAPODataConnectorProfileProperties -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [SAPODataConnectorProfileProperties] -> ShowS
$cshowList :: [SAPODataConnectorProfileProperties] -> ShowS
show :: SAPODataConnectorProfileProperties -> String
$cshow :: SAPODataConnectorProfileProperties -> String
showsPrec :: Int -> SAPODataConnectorProfileProperties -> ShowS
$cshowsPrec :: Int -> SAPODataConnectorProfileProperties -> ShowS
Prelude.Show, forall x.
Rep SAPODataConnectorProfileProperties x
-> SAPODataConnectorProfileProperties
forall x.
SAPODataConnectorProfileProperties
-> Rep SAPODataConnectorProfileProperties x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep SAPODataConnectorProfileProperties x
-> SAPODataConnectorProfileProperties
$cfrom :: forall x.
SAPODataConnectorProfileProperties
-> Rep SAPODataConnectorProfileProperties x
Prelude.Generic)
newSAPODataConnectorProfileProperties ::
Prelude.Text ->
Prelude.Text ->
Prelude.Natural ->
Prelude.Text ->
SAPODataConnectorProfileProperties
newSAPODataConnectorProfileProperties :: Text
-> Text -> Natural -> Text -> SAPODataConnectorProfileProperties
newSAPODataConnectorProfileProperties
Text
pApplicationHostUrl_
Text
pApplicationServicePath_
Natural
pPortNumber_
Text
pClientNumber_ =
SAPODataConnectorProfileProperties'
{ $sel:logonLanguage:SAPODataConnectorProfileProperties' :: Maybe Text
logonLanguage =
forall a. Maybe a
Prelude.Nothing,
$sel:oAuthProperties:SAPODataConnectorProfileProperties' :: Maybe OAuthProperties
oAuthProperties = forall a. Maybe a
Prelude.Nothing,
$sel:privateLinkServiceName:SAPODataConnectorProfileProperties' :: Maybe Text
privateLinkServiceName =
forall a. Maybe a
Prelude.Nothing,
$sel:applicationHostUrl:SAPODataConnectorProfileProperties' :: Text
applicationHostUrl =
Text
pApplicationHostUrl_,
$sel:applicationServicePath:SAPODataConnectorProfileProperties' :: Text
applicationServicePath =
Text
pApplicationServicePath_,
$sel:portNumber:SAPODataConnectorProfileProperties' :: Natural
portNumber = Natural
pPortNumber_,
$sel:clientNumber:SAPODataConnectorProfileProperties' :: Text
clientNumber = Text
pClientNumber_
}
sAPODataConnectorProfileProperties_logonLanguage :: Lens.Lens' SAPODataConnectorProfileProperties (Prelude.Maybe Prelude.Text)
sAPODataConnectorProfileProperties_logonLanguage :: Lens' SAPODataConnectorProfileProperties (Maybe Text)
sAPODataConnectorProfileProperties_logonLanguage = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\SAPODataConnectorProfileProperties' {Maybe Text
logonLanguage :: Maybe Text
$sel:logonLanguage:SAPODataConnectorProfileProperties' :: SAPODataConnectorProfileProperties -> Maybe Text
logonLanguage} -> Maybe Text
logonLanguage) (\s :: SAPODataConnectorProfileProperties
s@SAPODataConnectorProfileProperties' {} Maybe Text
a -> SAPODataConnectorProfileProperties
s {$sel:logonLanguage:SAPODataConnectorProfileProperties' :: Maybe Text
logonLanguage = Maybe Text
a} :: SAPODataConnectorProfileProperties)
sAPODataConnectorProfileProperties_oAuthProperties :: Lens.Lens' SAPODataConnectorProfileProperties (Prelude.Maybe OAuthProperties)
sAPODataConnectorProfileProperties_oAuthProperties :: Lens' SAPODataConnectorProfileProperties (Maybe OAuthProperties)
sAPODataConnectorProfileProperties_oAuthProperties = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\SAPODataConnectorProfileProperties' {Maybe OAuthProperties
oAuthProperties :: Maybe OAuthProperties
$sel:oAuthProperties:SAPODataConnectorProfileProperties' :: SAPODataConnectorProfileProperties -> Maybe OAuthProperties
oAuthProperties} -> Maybe OAuthProperties
oAuthProperties) (\s :: SAPODataConnectorProfileProperties
s@SAPODataConnectorProfileProperties' {} Maybe OAuthProperties
a -> SAPODataConnectorProfileProperties
s {$sel:oAuthProperties:SAPODataConnectorProfileProperties' :: Maybe OAuthProperties
oAuthProperties = Maybe OAuthProperties
a} :: SAPODataConnectorProfileProperties)
sAPODataConnectorProfileProperties_privateLinkServiceName :: Lens.Lens' SAPODataConnectorProfileProperties (Prelude.Maybe Prelude.Text)
sAPODataConnectorProfileProperties_privateLinkServiceName :: Lens' SAPODataConnectorProfileProperties (Maybe Text)
sAPODataConnectorProfileProperties_privateLinkServiceName = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\SAPODataConnectorProfileProperties' {Maybe Text
privateLinkServiceName :: Maybe Text
$sel:privateLinkServiceName:SAPODataConnectorProfileProperties' :: SAPODataConnectorProfileProperties -> Maybe Text
privateLinkServiceName} -> Maybe Text
privateLinkServiceName) (\s :: SAPODataConnectorProfileProperties
s@SAPODataConnectorProfileProperties' {} Maybe Text
a -> SAPODataConnectorProfileProperties
s {$sel:privateLinkServiceName:SAPODataConnectorProfileProperties' :: Maybe Text
privateLinkServiceName = Maybe Text
a} :: SAPODataConnectorProfileProperties)
sAPODataConnectorProfileProperties_applicationHostUrl :: Lens.Lens' SAPODataConnectorProfileProperties Prelude.Text
sAPODataConnectorProfileProperties_applicationHostUrl :: Lens' SAPODataConnectorProfileProperties Text
sAPODataConnectorProfileProperties_applicationHostUrl = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\SAPODataConnectorProfileProperties' {Text
applicationHostUrl :: Text
$sel:applicationHostUrl:SAPODataConnectorProfileProperties' :: SAPODataConnectorProfileProperties -> Text
applicationHostUrl} -> Text
applicationHostUrl) (\s :: SAPODataConnectorProfileProperties
s@SAPODataConnectorProfileProperties' {} Text
a -> SAPODataConnectorProfileProperties
s {$sel:applicationHostUrl:SAPODataConnectorProfileProperties' :: Text
applicationHostUrl = Text
a} :: SAPODataConnectorProfileProperties)
sAPODataConnectorProfileProperties_applicationServicePath :: Lens.Lens' SAPODataConnectorProfileProperties Prelude.Text
sAPODataConnectorProfileProperties_applicationServicePath :: Lens' SAPODataConnectorProfileProperties Text
sAPODataConnectorProfileProperties_applicationServicePath = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\SAPODataConnectorProfileProperties' {Text
applicationServicePath :: Text
$sel:applicationServicePath:SAPODataConnectorProfileProperties' :: SAPODataConnectorProfileProperties -> Text
applicationServicePath} -> Text
applicationServicePath) (\s :: SAPODataConnectorProfileProperties
s@SAPODataConnectorProfileProperties' {} Text
a -> SAPODataConnectorProfileProperties
s {$sel:applicationServicePath:SAPODataConnectorProfileProperties' :: Text
applicationServicePath = Text
a} :: SAPODataConnectorProfileProperties)
sAPODataConnectorProfileProperties_portNumber :: Lens.Lens' SAPODataConnectorProfileProperties Prelude.Natural
sAPODataConnectorProfileProperties_portNumber :: Lens' SAPODataConnectorProfileProperties Natural
sAPODataConnectorProfileProperties_portNumber = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\SAPODataConnectorProfileProperties' {Natural
portNumber :: Natural
$sel:portNumber:SAPODataConnectorProfileProperties' :: SAPODataConnectorProfileProperties -> Natural
portNumber} -> Natural
portNumber) (\s :: SAPODataConnectorProfileProperties
s@SAPODataConnectorProfileProperties' {} Natural
a -> SAPODataConnectorProfileProperties
s {$sel:portNumber:SAPODataConnectorProfileProperties' :: Natural
portNumber = Natural
a} :: SAPODataConnectorProfileProperties)
sAPODataConnectorProfileProperties_clientNumber :: Lens.Lens' SAPODataConnectorProfileProperties Prelude.Text
sAPODataConnectorProfileProperties_clientNumber :: Lens' SAPODataConnectorProfileProperties Text
sAPODataConnectorProfileProperties_clientNumber = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\SAPODataConnectorProfileProperties' {Text
clientNumber :: Text
$sel:clientNumber:SAPODataConnectorProfileProperties' :: SAPODataConnectorProfileProperties -> Text
clientNumber} -> Text
clientNumber) (\s :: SAPODataConnectorProfileProperties
s@SAPODataConnectorProfileProperties' {} Text
a -> SAPODataConnectorProfileProperties
s {$sel:clientNumber:SAPODataConnectorProfileProperties' :: Text
clientNumber = Text
a} :: SAPODataConnectorProfileProperties)
instance
Data.FromJSON
SAPODataConnectorProfileProperties
where
parseJSON :: Value -> Parser SAPODataConnectorProfileProperties
parseJSON =
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Data.withObject
String
"SAPODataConnectorProfileProperties"
( \Object
x ->
Maybe Text
-> Maybe OAuthProperties
-> Maybe Text
-> Text
-> Text
-> Natural
-> Text
-> SAPODataConnectorProfileProperties
SAPODataConnectorProfileProperties'
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
"logonLanguage")
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
"oAuthProperties")
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
"privateLinkServiceName")
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
"applicationHostUrl")
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
"applicationServicePath")
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
"portNumber")
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
"clientNumber")
)
instance
Prelude.Hashable
SAPODataConnectorProfileProperties
where
hashWithSalt :: Int -> SAPODataConnectorProfileProperties -> Int
hashWithSalt
Int
_salt
SAPODataConnectorProfileProperties' {Natural
Maybe Text
Maybe OAuthProperties
Text
clientNumber :: Text
portNumber :: Natural
applicationServicePath :: Text
applicationHostUrl :: Text
privateLinkServiceName :: Maybe Text
oAuthProperties :: Maybe OAuthProperties
logonLanguage :: Maybe Text
$sel:clientNumber:SAPODataConnectorProfileProperties' :: SAPODataConnectorProfileProperties -> Text
$sel:portNumber:SAPODataConnectorProfileProperties' :: SAPODataConnectorProfileProperties -> Natural
$sel:applicationServicePath:SAPODataConnectorProfileProperties' :: SAPODataConnectorProfileProperties -> Text
$sel:applicationHostUrl:SAPODataConnectorProfileProperties' :: SAPODataConnectorProfileProperties -> Text
$sel:privateLinkServiceName:SAPODataConnectorProfileProperties' :: SAPODataConnectorProfileProperties -> Maybe Text
$sel:oAuthProperties:SAPODataConnectorProfileProperties' :: SAPODataConnectorProfileProperties -> Maybe OAuthProperties
$sel:logonLanguage:SAPODataConnectorProfileProperties' :: SAPODataConnectorProfileProperties -> Maybe Text
..} =
Int
_salt
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
logonLanguage
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe OAuthProperties
oAuthProperties
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
privateLinkServiceName
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Text
applicationHostUrl
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Text
applicationServicePath
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Natural
portNumber
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Text
clientNumber
instance
Prelude.NFData
SAPODataConnectorProfileProperties
where
rnf :: SAPODataConnectorProfileProperties -> ()
rnf SAPODataConnectorProfileProperties' {Natural
Maybe Text
Maybe OAuthProperties
Text
clientNumber :: Text
portNumber :: Natural
applicationServicePath :: Text
applicationHostUrl :: Text
privateLinkServiceName :: Maybe Text
oAuthProperties :: Maybe OAuthProperties
logonLanguage :: Maybe Text
$sel:clientNumber:SAPODataConnectorProfileProperties' :: SAPODataConnectorProfileProperties -> Text
$sel:portNumber:SAPODataConnectorProfileProperties' :: SAPODataConnectorProfileProperties -> Natural
$sel:applicationServicePath:SAPODataConnectorProfileProperties' :: SAPODataConnectorProfileProperties -> Text
$sel:applicationHostUrl:SAPODataConnectorProfileProperties' :: SAPODataConnectorProfileProperties -> Text
$sel:privateLinkServiceName:SAPODataConnectorProfileProperties' :: SAPODataConnectorProfileProperties -> Maybe Text
$sel:oAuthProperties:SAPODataConnectorProfileProperties' :: SAPODataConnectorProfileProperties -> Maybe OAuthProperties
$sel:logonLanguage:SAPODataConnectorProfileProperties' :: SAPODataConnectorProfileProperties -> Maybe Text
..} =
forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
logonLanguage
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe OAuthProperties
oAuthProperties
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
privateLinkServiceName
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Text
applicationHostUrl
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Text
applicationServicePath
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Natural
portNumber
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Text
clientNumber
instance
Data.ToJSON
SAPODataConnectorProfileProperties
where
toJSON :: SAPODataConnectorProfileProperties -> Value
toJSON SAPODataConnectorProfileProperties' {Natural
Maybe Text
Maybe OAuthProperties
Text
clientNumber :: Text
portNumber :: Natural
applicationServicePath :: Text
applicationHostUrl :: Text
privateLinkServiceName :: Maybe Text
oAuthProperties :: Maybe OAuthProperties
logonLanguage :: Maybe Text
$sel:clientNumber:SAPODataConnectorProfileProperties' :: SAPODataConnectorProfileProperties -> Text
$sel:portNumber:SAPODataConnectorProfileProperties' :: SAPODataConnectorProfileProperties -> Natural
$sel:applicationServicePath:SAPODataConnectorProfileProperties' :: SAPODataConnectorProfileProperties -> Text
$sel:applicationHostUrl:SAPODataConnectorProfileProperties' :: SAPODataConnectorProfileProperties -> Text
$sel:privateLinkServiceName:SAPODataConnectorProfileProperties' :: SAPODataConnectorProfileProperties -> Maybe Text
$sel:oAuthProperties:SAPODataConnectorProfileProperties' :: SAPODataConnectorProfileProperties -> Maybe OAuthProperties
$sel:logonLanguage:SAPODataConnectorProfileProperties' :: SAPODataConnectorProfileProperties -> Maybe Text
..} =
[Pair] -> Value
Data.object
( forall a. [Maybe a] -> [a]
Prelude.catMaybes
[ (Key
"logonLanguage" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=) forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
logonLanguage,
(Key
"oAuthProperties" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe OAuthProperties
oAuthProperties,
(Key
"privateLinkServiceName" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
privateLinkServiceName,
forall a. a -> Maybe a
Prelude.Just
(Key
"applicationHostUrl" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..= Text
applicationHostUrl),
forall a. a -> Maybe a
Prelude.Just
( Key
"applicationServicePath"
forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..= Text
applicationServicePath
),
forall a. a -> Maybe a
Prelude.Just (Key
"portNumber" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..= Natural
portNumber),
forall a. a -> Maybe a
Prelude.Just (Key
"clientNumber" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..= Text
clientNumber)
]
)