@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Transform extends Object implements Serializable, Cloneable, StructuredPojo
Contains an asset transform property. 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. A transform can only have a data type of
DOUBLE
and consume properties with data types of INTEGER
or DOUBLE
.
For more information, see Transforms in the AWS IoT SiteWise User Guide.
Constructor and Description |
---|
Transform() |
Modifier and Type | Method and Description |
---|---|
Transform |
clone() |
boolean |
equals(Object obj) |
String |
getExpression()
The mathematical expression that defines the transformation function.
|
List<ExpressionVariable> |
getVariables()
The list of variables used in the expression.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setExpression(String expression)
The mathematical expression that defines the transformation function.
|
void |
setVariables(Collection<ExpressionVariable> variables)
The list of variables used in the expression.
|
String |
toString()
Returns a string representation of this object.
|
Transform |
withExpression(String expression)
The mathematical expression that defines the transformation function.
|
Transform |
withVariables(Collection<ExpressionVariable> variables)
The list of variables used in the expression.
|
Transform |
withVariables(ExpressionVariable... variables)
The list of variables used in the expression.
|
public void setExpression(String expression)
The mathematical expression that defines the transformation function. 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.
expression
- The mathematical expression that defines the transformation function. 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.
public String getExpression()
The mathematical expression that defines the transformation function. 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.
For more information, see Quotas in the AWS IoT SiteWise User Guide.
public Transform withExpression(String expression)
The mathematical expression that defines the transformation function. 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.
expression
- The mathematical expression that defines the transformation function. 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.
public List<ExpressionVariable> getVariables()
The list of variables used in the expression.
public void setVariables(Collection<ExpressionVariable> variables)
The list of variables used in the expression.
variables
- The list of variables used in the expression.public Transform withVariables(ExpressionVariable... variables)
The list of variables used in the expression.
NOTE: This method appends the values to the existing list (if any). Use
setVariables(java.util.Collection)
or withVariables(java.util.Collection)
if you want to
override the existing values.
variables
- The list of variables used in the expression.public Transform withVariables(Collection<ExpressionVariable> variables)
The list of variables used in the expression.
variables
- The list of variables used in the expression.public String toString()
toString
in class Object
Object.toString()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.