{-# 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.AppFlow.Types.SAPODataConnectorProfileProperties
-- 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.AppFlow.Types.SAPODataConnectorProfileProperties where

import Amazonka.AppFlow.Types.OAuthProperties
import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude

-- | The connector-specific profile properties required when using SAPOData.
--
-- /See:/ 'newSAPODataConnectorProfileProperties' smart constructor.
data SAPODataConnectorProfileProperties = SAPODataConnectorProfileProperties'
  { -- | The logon language of SAPOData instance.
    SAPODataConnectorProfileProperties -> Maybe Text
logonLanguage :: Prelude.Maybe Prelude.Text,
    -- | The SAPOData Private Link service name to be used for private data
    -- transfers.
    SAPODataConnectorProfileProperties -> Maybe Text
privateLinkServiceName :: Prelude.Maybe Prelude.Text,
    -- | The SAPOData OAuth properties required for OAuth type authentication.
    SAPODataConnectorProfileProperties -> Maybe OAuthProperties
oAuthProperties :: Prelude.Maybe OAuthProperties,
    -- | The location of the SAPOData resource.
    SAPODataConnectorProfileProperties -> Text
applicationHostUrl :: Prelude.Text,
    -- | The application path to catalog service.
    SAPODataConnectorProfileProperties -> Text
applicationServicePath :: Prelude.Text,
    -- | The port number of the SAPOData instance.
    SAPODataConnectorProfileProperties -> Natural
portNumber :: Prelude.Natural,
    -- | The client number for the client creating the connection.
    SAPODataConnectorProfileProperties -> Text
clientNumber :: Prelude.Text
  }
  deriving (SAPODataConnectorProfileProperties
-> SAPODataConnectorProfileProperties -> Bool
(SAPODataConnectorProfileProperties
 -> SAPODataConnectorProfileProperties -> Bool)
-> (SAPODataConnectorProfileProperties
    -> SAPODataConnectorProfileProperties -> Bool)
-> Eq SAPODataConnectorProfileProperties
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]
(Int -> ReadS SAPODataConnectorProfileProperties)
-> ReadS [SAPODataConnectorProfileProperties]
-> ReadPrec SAPODataConnectorProfileProperties
-> ReadPrec [SAPODataConnectorProfileProperties]
-> Read 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
(Int -> SAPODataConnectorProfileProperties -> ShowS)
-> (SAPODataConnectorProfileProperties -> String)
-> ([SAPODataConnectorProfileProperties] -> ShowS)
-> Show SAPODataConnectorProfileProperties
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.
 SAPODataConnectorProfileProperties
 -> Rep SAPODataConnectorProfileProperties x)
-> (forall x.
    Rep SAPODataConnectorProfileProperties x
    -> SAPODataConnectorProfileProperties)
-> Generic SAPODataConnectorProfileProperties
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)

-- |
-- Create a value of 'SAPODataConnectorProfileProperties' 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:
--
-- 'logonLanguage', 'sAPODataConnectorProfileProperties_logonLanguage' - The logon language of SAPOData instance.
--
-- 'privateLinkServiceName', 'sAPODataConnectorProfileProperties_privateLinkServiceName' - The SAPOData Private Link service name to be used for private data
-- transfers.
--
-- 'oAuthProperties', 'sAPODataConnectorProfileProperties_oAuthProperties' - The SAPOData OAuth properties required for OAuth type authentication.
--
-- 'applicationHostUrl', 'sAPODataConnectorProfileProperties_applicationHostUrl' - The location of the SAPOData resource.
--
-- 'applicationServicePath', 'sAPODataConnectorProfileProperties_applicationServicePath' - The application path to catalog service.
--
-- 'portNumber', 'sAPODataConnectorProfileProperties_portNumber' - The port number of the SAPOData instance.
--
-- 'clientNumber', 'sAPODataConnectorProfileProperties_clientNumber' - The client number for the client creating the connection.
newSAPODataConnectorProfileProperties ::
  -- | 'applicationHostUrl'
  Prelude.Text ->
  -- | 'applicationServicePath'
  Prelude.Text ->
  -- | 'portNumber'
  Prelude.Natural ->
  -- | 'clientNumber'
  Prelude.Text ->
  SAPODataConnectorProfileProperties
newSAPODataConnectorProfileProperties :: Text
-> Text -> Natural -> Text -> SAPODataConnectorProfileProperties
newSAPODataConnectorProfileProperties
  Text
pApplicationHostUrl_
  Text
pApplicationServicePath_
  Natural
pPortNumber_
  Text
pClientNumber_ =
    SAPODataConnectorProfileProperties' :: Maybe Text
-> Maybe Text
-> Maybe OAuthProperties
-> Text
-> Text
-> Natural
-> Text
-> SAPODataConnectorProfileProperties
SAPODataConnectorProfileProperties'
      { $sel:logonLanguage:SAPODataConnectorProfileProperties' :: Maybe Text
logonLanguage =
          Maybe Text
forall a. Maybe a
Prelude.Nothing,
        $sel:privateLinkServiceName:SAPODataConnectorProfileProperties' :: Maybe Text
privateLinkServiceName =
          Maybe Text
forall a. Maybe a
Prelude.Nothing,
        $sel:oAuthProperties:SAPODataConnectorProfileProperties' :: Maybe OAuthProperties
oAuthProperties = Maybe OAuthProperties
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_
      }

-- | The logon language of SAPOData instance.
sAPODataConnectorProfileProperties_logonLanguage :: Lens.Lens' SAPODataConnectorProfileProperties (Prelude.Maybe Prelude.Text)
sAPODataConnectorProfileProperties_logonLanguage :: (Maybe Text -> f (Maybe Text))
-> SAPODataConnectorProfileProperties
-> f SAPODataConnectorProfileProperties
sAPODataConnectorProfileProperties_logonLanguage = (SAPODataConnectorProfileProperties -> Maybe Text)
-> (SAPODataConnectorProfileProperties
    -> Maybe Text -> SAPODataConnectorProfileProperties)
-> Lens
     SAPODataConnectorProfileProperties
     SAPODataConnectorProfileProperties
     (Maybe Text)
     (Maybe Text)
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)

-- | The SAPOData Private Link service name to be used for private data
-- transfers.
sAPODataConnectorProfileProperties_privateLinkServiceName :: Lens.Lens' SAPODataConnectorProfileProperties (Prelude.Maybe Prelude.Text)
sAPODataConnectorProfileProperties_privateLinkServiceName :: (Maybe Text -> f (Maybe Text))
-> SAPODataConnectorProfileProperties
-> f SAPODataConnectorProfileProperties
sAPODataConnectorProfileProperties_privateLinkServiceName = (SAPODataConnectorProfileProperties -> Maybe Text)
-> (SAPODataConnectorProfileProperties
    -> Maybe Text -> SAPODataConnectorProfileProperties)
-> Lens
     SAPODataConnectorProfileProperties
     SAPODataConnectorProfileProperties
     (Maybe Text)
     (Maybe Text)
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)

-- | The SAPOData OAuth properties required for OAuth type authentication.
sAPODataConnectorProfileProperties_oAuthProperties :: Lens.Lens' SAPODataConnectorProfileProperties (Prelude.Maybe OAuthProperties)
sAPODataConnectorProfileProperties_oAuthProperties :: (Maybe OAuthProperties -> f (Maybe OAuthProperties))
-> SAPODataConnectorProfileProperties
-> f SAPODataConnectorProfileProperties
sAPODataConnectorProfileProperties_oAuthProperties = (SAPODataConnectorProfileProperties -> Maybe OAuthProperties)
-> (SAPODataConnectorProfileProperties
    -> Maybe OAuthProperties -> SAPODataConnectorProfileProperties)
-> Lens
     SAPODataConnectorProfileProperties
     SAPODataConnectorProfileProperties
     (Maybe OAuthProperties)
     (Maybe 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)

-- | The location of the SAPOData resource.
sAPODataConnectorProfileProperties_applicationHostUrl :: Lens.Lens' SAPODataConnectorProfileProperties Prelude.Text
sAPODataConnectorProfileProperties_applicationHostUrl :: (Text -> f Text)
-> SAPODataConnectorProfileProperties
-> f SAPODataConnectorProfileProperties
sAPODataConnectorProfileProperties_applicationHostUrl = (SAPODataConnectorProfileProperties -> Text)
-> (SAPODataConnectorProfileProperties
    -> Text -> SAPODataConnectorProfileProperties)
-> Lens
     SAPODataConnectorProfileProperties
     SAPODataConnectorProfileProperties
     Text
     Text
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)

-- | The application path to catalog service.
sAPODataConnectorProfileProperties_applicationServicePath :: Lens.Lens' SAPODataConnectorProfileProperties Prelude.Text
sAPODataConnectorProfileProperties_applicationServicePath :: (Text -> f Text)
-> SAPODataConnectorProfileProperties
-> f SAPODataConnectorProfileProperties
sAPODataConnectorProfileProperties_applicationServicePath = (SAPODataConnectorProfileProperties -> Text)
-> (SAPODataConnectorProfileProperties
    -> Text -> SAPODataConnectorProfileProperties)
-> Lens
     SAPODataConnectorProfileProperties
     SAPODataConnectorProfileProperties
     Text
     Text
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)

-- | The port number of the SAPOData instance.
sAPODataConnectorProfileProperties_portNumber :: Lens.Lens' SAPODataConnectorProfileProperties Prelude.Natural
sAPODataConnectorProfileProperties_portNumber :: (Natural -> f Natural)
-> SAPODataConnectorProfileProperties
-> f SAPODataConnectorProfileProperties
sAPODataConnectorProfileProperties_portNumber = (SAPODataConnectorProfileProperties -> Natural)
-> (SAPODataConnectorProfileProperties
    -> Natural -> SAPODataConnectorProfileProperties)
-> Lens
     SAPODataConnectorProfileProperties
     SAPODataConnectorProfileProperties
     Natural
     Natural
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)

-- | The client number for the client creating the connection.
sAPODataConnectorProfileProperties_clientNumber :: Lens.Lens' SAPODataConnectorProfileProperties Prelude.Text
sAPODataConnectorProfileProperties_clientNumber :: (Text -> f Text)
-> SAPODataConnectorProfileProperties
-> f SAPODataConnectorProfileProperties
sAPODataConnectorProfileProperties_clientNumber = (SAPODataConnectorProfileProperties -> Text)
-> (SAPODataConnectorProfileProperties
    -> Text -> SAPODataConnectorProfileProperties)
-> Lens
     SAPODataConnectorProfileProperties
     SAPODataConnectorProfileProperties
     Text
     Text
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
  Core.FromJSON
    SAPODataConnectorProfileProperties
  where
  parseJSON :: Value -> Parser SAPODataConnectorProfileProperties
parseJSON =
    String
-> (Object -> Parser SAPODataConnectorProfileProperties)
-> Value
-> Parser SAPODataConnectorProfileProperties
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Core.withObject
      String
"SAPODataConnectorProfileProperties"
      ( \Object
x ->
          Maybe Text
-> Maybe Text
-> Maybe OAuthProperties
-> Text
-> Text
-> Natural
-> Text
-> SAPODataConnectorProfileProperties
SAPODataConnectorProfileProperties'
            (Maybe Text
 -> Maybe Text
 -> Maybe OAuthProperties
 -> Text
 -> Text
 -> Natural
 -> Text
 -> SAPODataConnectorProfileProperties)
-> Parser (Maybe Text)
-> Parser
     (Maybe Text
      -> Maybe OAuthProperties
      -> Text
      -> Text
      -> Natural
      -> Text
      -> SAPODataConnectorProfileProperties)
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
"logonLanguage")
            Parser
  (Maybe Text
   -> Maybe OAuthProperties
   -> Text
   -> Text
   -> Natural
   -> Text
   -> SAPODataConnectorProfileProperties)
-> Parser (Maybe Text)
-> Parser
     (Maybe OAuthProperties
      -> Text
      -> Text
      -> Natural
      -> Text
      -> SAPODataConnectorProfileProperties)
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
"privateLinkServiceName")
            Parser
  (Maybe OAuthProperties
   -> Text
   -> Text
   -> Natural
   -> Text
   -> SAPODataConnectorProfileProperties)
-> Parser (Maybe OAuthProperties)
-> Parser
     (Text
      -> Text -> Natural -> Text -> SAPODataConnectorProfileProperties)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe OAuthProperties)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"oAuthProperties")
            Parser
  (Text
   -> Text -> Natural -> Text -> SAPODataConnectorProfileProperties)
-> Parser Text
-> Parser
     (Text -> Natural -> Text -> SAPODataConnectorProfileProperties)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser Text
forall a. FromJSON a => Object -> Text -> Parser a
Core..: Text
"applicationHostUrl")
            Parser
  (Text -> Natural -> Text -> SAPODataConnectorProfileProperties)
-> Parser Text
-> Parser (Natural -> Text -> SAPODataConnectorProfileProperties)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser Text
forall a. FromJSON a => Object -> Text -> Parser a
Core..: Text
"applicationServicePath")
            Parser (Natural -> Text -> SAPODataConnectorProfileProperties)
-> Parser Natural
-> Parser (Text -> SAPODataConnectorProfileProperties)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser Natural
forall a. FromJSON a => Object -> Text -> Parser a
Core..: Text
"portNumber")
            Parser (Text -> SAPODataConnectorProfileProperties)
-> Parser Text -> Parser SAPODataConnectorProfileProperties
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser Text
forall a. FromJSON a => Object -> Text -> Parser a
Core..: Text
"clientNumber")
      )

instance
  Prelude.Hashable
    SAPODataConnectorProfileProperties

instance
  Prelude.NFData
    SAPODataConnectorProfileProperties

instance
  Core.ToJSON
    SAPODataConnectorProfileProperties
  where
  toJSON :: SAPODataConnectorProfileProperties -> Value
toJSON SAPODataConnectorProfileProperties' {Natural
Maybe Text
Maybe OAuthProperties
Text
clientNumber :: Text
portNumber :: Natural
applicationServicePath :: Text
applicationHostUrl :: Text
oAuthProperties :: Maybe OAuthProperties
privateLinkServiceName :: Maybe Text
logonLanguage :: Maybe Text
$sel:clientNumber:SAPODataConnectorProfileProperties' :: SAPODataConnectorProfileProperties -> Text
$sel:portNumber:SAPODataConnectorProfileProperties' :: SAPODataConnectorProfileProperties -> Natural
$sel:applicationServicePath:SAPODataConnectorProfileProperties' :: SAPODataConnectorProfileProperties -> Text
$sel:applicationHostUrl:SAPODataConnectorProfileProperties' :: SAPODataConnectorProfileProperties -> Text
$sel:oAuthProperties:SAPODataConnectorProfileProperties' :: SAPODataConnectorProfileProperties -> Maybe OAuthProperties
$sel:privateLinkServiceName:SAPODataConnectorProfileProperties' :: SAPODataConnectorProfileProperties -> Maybe Text
$sel:logonLanguage:SAPODataConnectorProfileProperties' :: SAPODataConnectorProfileProperties -> Maybe Text
..} =
    [Pair] -> Value
Core.object
      ( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
          [ (Text
"logonLanguage" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (Text -> Pair) -> Maybe Text -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
logonLanguage,
            (Text
"privateLinkServiceName" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
              (Text -> Pair) -> Maybe Text -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
privateLinkServiceName,
            (Text
"oAuthProperties" Text -> OAuthProperties -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
              (OAuthProperties -> Pair) -> Maybe OAuthProperties -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe OAuthProperties
oAuthProperties,
            Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just
              (Text
"applicationHostUrl" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
applicationHostUrl),
            Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just
              ( Text
"applicationServicePath"
                  Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
applicationServicePath
              ),
            Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just (Text
"portNumber" Text -> Natural -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Natural
portNumber),
            Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just (Text
"clientNumber" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
clientNumber)
          ]
      )