{-# 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.SSM.Types.MetadataValue -- 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.SSM.Types.MetadataValue 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 -- | Metadata to assign to an Application Manager application. -- -- /See:/ 'newMetadataValue' smart constructor. data MetadataValue = MetadataValue' { -- | Metadata value to assign to an Application Manager application. value :: Prelude.Maybe Prelude.Text } deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic) -- | -- Create a value of 'MetadataValue' 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: -- -- 'value', 'metadataValue_value' - Metadata value to assign to an Application Manager application. newMetadataValue :: MetadataValue newMetadataValue = MetadataValue' {value = Prelude.Nothing} -- | Metadata value to assign to an Application Manager application. metadataValue_value :: Lens.Lens' MetadataValue (Prelude.Maybe Prelude.Text) metadataValue_value = Lens.lens (\MetadataValue' {value} -> value) (\s@MetadataValue' {} a -> s {value = a} :: MetadataValue) instance Data.FromJSON MetadataValue where parseJSON = Data.withObject "MetadataValue" ( \x -> MetadataValue' Prelude.<$> (x Data..:? "Value") ) instance Prelude.Hashable MetadataValue where hashWithSalt _salt MetadataValue' {..} = _salt `Prelude.hashWithSalt` value instance Prelude.NFData MetadataValue where rnf MetadataValue' {..} = Prelude.rnf value instance Data.ToJSON MetadataValue where toJSON MetadataValue' {..} = Data.object ( Prelude.catMaybes [("Value" Data..=) Prelude.<$> value] )