libZSservicesZSamazonka-iotsitewiseZSamazonka-iotsitewise
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

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
Eq Variant Source # 
Instance details

Defined in Amazonka.IoTSiteWise.Types.Variant

Methods

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

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

Read Variant Source # 
Instance details

Defined in Amazonka.IoTSiteWise.Types.Variant

Show 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 #

NFData Variant Source # 
Instance details

Defined in Amazonka.IoTSiteWise.Types.Variant

Methods

rnf :: Variant -> () #

Hashable Variant Source # 
Instance details

Defined in Amazonka.IoTSiteWise.Types.Variant

Methods

hashWithSalt :: Int -> Variant -> Int #

hash :: Variant -> Int #

ToJSON Variant Source # 
Instance details

Defined in Amazonka.IoTSiteWise.Types.Variant

FromJSON Variant Source # 
Instance details

Defined in Amazonka.IoTSiteWise.Types.Variant

type Rep Variant Source # 
Instance details

Defined in Amazonka.IoTSiteWise.Types.Variant

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

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:integerValue:Variant', variant_integerValue - Asset property data of type integer (whole number).

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

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

$sel:booleanValue:Variant', variant_booleanValue - Asset property data of type Boolean (true or false).

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

Asset property data of type integer (whole number).

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

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

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

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).