@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 |
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 |
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 |
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 may choose one of "serviceManagedS3" or "customerManagedS3" storage. If not specified, the default is "serviceManagedS3". This cannot be changed after creation of the channel.
storage
- Where channel data is stored. You may choose one of "serviceManagedS3" or "customerManagedS3" storage. If
not specified, the default is "serviceManagedS3". This cannot be changed after creation of the channel.public ChannelStorage getStorage()
Where channel data is stored. You may choose one of "serviceManagedS3" or "customerManagedS3" storage. If not specified, the default is "serviceManagedS3". This cannot be changed after creation of the channel.
public Channel withStorage(ChannelStorage storage)
Where channel data is stored. You may choose one of "serviceManagedS3" or "customerManagedS3" storage. If not specified, the default is "serviceManagedS3". This cannot be changed after creation of the channel.
storage
- Where channel data is stored. You may choose one of "serviceManagedS3" or "customerManagedS3" storage. If
not specified, the default is "serviceManagedS3". This cannot be changed after creation of the channel.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 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.Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.