@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class TimestreamAction extends Object implements Serializable, Cloneable, StructuredPojo
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 |
---|---|
TimestreamAction |
clone() |
boolean |
equals(Object obj) |
String |
getDatabaseName()
The name of an Amazon Timestream database.
|
List<TimestreamDimension> |
getDimensions()
Metadata attributes of the time series that are written in each measure record.
|
String |
getRoleArn()
The ARN of the role that grants permission to write to the Amazon Timestream database table.
|
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 |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setDatabaseName(String databaseName)
The name of an Amazon Timestream database.
|
void |
setDimensions(Collection<TimestreamDimension> dimensions)
Metadata attributes of the time series that are written in each measure record.
|
void |
setRoleArn(String roleArn)
The ARN of the role that grants permission to write to the Amazon Timestream database table.
|
void |
setTableName(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. |
String |
toString()
Returns a string representation of this object.
|
TimestreamAction |
withDatabaseName(String databaseName)
The name of an Amazon Timestream database.
|
TimestreamAction |
withDimensions(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(String roleArn)
The ARN of the role that grants permission to write to the Amazon Timestream database table.
|
TimestreamAction |
withTableName(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 void setRoleArn(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 String getRoleArn()
The ARN of the role that grants permission to write to the Amazon Timestream database table.
public TimestreamAction withRoleArn(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 void setDatabaseName(String databaseName)
The name of an Amazon Timestream database.
databaseName
- The name of an Amazon Timestream database.public String getDatabaseName()
The name of an Amazon Timestream database.
public TimestreamAction withDatabaseName(String databaseName)
The name of an Amazon Timestream database.
databaseName
- The name of an Amazon Timestream database.public void setTableName(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 String getTableName()
The name of the database table into which to write the measure records.
public TimestreamAction withTableName(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 List<TimestreamDimension> getDimensions()
Metadata attributes of the time series that are written in each measure record.
public void setDimensions(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.
NOTE: This method appends the values to the existing list (if any). Use
setDimensions(java.util.Collection)
or withDimensions(java.util.Collection)
if you want to
override the existing values.
dimensions
- Metadata attributes of the time series that are written in each measure record.public TimestreamAction withDimensions(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 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 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.
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.
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 String toString()
toString
in class Object
Object.toString()
public TimestreamAction clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.