@ParametersAreNonnullByDefault @Generated(value={"Immutables.generator","MessageContainerIF"}) @Immutable public final class MessageContainer extends Object implements MessageContainerIF
MessageContainerIF.
Use the builder to create immutable instances:
MessageContainer.builder().
| Modifier and Type | Class and Description |
|---|---|
static class |
MessageContainer.Builder
Builds instances of type
MessageContainer. |
| Modifier and Type | Method and Description |
|---|---|
static MessageContainer.Builder |
builder()
Creates a builder for
MessageContainer. |
static MessageContainer |
copyOf(MessageContainerIF instance)
Creates an immutable copy of a
MessageContainerIF value. |
boolean |
equals(Object another)
This instance is equal to all instances of
MessageContainer that have equal attribute values. |
String |
getChannelId() |
String |
getMessageTs() |
ContainerType |
getType() |
int |
hashCode()
Computes a hash code from attributes:
messageTs, channelId, ephemeral, type. |
boolean |
isEphemeral() |
String |
toString()
Prints the immutable value
MessageContainer with attribute values. |
MessageContainer |
withChannelId(String channelId)
Copy the current immutable object by setting a value for the
channelId attribute. |
MessageContainer |
withEphemeral(boolean ephemeral)
Copy the current immutable object by setting a value for the
ephemeral attribute. |
MessageContainer |
withMessageTs(String messageTs)
Copy the current immutable object by setting a value for the
messageTs attribute. |
MessageContainer |
withType(ContainerType type)
Copy the current immutable object by setting a value for the
type attribute. |
public String getMessageTs()
getMessageTs in interface MessageContainerIFmessageTs attributepublic String getChannelId()
getChannelId in interface MessageContainerIFchannelId attributepublic boolean isEphemeral()
isEphemeral in interface MessageContainerIFephemeral attributepublic ContainerType getType()
public final MessageContainer withMessageTs(String messageTs)
messageTs attribute.
An equals check used to prevent copying of the same value by returning this.messageTs - A new value for messageTsthis objectpublic final MessageContainer withChannelId(String channelId)
channelId attribute.
An equals check used to prevent copying of the same value by returning this.channelId - A new value for channelIdthis objectpublic final MessageContainer withEphemeral(boolean ephemeral)
ephemeral attribute.
A value equality check is used to prevent copying of the same value by returning this.ephemeral - A new value for ephemeralthis objectpublic final MessageContainer withType(ContainerType type)
type attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this.type - A new value for typethis objectpublic boolean equals(@Nullable Object another)
MessageContainer that have equal attribute values.public int hashCode()
messageTs, channelId, ephemeral, type.public String toString()
MessageContainer with attribute values.public static MessageContainer copyOf(MessageContainerIF instance)
MessageContainerIF value.
Uses accessors to get values to initialize the new immutable instance.
If an instance is already immutable, it is returned as is.instance - The instance to copypublic static MessageContainer.Builder builder()
MessageContainer.Copyright © 2020. All rights reserved.