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