{-# 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.SageMaker.Types.UiTemplate -- 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.SageMaker.Types.UiTemplate 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 Liquid template for the worker user interface. -- -- /See:/ 'newUiTemplate' smart constructor. data UiTemplate = UiTemplate' { -- | The content of the Liquid template for the worker user interface. content :: Prelude.Text } deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic) -- | -- Create a value of 'UiTemplate' 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: -- -- 'content', 'uiTemplate_content' - The content of the Liquid template for the worker user interface. newUiTemplate :: -- | 'content' Prelude.Text -> UiTemplate newUiTemplate pContent_ = UiTemplate' {content = pContent_} -- | The content of the Liquid template for the worker user interface. uiTemplate_content :: Lens.Lens' UiTemplate Prelude.Text uiTemplate_content = Lens.lens (\UiTemplate' {content} -> content) (\s@UiTemplate' {} a -> s {content = a} :: UiTemplate) instance Prelude.Hashable UiTemplate where hashWithSalt _salt UiTemplate' {..} = _salt `Prelude.hashWithSalt` content instance Prelude.NFData UiTemplate where rnf UiTemplate' {..} = Prelude.rnf content instance Data.ToJSON UiTemplate where toJSON UiTemplate' {..} = Data.object ( Prelude.catMaybes [Prelude.Just ("Content" Data..= content)] )