Class MessageContainer
java.lang.Object
com.hubspot.slack.client.models.interaction.MessageContainer
- All Implemented Interfaces:
Container,MessageContainerIF
@Generated(from="MessageContainerIF",
generator="Immutables")
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
public final class MessageContainer
extends Object
implements MessageContainerIF
Immutable implementation of
MessageContainerIF.
Use the builder to create immutable instances:
MessageContainer.builder().
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic MessageContainer.Builderbuilder()Creates a builder forMessageContainer.static MessageContainercopyOf(MessageContainerIF instance) Creates an immutable copy of aMessageContainerIFvalue.booleanThis instance is equal to all instances ofMessageContainerthat have equal attribute values.getType()inthashCode()Computes a hash code from attributes:type,messageTs,channelId,ephemeral.booleantoString()Prints the immutable valueMessageContainerwith attribute values.final MessageContainerwithChannelId(String value) Copy the current immutable object by setting a value for thechannelIdattribute.final MessageContainerwithEphemeral(boolean value) Copy the current immutable object by setting a value for theephemeralattribute.final MessageContainerwithMessageTs(String value) Copy the current immutable object by setting a value for themessageTsattribute.final MessageContainerwithType(ContainerType value) Copy the current immutable object by setting a value for thetypeattribute.
-
Method Details
-
getType
-
getMessageTs
- Specified by:
getMessageTsin interfaceMessageContainerIF- Returns:
- The value of the
messageTsattribute
-
getChannelId
- Specified by:
getChannelIdin interfaceMessageContainerIF- Returns:
- The value of the
channelIdattribute
-
isEphemeral
public boolean isEphemeral()- Specified by:
isEphemeralin interfaceMessageContainerIF- Returns:
- The value of the
ephemeralattribute
-
withType
Copy the current immutable object by setting a value for thetypeattribute. A value equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for type- Returns:
- A modified copy or the
thisobject
-
withMessageTs
Copy the current immutable object by setting a value for themessageTsattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for messageTs- Returns:
- A modified copy or the
thisobject
-
withChannelId
Copy the current immutable object by setting a value for thechannelIdattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for channelId- Returns:
- A modified copy or the
thisobject
-
withEphemeral
Copy the current immutable object by setting a value for theephemeralattribute. A value equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for ephemeral- Returns:
- A modified copy or the
thisobject
-
equals
This instance is equal to all instances ofMessageContainerthat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:type,messageTs,channelId,ephemeral. -
toString
Prints the immutable valueMessageContainerwith attribute values. -
copyOf
Creates an immutable copy of aMessageContainerIFvalue. Uses accessors to get values to initialize the new immutable instance. If an instance is already immutable, it is returned as is.- Parameters:
instance- The instance to copy- Returns:
- A copied immutable MessageContainer instance
-
builder
Creates a builder forMessageContainer.MessageContainer.builder() .setType(com.hubspot.slack.client.models.interaction.ContainerType) // requiredtype.setMessageTs(String) // requiredmessageTs.setChannelId(String) // requiredchannelId.setEphemeral(boolean) // requiredephemeral.build();- Returns:
- A new MessageContainer builder
-