@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Channel extends Object implements Serializable, Cloneable, StructuredPojo
The details of a channel.
Constructor and Description |
---|
Channel() |
Modifier and Type | Method and Description |
---|---|
Channel |
clone() |
boolean |
equals(Object obj) |
String |
getChannelArn()
The ARN of the channel.
|
Identity |
getCreatedBy()
The
AppInstanceUser who created the channel. |
Date |
getCreatedTimestamp()
The time at which the
AppInstanceUser created the channel. |
Date |
getLastMessageTimestamp()
The time at which a member sent the last message in the channel.
|
Date |
getLastUpdatedTimestamp()
The time at which a channel was last updated.
|
String |
getMetadata()
The channel's metadata.
|
String |
getMode()
The mode of the channel.
|
String |
getName()
The name of the channel.
|
String |
getPrivacy()
The channel's privacy setting.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setChannelArn(String channelArn)
The ARN of the channel.
|
void |
setCreatedBy(Identity createdBy)
The
AppInstanceUser who created the channel. |
void |
setCreatedTimestamp(Date createdTimestamp)
The time at which the
AppInstanceUser created the channel. |
void |
setLastMessageTimestamp(Date lastMessageTimestamp)
The time at which a member sent the last message in the channel.
|
void |
setLastUpdatedTimestamp(Date lastUpdatedTimestamp)
The time at which a channel was last updated.
|
void |
setMetadata(String metadata)
The channel's metadata.
|
void |
setMode(String mode)
The mode of the channel.
|
void |
setName(String name)
The name of the channel.
|
void |
setPrivacy(String privacy)
The channel's privacy setting.
|
String |
toString()
Returns a string representation of this object.
|
Channel |
withChannelArn(String channelArn)
The ARN of the channel.
|
Channel |
withCreatedBy(Identity createdBy)
The
AppInstanceUser who created the channel. |
Channel |
withCreatedTimestamp(Date createdTimestamp)
The time at which the
AppInstanceUser created the channel. |
Channel |
withLastMessageTimestamp(Date lastMessageTimestamp)
The time at which a member sent the last message in the channel.
|
Channel |
withLastUpdatedTimestamp(Date lastUpdatedTimestamp)
The time at which a channel was last updated.
|
Channel |
withMetadata(String metadata)
The channel's metadata.
|
Channel |
withMode(ChannelMode mode)
The mode of the channel.
|
Channel |
withMode(String mode)
The mode of the channel.
|
Channel |
withName(String name)
The name of the channel.
|
Channel |
withPrivacy(ChannelPrivacy privacy)
The channel's privacy setting.
|
Channel |
withPrivacy(String privacy)
The channel's privacy setting.
|
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 setChannelArn(String channelArn)
The ARN of the channel.
channelArn
- The ARN of the channel.public String getChannelArn()
The ARN of the channel.
public Channel withChannelArn(String channelArn)
The ARN of the channel.
channelArn
- The ARN of the channel.public void setMode(String mode)
The mode of the channel.
mode
- The mode of the channel.ChannelMode
public String getMode()
The mode of the channel.
ChannelMode
public Channel withMode(String mode)
The mode of the channel.
mode
- The mode of the channel.ChannelMode
public Channel withMode(ChannelMode mode)
The mode of the channel.
mode
- The mode of the channel.ChannelMode
public void setPrivacy(String privacy)
The channel's privacy setting.
privacy
- The channel's privacy setting.ChannelPrivacy
public String getPrivacy()
The channel's privacy setting.
ChannelPrivacy
public Channel withPrivacy(String privacy)
The channel's privacy setting.
privacy
- The channel's privacy setting.ChannelPrivacy
public Channel withPrivacy(ChannelPrivacy privacy)
The channel's privacy setting.
privacy
- The channel's privacy setting.ChannelPrivacy
public void setMetadata(String metadata)
The channel's metadata.
metadata
- The channel's metadata.public String getMetadata()
The channel's metadata.
public Channel withMetadata(String metadata)
The channel's metadata.
metadata
- The channel's metadata.public void setCreatedBy(Identity createdBy)
The AppInstanceUser
who created the channel.
createdBy
- The AppInstanceUser
who created the channel.public Identity getCreatedBy()
The AppInstanceUser
who created the channel.
AppInstanceUser
who created the channel.public Channel withCreatedBy(Identity createdBy)
The AppInstanceUser
who created the channel.
createdBy
- The AppInstanceUser
who created the channel.public void setCreatedTimestamp(Date createdTimestamp)
The time at which the AppInstanceUser
created the channel.
createdTimestamp
- The time at which the AppInstanceUser
created the channel.public Date getCreatedTimestamp()
The time at which the AppInstanceUser
created the channel.
AppInstanceUser
created the channel.public Channel withCreatedTimestamp(Date createdTimestamp)
The time at which the AppInstanceUser
created the channel.
createdTimestamp
- The time at which the AppInstanceUser
created the channel.public void setLastMessageTimestamp(Date lastMessageTimestamp)
The time at which a member sent the last message in the channel.
lastMessageTimestamp
- The time at which a member sent the last message in the channel.public Date getLastMessageTimestamp()
The time at which a member sent the last message in the channel.
public Channel withLastMessageTimestamp(Date lastMessageTimestamp)
The time at which a member sent the last message in the channel.
lastMessageTimestamp
- The time at which a member sent the last message in the channel.public void setLastUpdatedTimestamp(Date lastUpdatedTimestamp)
The time at which a channel was last updated.
lastUpdatedTimestamp
- The time at which a channel was last updated.public Date getLastUpdatedTimestamp()
The time at which a channel was last updated.
public Channel withLastUpdatedTimestamp(Date lastUpdatedTimestamp)
The time at which a channel was last updated.
lastUpdatedTimestamp
- The time at which a 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.