@Generated(value="software.amazon.awssdk:codegen") public final class TimestreamAction extends Object implements SdkPojo, Serializable, ToCopyableBuilder<TimestreamAction.Builder,TimestreamAction>
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.
| Modifier and Type | Class and Description |
|---|---|
static interface |
TimestreamAction.Builder |
| Modifier and Type | Method and Description |
|---|---|
static TimestreamAction.Builder |
builder() |
String |
databaseName()
The name of an Amazon Timestream database.
|
List<TimestreamDimension> |
dimensions()
Metadata attributes of the time series that are written in each measure record.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
boolean |
hasDimensions()
For responses, this returns true if the service returned a value for the Dimensions property.
|
int |
hashCode() |
String |
roleArn()
The ARN of the role that grants permission to write to the Amazon Timestream database table.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends TimestreamAction.Builder> |
serializableBuilderClass() |
String |
tableName()
The name of the database table into which to write the measure records.
|
TimestreamTimestamp |
timestamp()
Specifies an application-defined value to replace the default value assigned to the Timestream record's timestamp
in the
time column. |
TimestreamAction.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final String roleArn()
The ARN of the role that grants permission to write to the Amazon Timestream database table.
public final String databaseName()
The name of an Amazon Timestream database.
public final String tableName()
The name of the database table into which to write the measure records.
public final boolean hasDimensions()
isEmpty() method on the property). This is
useful because the SDK will never return a null collection or map, but you may need to differentiate between the
service returning nothing (or null) and the service returning an empty collection or map. For requests, this
returns true if a value for the property was specified in the request builder, and false if a value was not
specified.public final List<TimestreamDimension> dimensions()
Metadata attributes of the time series that are written in each measure record.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that
you can differentiate between null and empty), you can use the hasDimensions() method.
public final 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.
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.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<TimestreamAction.Builder,TimestreamAction>public static TimestreamAction.Builder builder()
public static Class<? extends TimestreamAction.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2022. All rights reserved.