{-# 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.VeevaConnectorProfileProperties where
import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
data VeevaConnectorProfileProperties = VeevaConnectorProfileProperties'
{
VeevaConnectorProfileProperties -> Text
instanceUrl :: Prelude.Text
}
deriving (VeevaConnectorProfileProperties
-> VeevaConnectorProfileProperties -> Bool
(VeevaConnectorProfileProperties
-> VeevaConnectorProfileProperties -> Bool)
-> (VeevaConnectorProfileProperties
-> VeevaConnectorProfileProperties -> Bool)
-> Eq VeevaConnectorProfileProperties
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: VeevaConnectorProfileProperties
-> VeevaConnectorProfileProperties -> Bool
$c/= :: VeevaConnectorProfileProperties
-> VeevaConnectorProfileProperties -> Bool
== :: VeevaConnectorProfileProperties
-> VeevaConnectorProfileProperties -> Bool
$c== :: VeevaConnectorProfileProperties
-> VeevaConnectorProfileProperties -> Bool
Prelude.Eq, ReadPrec [VeevaConnectorProfileProperties]
ReadPrec VeevaConnectorProfileProperties
Int -> ReadS VeevaConnectorProfileProperties
ReadS [VeevaConnectorProfileProperties]
(Int -> ReadS VeevaConnectorProfileProperties)
-> ReadS [VeevaConnectorProfileProperties]
-> ReadPrec VeevaConnectorProfileProperties
-> ReadPrec [VeevaConnectorProfileProperties]
-> Read VeevaConnectorProfileProperties
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [VeevaConnectorProfileProperties]
$creadListPrec :: ReadPrec [VeevaConnectorProfileProperties]
readPrec :: ReadPrec VeevaConnectorProfileProperties
$creadPrec :: ReadPrec VeevaConnectorProfileProperties
readList :: ReadS [VeevaConnectorProfileProperties]
$creadList :: ReadS [VeevaConnectorProfileProperties]
readsPrec :: Int -> ReadS VeevaConnectorProfileProperties
$creadsPrec :: Int -> ReadS VeevaConnectorProfileProperties
Prelude.Read, Int -> VeevaConnectorProfileProperties -> ShowS
[VeevaConnectorProfileProperties] -> ShowS
VeevaConnectorProfileProperties -> String
(Int -> VeevaConnectorProfileProperties -> ShowS)
-> (VeevaConnectorProfileProperties -> String)
-> ([VeevaConnectorProfileProperties] -> ShowS)
-> Show VeevaConnectorProfileProperties
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [VeevaConnectorProfileProperties] -> ShowS
$cshowList :: [VeevaConnectorProfileProperties] -> ShowS
show :: VeevaConnectorProfileProperties -> String
$cshow :: VeevaConnectorProfileProperties -> String
showsPrec :: Int -> VeevaConnectorProfileProperties -> ShowS
$cshowsPrec :: Int -> VeevaConnectorProfileProperties -> ShowS
Prelude.Show, (forall x.
VeevaConnectorProfileProperties
-> Rep VeevaConnectorProfileProperties x)
-> (forall x.
Rep VeevaConnectorProfileProperties x
-> VeevaConnectorProfileProperties)
-> Generic VeevaConnectorProfileProperties
forall x.
Rep VeevaConnectorProfileProperties x
-> VeevaConnectorProfileProperties
forall x.
VeevaConnectorProfileProperties
-> Rep VeevaConnectorProfileProperties x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep VeevaConnectorProfileProperties x
-> VeevaConnectorProfileProperties
$cfrom :: forall x.
VeevaConnectorProfileProperties
-> Rep VeevaConnectorProfileProperties x
Prelude.Generic)
newVeevaConnectorProfileProperties ::
Prelude.Text ->
VeevaConnectorProfileProperties
newVeevaConnectorProfileProperties :: Text -> VeevaConnectorProfileProperties
newVeevaConnectorProfileProperties Text
pInstanceUrl_ =
VeevaConnectorProfileProperties' :: Text -> VeevaConnectorProfileProperties
VeevaConnectorProfileProperties'
{ $sel:instanceUrl:VeevaConnectorProfileProperties' :: Text
instanceUrl =
Text
pInstanceUrl_
}
veevaConnectorProfileProperties_instanceUrl :: Lens.Lens' VeevaConnectorProfileProperties Prelude.Text
veevaConnectorProfileProperties_instanceUrl :: (Text -> f Text)
-> VeevaConnectorProfileProperties
-> f VeevaConnectorProfileProperties
veevaConnectorProfileProperties_instanceUrl = (VeevaConnectorProfileProperties -> Text)
-> (VeevaConnectorProfileProperties
-> Text -> VeevaConnectorProfileProperties)
-> Lens
VeevaConnectorProfileProperties
VeevaConnectorProfileProperties
Text
Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\VeevaConnectorProfileProperties' {Text
instanceUrl :: Text
$sel:instanceUrl:VeevaConnectorProfileProperties' :: VeevaConnectorProfileProperties -> Text
instanceUrl} -> Text
instanceUrl) (\s :: VeevaConnectorProfileProperties
s@VeevaConnectorProfileProperties' {} Text
a -> VeevaConnectorProfileProperties
s {$sel:instanceUrl:VeevaConnectorProfileProperties' :: Text
instanceUrl = Text
a} :: VeevaConnectorProfileProperties)
instance
Core.FromJSON
VeevaConnectorProfileProperties
where
parseJSON :: Value -> Parser VeevaConnectorProfileProperties
parseJSON =
String
-> (Object -> Parser VeevaConnectorProfileProperties)
-> Value
-> Parser VeevaConnectorProfileProperties
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Core.withObject
String
"VeevaConnectorProfileProperties"
( \Object
x ->
Text -> VeevaConnectorProfileProperties
VeevaConnectorProfileProperties'
(Text -> VeevaConnectorProfileProperties)
-> Parser Text -> Parser VeevaConnectorProfileProperties
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Parser Text
forall a. FromJSON a => Object -> Text -> Parser a
Core..: Text
"instanceUrl")
)
instance
Prelude.Hashable
VeevaConnectorProfileProperties
instance
Prelude.NFData
VeevaConnectorProfileProperties
instance Core.ToJSON VeevaConnectorProfileProperties where
toJSON :: VeevaConnectorProfileProperties -> Value
toJSON VeevaConnectorProfileProperties' {Text
instanceUrl :: Text
$sel:instanceUrl:VeevaConnectorProfileProperties' :: VeevaConnectorProfileProperties -> Text
..} =
[Pair] -> Value
Core.object
( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just (Text
"instanceUrl" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
instanceUrl)]
)