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