{-# 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.GoogleAnalyticsSourceProperties -- Copyright : (c) 2013-2023 Brendan Hay -- License : Mozilla Public License, v. 2.0. -- Maintainer : Brendan Hay -- Stability : auto-generated -- Portability : non-portable (GHC extensions) 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 -- | The properties that are applied when Google Analytics is being used as a -- source. -- -- /See:/ 'newGoogleAnalyticsSourceProperties' smart constructor. data GoogleAnalyticsSourceProperties = GoogleAnalyticsSourceProperties' { -- | The object specified in the Google Analytics flow source. object' :: Prelude.Text } deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic) -- | -- Create a value of 'GoogleAnalyticsSourceProperties' with all optional fields omitted. -- -- Use or to modify other optional fields. -- -- The following record fields are available, with the corresponding lenses provided -- for backwards compatibility: -- -- 'object'', 'googleAnalyticsSourceProperties_object' - The object specified in the Google Analytics flow source. newGoogleAnalyticsSourceProperties :: -- | 'object'' Prelude.Text -> GoogleAnalyticsSourceProperties newGoogleAnalyticsSourceProperties pObject_ = GoogleAnalyticsSourceProperties' { object' = pObject_ } -- | The object specified in the Google Analytics flow source. googleAnalyticsSourceProperties_object :: Lens.Lens' GoogleAnalyticsSourceProperties Prelude.Text googleAnalyticsSourceProperties_object = Lens.lens (\GoogleAnalyticsSourceProperties' {object'} -> object') (\s@GoogleAnalyticsSourceProperties' {} a -> s {object' = a} :: GoogleAnalyticsSourceProperties) instance Data.FromJSON GoogleAnalyticsSourceProperties where parseJSON = Data.withObject "GoogleAnalyticsSourceProperties" ( \x -> GoogleAnalyticsSourceProperties' Prelude.<$> (x Data..: "object") ) instance Prelude.Hashable GoogleAnalyticsSourceProperties where hashWithSalt _salt GoogleAnalyticsSourceProperties' {..} = _salt `Prelude.hashWithSalt` object' instance Prelude.NFData GoogleAnalyticsSourceProperties where rnf GoogleAnalyticsSourceProperties' {..} = Prelude.rnf object' instance Data.ToJSON GoogleAnalyticsSourceProperties where toJSON GoogleAnalyticsSourceProperties' {..} = Data.object ( Prelude.catMaybes [Prelude.Just ("object" Data..= object')] )