{-# 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.QuickSight.Types.TemplateSourceTemplate -- 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.QuickSight.Types.TemplateSourceTemplate 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 source template of the template. -- -- /See:/ 'newTemplateSourceTemplate' smart constructor. data TemplateSourceTemplate = TemplateSourceTemplate' { -- | The Amazon Resource Name (ARN) of the resource. arn :: Prelude.Text } deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic) -- | -- Create a value of 'TemplateSourceTemplate' 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: -- -- 'arn', 'templateSourceTemplate_arn' - The Amazon Resource Name (ARN) of the resource. newTemplateSourceTemplate :: -- | 'arn' Prelude.Text -> TemplateSourceTemplate newTemplateSourceTemplate pArn_ = TemplateSourceTemplate' {arn = pArn_} -- | The Amazon Resource Name (ARN) of the resource. templateSourceTemplate_arn :: Lens.Lens' TemplateSourceTemplate Prelude.Text templateSourceTemplate_arn = Lens.lens (\TemplateSourceTemplate' {arn} -> arn) (\s@TemplateSourceTemplate' {} a -> s {arn = a} :: TemplateSourceTemplate) instance Prelude.Hashable TemplateSourceTemplate where hashWithSalt _salt TemplateSourceTemplate' {..} = _salt `Prelude.hashWithSalt` arn instance Prelude.NFData TemplateSourceTemplate where rnf TemplateSourceTemplate' {..} = Prelude.rnf arn instance Data.ToJSON TemplateSourceTemplate where toJSON TemplateSourceTemplate' {..} = Data.object ( Prelude.catMaybes [Prelude.Just ("Arn" Data..= arn)] )