@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Channel extends Object implements Serializable, Cloneable, StructuredPojo
A collection of data from an MQTT topic. Channels archive the raw, unprocessed messages before publishing the data to a pipeline.
Constructor and Description |
---|
Channel() |
Modifier and Type | Method and Description |
---|---|
Channel |
clone() |
boolean |
equals(Object obj) |
String |
getArn()
The ARN of the channel.
|
Date |
getCreationTime()
When the channel was created.
|
Date |
getLastMessageArrivalTime()
The last time when a new message arrived in the channel.
|
Date |
getLastUpdateTime()
When the channel was last updated.
|
String |
getName()
The name of the channel.
|
RetentionPeriod |
getRetentionPeriod()
How long, in days, message data is kept for the channel.
|
String |
getStatus()
The status of the channel.
|
ChannelStorage |
getStorage()
Where channel data is stored.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setArn(String arn)
The ARN of the channel.
|
void |
setCreationTime(Date creationTime)
When the channel was created.
|
void |
setLastMessageArrivalTime(Date lastMessageArrivalTime)
The last time when a new message arrived in the channel.
|
void |
setLastUpdateTime(Date lastUpdateTime)
When the channel was last updated.
|
void |
setName(String name)
The name of the channel.
|
void |
setRetentionPeriod(RetentionPeriod retentionPeriod)
How long, in days, message data is kept for the channel.
|
void |
setStatus(String status)
The status of the channel.
|
void |
setStorage(ChannelStorage storage)
Where channel data is stored.
|
String |
toString()
Returns a string representation of this object.
|
Channel |
withArn(String arn)
The ARN of the channel.
|
Channel |
withCreationTime(Date creationTime)
When the channel was created.
|
Channel |
withLastMessageArrivalTime(Date lastMessageArrivalTime)
The last time when a new message arrived in the channel.
|
Channel |
withLastUpdateTime(Date lastUpdateTime)
When the channel was last updated.
|
Channel |
withName(String name)
The name of the channel.
|
Channel |
withRetentionPeriod(RetentionPeriod retentionPeriod)
How long, in days, message data is kept for the channel.
|
Channel |
withStatus(ChannelStatus status)
The status of the channel.
|
Channel |
withStatus(String status)
The status of the channel.
|
Channel |
withStorage(ChannelStorage storage)
Where channel data is stored.
|
public void setName(String name)
The name of the channel.
name
- The name of the channel.public String getName()
The name of the channel.
public Channel withName(String name)
The name of the channel.
name
- The name of the channel.public void setStorage(ChannelStorage storage)
Where channel data is stored. You can choose one of serviceManagedS3
or
customerManagedS3
storage. If not specified, the default is serviceManagedS3
. You can't
change this storage option after the channel is created.
storage
- Where channel data is stored. You can choose one of serviceManagedS3
or
customerManagedS3
storage. If not specified, the default is serviceManagedS3
.
You can't change this storage option after the channel is created.public ChannelStorage getStorage()
Where channel data is stored. You can choose one of serviceManagedS3
or
customerManagedS3
storage. If not specified, the default is serviceManagedS3
. You can't
change this storage option after the channel is created.
serviceManagedS3
or
customerManagedS3
storage. If not specified, the default is serviceManagedS3
.
You can't change this storage option after the channel is created.public Channel withStorage(ChannelStorage storage)
Where channel data is stored. You can choose one of serviceManagedS3
or
customerManagedS3
storage. If not specified, the default is serviceManagedS3
. You can't
change this storage option after the channel is created.
storage
- Where channel data is stored. You can choose one of serviceManagedS3
or
customerManagedS3
storage. If not specified, the default is serviceManagedS3
.
You can't change this storage option after the channel is created.public void setArn(String arn)
The ARN of the channel.
arn
- The ARN of the channel.public String getArn()
The ARN of the channel.
public Channel withArn(String arn)
The ARN of the channel.
arn
- The ARN of the channel.public void setStatus(String status)
The status of the channel.
status
- The status of the channel.ChannelStatus
public String getStatus()
The status of the channel.
ChannelStatus
public Channel withStatus(String status)
The status of the channel.
status
- The status of the channel.ChannelStatus
public Channel withStatus(ChannelStatus status)
The status of the channel.
status
- The status of the channel.ChannelStatus
public void setRetentionPeriod(RetentionPeriod retentionPeriod)
How long, in days, message data is kept for the channel.
retentionPeriod
- How long, in days, message data is kept for the channel.public RetentionPeriod getRetentionPeriod()
How long, in days, message data is kept for the channel.
public Channel withRetentionPeriod(RetentionPeriod retentionPeriod)
How long, in days, message data is kept for the channel.
retentionPeriod
- How long, in days, message data is kept for the channel.public void setCreationTime(Date creationTime)
When the channel was created.
creationTime
- When the channel was created.public Date getCreationTime()
When the channel was created.
public Channel withCreationTime(Date creationTime)
When the channel was created.
creationTime
- When the channel was created.public void setLastUpdateTime(Date lastUpdateTime)
When the channel was last updated.
lastUpdateTime
- When the channel was last updated.public Date getLastUpdateTime()
When the channel was last updated.
public Channel withLastUpdateTime(Date lastUpdateTime)
When the channel was last updated.
lastUpdateTime
- When the channel was last updated.public void setLastMessageArrivalTime(Date lastMessageArrivalTime)
The last time when a new message arrived in the channel.
IoT Analytics updates this value at most once per minute for one channel. Hence, the
lastMessageArrivalTime
value is an approximation.
This feature only applies to messages that arrived in the data store after October 23, 2020.
lastMessageArrivalTime
- The last time when a new message arrived in the channel.
IoT Analytics updates this value at most once per minute for one channel. Hence, the
lastMessageArrivalTime
value is an approximation.
This feature only applies to messages that arrived in the data store after October 23, 2020.
public Date getLastMessageArrivalTime()
The last time when a new message arrived in the channel.
IoT Analytics updates this value at most once per minute for one channel. Hence, the
lastMessageArrivalTime
value is an approximation.
This feature only applies to messages that arrived in the data store after October 23, 2020.
IoT Analytics updates this value at most once per minute for one channel. Hence, the
lastMessageArrivalTime
value is an approximation.
This feature only applies to messages that arrived in the data store after October 23, 2020.
public Channel withLastMessageArrivalTime(Date lastMessageArrivalTime)
The last time when a new message arrived in the channel.
IoT Analytics updates this value at most once per minute for one channel. Hence, the
lastMessageArrivalTime
value is an approximation.
This feature only applies to messages that arrived in the data store after October 23, 2020.
lastMessageArrivalTime
- The last time when a new message arrived in the channel.
IoT Analytics updates this value at most once per minute for one channel. Hence, the
lastMessageArrivalTime
value is an approximation.
This feature only applies to messages that arrived in the data store after October 23, 2020.
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.