@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Channel extends Object implements Serializable, Cloneable, StructuredPojo
Creates 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 administrator who created the channel.
|
Date |
getCreatedTimestamp()
The time at which the administrator created the channel.
|
Date |
getLastMessageTimestamp()
The time at which a member sent the last message in a session.
|
Date |
getLastUpdatedTimestamp()
The time at which a channel was last updated.
|
String |
getMetadata()
The metadata of the channel.
|
String |
getMode()
The mode of the channel.
|
String |
getName()
The name of the channel.
|
String |
getPrivacy()
The channel's privacy setting,
PUBLIC or HIDDEN. |
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 administrator who created the channel.
|
void |
setCreatedTimestamp(Date createdTimestamp)
The time at which the administrator created the channel.
|
void |
setLastMessageTimestamp(Date lastMessageTimestamp)
The time at which a member sent the last message in a session.
|
void |
setLastUpdatedTimestamp(Date lastUpdatedTimestamp)
The time at which a channel was last updated.
|
void |
setMetadata(String metadata)
The metadata of the channel.
|
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,
PUBLIC or HIDDEN. |
String |
toString()
Returns a string representation of this object.
|
Channel |
withChannelArn(String channelArn)
The ARN of the channel.
|
Channel |
withCreatedBy(Identity createdBy)
The administrator who created the channel.
|
Channel |
withCreatedTimestamp(Date createdTimestamp)
The time at which the administrator created the channel.
|
Channel |
withLastMessageTimestamp(Date lastMessageTimestamp)
The time at which a member sent the last message in a session.
|
Channel |
withLastUpdatedTimestamp(Date lastUpdatedTimestamp)
The time at which a channel was last updated.
|
Channel |
withMetadata(String metadata)
The metadata of the channel.
|
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,
PUBLIC or HIDDEN. |
Channel |
withPrivacy(String privacy)
The channel's privacy setting,
PUBLIC or HIDDEN. |
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.ChannelModepublic String getMode()
The mode of the channel.
ChannelModepublic Channel withMode(String mode)
The mode of the channel.
mode - The mode of the channel.ChannelModepublic Channel withMode(ChannelMode mode)
The mode of the channel.
mode - The mode of the channel.ChannelModepublic void setPrivacy(String privacy)
The channel's privacy setting, PUBLIC or HIDDEN.
privacy - The channel's privacy setting, PUBLIC or HIDDEN.ChannelPrivacypublic String getPrivacy()
The channel's privacy setting, PUBLIC or HIDDEN.
PUBLIC or HIDDEN.ChannelPrivacypublic Channel withPrivacy(String privacy)
The channel's privacy setting, PUBLIC or HIDDEN.
privacy - The channel's privacy setting, PUBLIC or HIDDEN.ChannelPrivacypublic Channel withPrivacy(ChannelPrivacy privacy)
The channel's privacy setting, PUBLIC or HIDDEN.
privacy - The channel's privacy setting, PUBLIC or HIDDEN.ChannelPrivacypublic void setMetadata(String metadata)
The metadata of the channel.
metadata - The metadata of the channel.public String getMetadata()
The metadata of the channel.
public Channel withMetadata(String metadata)
The metadata of the channel.
metadata - The metadata of the channel.public void setCreatedBy(Identity createdBy)
The administrator who created the channel.
createdBy - The administrator who created the channel.public Identity getCreatedBy()
The administrator who created the channel.
public Channel withCreatedBy(Identity createdBy)
The administrator who created the channel.
createdBy - The administrator who created the channel.public void setCreatedTimestamp(Date createdTimestamp)
The time at which the administrator created the channel.
createdTimestamp - The time at which the administrator created the channel.public Date getCreatedTimestamp()
The time at which the administrator created the channel.
public Channel withCreatedTimestamp(Date createdTimestamp)
The time at which the administrator created the channel.
createdTimestamp - The time at which the administrator created the channel.public void setLastMessageTimestamp(Date lastMessageTimestamp)
The time at which a member sent the last message in a session.
lastMessageTimestamp - The time at which a member sent the last message in a session.public Date getLastMessageTimestamp()
The time at which a member sent the last message in a session.
public Channel withLastMessageTimestamp(Date lastMessageTimestamp)
The time at which a member sent the last message in a session.
lastMessageTimestamp - The time at which a member sent the last message in a session.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 ObjectObject.toString()public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojoProtocolMarshaller.marshall in interface StructuredPojoprotocolMarshaller - Implementation of ProtocolMarshaller used to marshall this object's data.