amazonka-evidently-2.0: Amazon CloudWatch Evidently SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.Evidently.Types.VariableValue

Description

 
Synopsis

Documentation

data VariableValue Source #

The value assigned to a feature variation. This structure must contain exactly one field. It can be boolValue, doubleValue, longValue, or stringValue.

See: newVariableValue smart constructor.

Constructors

VariableValue' 

Fields

  • boolValue :: Maybe Bool

    If this feature uses the Boolean variation type, this field contains the Boolean value of this variation.

  • doubleValue :: Maybe Double

    If this feature uses the double integer variation type, this field contains the double integer value of this variation.

  • longValue :: Maybe Integer

    If this feature uses the long variation type, this field contains the long value of this variation.

  • stringValue :: Maybe Text

    If this feature uses the string variation type, this field contains the string value of this variation.

Instances

Instances details
FromJSON VariableValue Source # 
Instance details

Defined in Amazonka.Evidently.Types.VariableValue

ToJSON VariableValue Source # 
Instance details

Defined in Amazonka.Evidently.Types.VariableValue

Generic VariableValue Source # 
Instance details

Defined in Amazonka.Evidently.Types.VariableValue

Associated Types

type Rep VariableValue :: Type -> Type #

Read VariableValue Source # 
Instance details

Defined in Amazonka.Evidently.Types.VariableValue

Show VariableValue Source # 
Instance details

Defined in Amazonka.Evidently.Types.VariableValue

NFData VariableValue Source # 
Instance details

Defined in Amazonka.Evidently.Types.VariableValue

Methods

rnf :: VariableValue -> () #

Eq VariableValue Source # 
Instance details

Defined in Amazonka.Evidently.Types.VariableValue

Hashable VariableValue Source # 
Instance details

Defined in Amazonka.Evidently.Types.VariableValue

type Rep VariableValue Source # 
Instance details

Defined in Amazonka.Evidently.Types.VariableValue

type Rep VariableValue = D1 ('MetaData "VariableValue" "Amazonka.Evidently.Types.VariableValue" "amazonka-evidently-2.0-Es2fJk98R0DAUPYaVkZSYC" 'False) (C1 ('MetaCons "VariableValue'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "boolValue") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool)) :*: S1 ('MetaSel ('Just "doubleValue") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Double))) :*: (S1 ('MetaSel ('Just "longValue") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Integer)) :*: S1 ('MetaSel ('Just "stringValue") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)))))

newVariableValue :: VariableValue Source #

Create a value of VariableValue with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:boolValue:VariableValue', variableValue_boolValue - If this feature uses the Boolean variation type, this field contains the Boolean value of this variation.

$sel:doubleValue:VariableValue', variableValue_doubleValue - If this feature uses the double integer variation type, this field contains the double integer value of this variation.

$sel:longValue:VariableValue', variableValue_longValue - If this feature uses the long variation type, this field contains the long value of this variation.

$sel:stringValue:VariableValue', variableValue_stringValue - If this feature uses the string variation type, this field contains the string value of this variation.

variableValue_boolValue :: Lens' VariableValue (Maybe Bool) Source #

If this feature uses the Boolean variation type, this field contains the Boolean value of this variation.

variableValue_doubleValue :: Lens' VariableValue (Maybe Double) Source #

If this feature uses the double integer variation type, this field contains the double integer value of this variation.

variableValue_longValue :: Lens' VariableValue (Maybe Integer) Source #

If this feature uses the long variation type, this field contains the long value of this variation.

variableValue_stringValue :: Lens' VariableValue (Maybe Text) Source #

If this feature uses the string variation type, this field contains the string value of this variation.