public static interface CfnAssetModel.TransformProperty
A transform is a one-to-one mapping of a property's data points from one form to another. For example, you can use a transform to convert a Celsius data stream to Fahrenheit by applying the transformation expression to each data point of the Celsius stream. Transforms can only input properties that are INTEGER
, DOUBLE
, or BOOLEAN
type. Booleans convert to 0
( FALSE
) and 1
( TRUE
)..
For more information, see Defining data properties in the AWS IoT SiteWise User Guide .
Example:
// The code below shows an example of how to instantiate this type. // The values are placeholders you should change. import software.amazon.awscdk.services.iotsitewise.*; TransformProperty transformProperty = TransformProperty.builder() .expression("expression") .variables(List.of(ExpressionVariableProperty.builder() .name("name") .value(VariableValueProperty.builder() .propertyLogicalId("propertyLogicalId") // the properties below are optional .hierarchyLogicalId("hierarchyLogicalId") .build()) .build())) .build();
Modifier and Type | Interface and Description |
---|---|
static class |
CfnAssetModel.TransformProperty.Builder
A builder for
CfnAssetModel.TransformProperty |
static class |
CfnAssetModel.TransformProperty.Jsii$Proxy
An implementation for
CfnAssetModel.TransformProperty |
Modifier and Type | Method and Description |
---|---|
static CfnAssetModel.TransformProperty.Builder |
builder() |
java.lang.String |
getExpression()
The mathematical expression that defines the transformation function.
|
java.lang.Object |
getVariables()
The list of variables used in the expression.
|
java.lang.String getExpression()
You can specify up to 10 variables per expression. You can specify up to 10 functions per expression.
For more information, see Quotas in the AWS IoT SiteWise User Guide .
java.lang.Object getVariables()
static CfnAssetModel.TransformProperty.Builder builder()