public class TimestreamAction
extends java.lang.Object
implements java.io.Serializable
The Timestream rule action writes attributes (measures) from an MQTT message into an Amazon Timestream table. For more information, see the Timestream topic rule action documentation.
Constructor and Description |
---|
TimestreamAction() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getDatabaseName()
The name of an Amazon Timestream database.
|
java.util.List<TimestreamDimension> |
getDimensions()
Metadata attributes of the time series that are written in each measure
record.
|
java.lang.String |
getRoleArn()
The ARN of the role that grants permission to write to the Amazon
Timestream database table.
|
java.lang.String |
getTableName()
The name of the database table into which to write the measure records.
|
TimestreamTimestamp |
getTimestamp()
Specifies an application-defined value to replace the default value
assigned to the Timestream record's timestamp in the
time
column. |
int |
hashCode() |
void |
setDatabaseName(java.lang.String databaseName)
The name of an Amazon Timestream database.
|
void |
setDimensions(java.util.Collection<TimestreamDimension> dimensions)
Metadata attributes of the time series that are written in each measure
record.
|
void |
setRoleArn(java.lang.String roleArn)
The ARN of the role that grants permission to write to the Amazon
Timestream database table.
|
void |
setTableName(java.lang.String tableName)
The name of the database table into which to write the measure records.
|
void |
setTimestamp(TimestreamTimestamp timestamp)
Specifies an application-defined value to replace the default value
assigned to the Timestream record's timestamp in the
time
column. |
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
TimestreamAction |
withDatabaseName(java.lang.String databaseName)
The name of an Amazon Timestream database.
|
TimestreamAction |
withDimensions(java.util.Collection<TimestreamDimension> dimensions)
Metadata attributes of the time series that are written in each measure
record.
|
TimestreamAction |
withDimensions(TimestreamDimension... dimensions)
Metadata attributes of the time series that are written in each measure
record.
|
TimestreamAction |
withRoleArn(java.lang.String roleArn)
The ARN of the role that grants permission to write to the Amazon
Timestream database table.
|
TimestreamAction |
withTableName(java.lang.String tableName)
The name of the database table into which to write the measure records.
|
TimestreamAction |
withTimestamp(TimestreamTimestamp timestamp)
Specifies an application-defined value to replace the default value
assigned to the Timestream record's timestamp in the
time
column. |
public java.lang.String getRoleArn()
The ARN of the role that grants permission to write to the Amazon Timestream database table.
The ARN of the role that grants permission to write to the Amazon Timestream database table.
public void setRoleArn(java.lang.String roleArn)
The ARN of the role that grants permission to write to the Amazon Timestream database table.
roleArn
- The ARN of the role that grants permission to write to the Amazon Timestream database table.
public TimestreamAction withRoleArn(java.lang.String roleArn)
The ARN of the role that grants permission to write to the Amazon Timestream database table.
Returns a reference to this object so that method calls can be chained together.
roleArn
- The ARN of the role that grants permission to write to the Amazon Timestream database table.
public java.lang.String getDatabaseName()
The name of an Amazon Timestream database.
The name of an Amazon Timestream database.
public void setDatabaseName(java.lang.String databaseName)
The name of an Amazon Timestream database.
databaseName
- The name of an Amazon Timestream database.
public TimestreamAction withDatabaseName(java.lang.String databaseName)
The name of an Amazon Timestream database.
Returns a reference to this object so that method calls can be chained together.
databaseName
- The name of an Amazon Timestream database.
public java.lang.String getTableName()
The name of the database table into which to write the measure records.
The name of the database table into which to write the measure records.
public void setTableName(java.lang.String tableName)
The name of the database table into which to write the measure records.
tableName
- The name of the database table into which to write the measure records.
public TimestreamAction withTableName(java.lang.String tableName)
The name of the database table into which to write the measure records.
Returns a reference to this object so that method calls can be chained together.
tableName
- The name of the database table into which to write the measure records.
public java.util.List<TimestreamDimension> getDimensions()
Metadata attributes of the time series that are written in each measure record.
Metadata attributes of the time series that are written in each measure record.
public void setDimensions(java.util.Collection<TimestreamDimension> dimensions)
Metadata attributes of the time series that are written in each measure record.
dimensions
- Metadata attributes of the time series that are written in each measure record.
public TimestreamAction withDimensions(TimestreamDimension... dimensions)
Metadata attributes of the time series that are written in each measure record.
Returns a reference to this object so that method calls can be chained together.
dimensions
- Metadata attributes of the time series that are written in each measure record.
public TimestreamAction withDimensions(java.util.Collection<TimestreamDimension> dimensions)
Metadata attributes of the time series that are written in each measure record.
Returns a reference to this object so that method calls can be chained together.
dimensions
- Metadata attributes of the time series that are written in each measure record.
public TimestreamTimestamp getTimestamp()
Specifies an application-defined value to replace the default value
assigned to the Timestream record's timestamp in the time
column.
You can use this property to specify the value and the precision of the Timestream record's timestamp. You can specify a value from the message payload or a value computed by a substitution template.
If omitted, the topic rule action assigns the timestamp, in milliseconds, at the time it processed the rule.
Specifies an application-defined value to replace the default
value assigned to the Timestream record's timestamp in the
time
column.
You can use this property to specify the value and the precision of the Timestream record's timestamp. You can specify a value from the message payload or a value computed by a substitution template.
If omitted, the topic rule action assigns the timestamp, in milliseconds, at the time it processed the rule.
public void setTimestamp(TimestreamTimestamp timestamp)
Specifies an application-defined value to replace the default value
assigned to the Timestream record's timestamp in the time
column.
You can use this property to specify the value and the precision of the Timestream record's timestamp. You can specify a value from the message payload or a value computed by a substitution template.
If omitted, the topic rule action assigns the timestamp, in milliseconds, at the time it processed the rule.
timestamp
-
Specifies an application-defined value to replace the default
value assigned to the Timestream record's timestamp in the
time
column.
You can use this property to specify the value and the precision of the Timestream record's timestamp. You can specify a value from the message payload or a value computed by a substitution template.
If omitted, the topic rule action assigns the timestamp, in milliseconds, at the time it processed the rule.
public TimestreamAction withTimestamp(TimestreamTimestamp timestamp)
Specifies an application-defined value to replace the default value
assigned to the Timestream record's timestamp in the time
column.
You can use this property to specify the value and the precision of the Timestream record's timestamp. You can specify a value from the message payload or a value computed by a substitution template.
If omitted, the topic rule action assigns the timestamp, in milliseconds, at the time it processed the rule.
Returns a reference to this object so that method calls can be chained together.
timestamp
-
Specifies an application-defined value to replace the default
value assigned to the Timestream record's timestamp in the
time
column.
You can use this property to specify the value and the precision of the Timestream record's timestamp. You can specify a value from the message payload or a value computed by a substitution template.
If omitted, the topic rule action assigns the timestamp, in milliseconds, at the time it processed the rule.
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
Copyright © 2018 Amazon Web Services, Inc. All Rights Reserved.