amazonka-iotsitewise-2.0: Amazon IoT SiteWise 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.IoTSiteWise.Types.Variant

Description

 
Synopsis

Documentation

data Variant Source #

Contains an asset property value (of a single type only).

See: newVariant smart constructor.

Constructors

Variant' 

Fields

Instances

Instances details
FromJSON Variant Source # 
Instance details

Defined in Amazonka.IoTSiteWise.Types.Variant

ToJSON Variant Source # 
Instance details

Defined in Amazonka.IoTSiteWise.Types.Variant

Generic Variant Source # 
Instance details

Defined in Amazonka.IoTSiteWise.Types.Variant

Associated Types

type Rep Variant :: Type -> Type #

Methods

from :: Variant -> Rep Variant x #

to :: Rep Variant x -> Variant #

Read Variant Source # 
Instance details

Defined in Amazonka.IoTSiteWise.Types.Variant

Show Variant Source # 
Instance details

Defined in Amazonka.IoTSiteWise.Types.Variant

NFData Variant Source # 
Instance details

Defined in Amazonka.IoTSiteWise.Types.Variant

Methods

rnf :: Variant -> () #

Eq Variant Source # 
Instance details

Defined in Amazonka.IoTSiteWise.Types.Variant

Methods

(==) :: Variant -> Variant -> Bool #

(/=) :: Variant -> Variant -> Bool #

Hashable Variant Source # 
Instance details

Defined in Amazonka.IoTSiteWise.Types.Variant

Methods

hashWithSalt :: Int -> Variant -> Int #

hash :: Variant -> Int #

type Rep Variant Source # 
Instance details

Defined in Amazonka.IoTSiteWise.Types.Variant

type Rep Variant = D1 ('MetaData "Variant" "Amazonka.IoTSiteWise.Types.Variant" "amazonka-iotsitewise-2.0-AK8rDlpQ5oPJsrLUUxJgY" 'False) (C1 ('MetaCons "Variant'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "booleanValue") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool)) :*: S1 ('MetaSel ('Just "doubleValue") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Double))) :*: (S1 ('MetaSel ('Just "integerValue") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Int)) :*: S1 ('MetaSel ('Just "stringValue") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)))))

newVariant :: Variant Source #

Create a value of Variant 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:booleanValue:Variant', variant_booleanValue - Asset property data of type Boolean (true or false).

$sel:doubleValue:Variant', variant_doubleValue - Asset property data of type double (floating point number).

$sel:integerValue:Variant', variant_integerValue - Asset property data of type integer (whole number).

$sel:stringValue:Variant', variant_stringValue - Asset property data of type string (sequence of characters).

variant_booleanValue :: Lens' Variant (Maybe Bool) Source #

Asset property data of type Boolean (true or false).

variant_doubleValue :: Lens' Variant (Maybe Double) Source #

Asset property data of type double (floating point number).

variant_integerValue :: Lens' Variant (Maybe Int) Source #

Asset property data of type integer (whole number).

variant_stringValue :: Lens' Variant (Maybe Text) Source #

Asset property data of type string (sequence of characters).