{-# 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.AmplitudeSourceProperties -- 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.AmplitudeSourceProperties 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 Amplitude is being used as a -- source. -- -- /See:/ 'newAmplitudeSourceProperties' smart constructor. data AmplitudeSourceProperties = AmplitudeSourceProperties' { -- | The object specified in the Amplitude flow source. object' :: Prelude.Text } deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic) -- | -- Create a value of 'AmplitudeSourceProperties' 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'', 'amplitudeSourceProperties_object' - The object specified in the Amplitude flow source. newAmplitudeSourceProperties :: -- | 'object'' Prelude.Text -> AmplitudeSourceProperties newAmplitudeSourceProperties pObject_ = AmplitudeSourceProperties' {object' = pObject_} -- | The object specified in the Amplitude flow source. amplitudeSourceProperties_object :: Lens.Lens' AmplitudeSourceProperties Prelude.Text amplitudeSourceProperties_object = Lens.lens (\AmplitudeSourceProperties' {object'} -> object') (\s@AmplitudeSourceProperties' {} a -> s {object' = a} :: AmplitudeSourceProperties) instance Data.FromJSON AmplitudeSourceProperties where parseJSON = Data.withObject "AmplitudeSourceProperties" ( \x -> AmplitudeSourceProperties' Prelude.<$> (x Data..: "object") ) instance Prelude.Hashable AmplitudeSourceProperties where hashWithSalt _salt AmplitudeSourceProperties' {..} = _salt `Prelude.hashWithSalt` object' instance Prelude.NFData AmplitudeSourceProperties where rnf AmplitudeSourceProperties' {..} = Prelude.rnf object' instance Data.ToJSON AmplitudeSourceProperties where toJSON AmplitudeSourceProperties' {..} = Data.object ( Prelude.catMaybes [Prelude.Just ("object" Data..= object')] )