amazonka-honeycode-2.0: gen/Amazonka/HoneyCode/Types/VariableValue.hs
{-# 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.HoneyCode.Types.VariableValue
-- 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.HoneyCode.Types.VariableValue 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 input variables to the app to be used by the InvokeScreenAutomation
-- action request.
--
-- /See:/ 'newVariableValue' smart constructor.
data VariableValue = VariableValue'
{ -- | Raw value of the variable.
rawValue :: Prelude.Text
}
deriving (Prelude.Eq, Prelude.Show, Prelude.Generic)
-- |
-- Create a value of 'VariableValue' with all optional fields omitted.
--
-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.
--
-- The following record fields are available, with the corresponding lenses provided
-- for backwards compatibility:
--
-- 'rawValue', 'variableValue_rawValue' - Raw value of the variable.
newVariableValue ::
-- | 'rawValue'
Prelude.Text ->
VariableValue
newVariableValue pRawValue_ =
VariableValue' {rawValue = pRawValue_}
-- | Raw value of the variable.
variableValue_rawValue :: Lens.Lens' VariableValue Prelude.Text
variableValue_rawValue = Lens.lens (\VariableValue' {rawValue} -> rawValue) (\s@VariableValue' {} a -> s {rawValue = a} :: VariableValue)
instance Prelude.Hashable VariableValue where
hashWithSalt _salt VariableValue' {..} =
_salt `Prelude.hashWithSalt` rawValue
instance Prelude.NFData VariableValue where
rnf VariableValue' {..} = Prelude.rnf rawValue
instance Data.ToJSON VariableValue where
toJSON VariableValue' {..} =
Data.object
( Prelude.catMaybes
[Prelude.Just ("rawValue" Data..= rawValue)]
)