Package com.hubspot.slack.client.models
Class ScheduledMessage
java.lang.Object
com.hubspot.slack.client.models.ScheduledMessage
- All Implemented Interfaces:
ScheduledMessageIF
@Generated(from="ScheduledMessageIF",
generator="Immutables")
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
public final class ScheduledMessage
extends Object
implements ScheduledMessageIF
Immutable implementation of
ScheduledMessageIF.
Use the builder to create immutable instances:
ScheduledMessage.builder().
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic ScheduledMessage.Builderbuilder()Creates a builder forScheduledMessage.static ScheduledMessagecopyOf(ScheduledMessageIF instance) Creates an immutable copy of aScheduledMessageIFvalue.booleanThis instance is equal to all instances ofScheduledMessagethat have equal attribute values.longgetId()longgetText()inthashCode()Computes a hash code from attributes:id,channelId,postAt,dateCreated,text.toString()Prints the immutable valueScheduledMessagewith attribute values.final ScheduledMessagewithChannelId(String value) Copy the current immutable object by setting a value for thechannelIdattribute.final ScheduledMessagewithDateCreated(long value) Copy the current immutable object by setting a value for thedateCreatedattribute.final ScheduledMessageCopy the current immutable object by setting a value for theidattribute.final ScheduledMessagewithPostAt(long value) Copy the current immutable object by setting a value for thepostAtattribute.final ScheduledMessageCopy the current immutable object by setting a value for thetextattribute.
-
Method Details
-
getId
- Specified by:
getIdin interfaceScheduledMessageIF- Returns:
- The value of the
idattribute
-
getChannelId
- Specified by:
getChannelIdin interfaceScheduledMessageIF- Returns:
- The value of the
channelIdattribute
-
getPostAt
public long getPostAt()- Specified by:
getPostAtin interfaceScheduledMessageIF- Returns:
- The value of the
postAtattribute
-
getDateCreated
public long getDateCreated()- Specified by:
getDateCreatedin interfaceScheduledMessageIF- Returns:
- The value of the
dateCreatedattribute
-
getText
- Specified by:
getTextin interfaceScheduledMessageIF- Returns:
- The value of the
textattribute
-
withId
Copy the current immutable object by setting a value for theidattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for id- 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
-
withPostAt
Copy the current immutable object by setting a value for thepostAtattribute. A value equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for postAt- Returns:
- A modified copy or the
thisobject
-
withDateCreated
Copy the current immutable object by setting a value for thedateCreatedattribute. A value equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for dateCreated- Returns:
- A modified copy or the
thisobject
-
withText
Copy the current immutable object by setting a value for thetextattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for text- Returns:
- A modified copy or the
thisobject
-
equals
This instance is equal to all instances ofScheduledMessagethat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:id,channelId,postAt,dateCreated,text. -
toString
Prints the immutable valueScheduledMessagewith attribute values. -
copyOf
Creates an immutable copy of aScheduledMessageIFvalue. 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 ScheduledMessage instance
-
builder
Creates a builder forScheduledMessage.ScheduledMessage.builder() .setId(String) // requiredid.setChannelId(String) // requiredchannelId.setPostAt(long) // requiredpostAt.setDateCreated(long) // requireddateCreated.setText(String) // requiredtext.build();- Returns:
- A new ScheduledMessage builder
-