@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 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.
|
TransformProcessingConfig |
getProcessingConfig()
The processing configuration for the given transform property.
|
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 |
setProcessingConfig(TransformProcessingConfig processingConfig)
The processing configuration for the given transform property.
|
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 |
withProcessingConfig(TransformProcessingConfig processingConfig)
The processing configuration for the given transform property.
|
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 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 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 IoT SiteWise User Guide.
For more information, see Quotas in the 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 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 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 void setProcessingConfig(TransformProcessingConfig processingConfig)
The processing configuration for the given transform property. You can configure transforms to be kept at the edge or forwarded to the Amazon Web Services Cloud. You can also configure transforms to be computed at the edge or in the cloud.
processingConfig
- The processing configuration for the given transform property. You can configure transforms to be kept at
the edge or forwarded to the Amazon Web Services Cloud. You can also configure transforms to be computed
at the edge or in the cloud.public TransformProcessingConfig getProcessingConfig()
The processing configuration for the given transform property. You can configure transforms to be kept at the edge or forwarded to the Amazon Web Services Cloud. You can also configure transforms to be computed at the edge or in the cloud.
public Transform withProcessingConfig(TransformProcessingConfig processingConfig)
The processing configuration for the given transform property. You can configure transforms to be kept at the edge or forwarded to the Amazon Web Services Cloud. You can also configure transforms to be computed at the edge or in the cloud.
processingConfig
- The processing configuration for the given transform property. You can configure transforms to be kept at
the edge or forwarded to the Amazon Web Services Cloud. You can also configure transforms to be computed
at the edge or in the cloud.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.