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().

  • Method Details

    • getId

      public String getId()
      Specified by:
      getId in interface ScheduledMessageIF
      Returns:
      The value of the id attribute
    • getChannelId

      public String getChannelId()
      Specified by:
      getChannelId in interface ScheduledMessageIF
      Returns:
      The value of the channelId attribute
    • getPostAt

      public long getPostAt()
      Specified by:
      getPostAt in interface ScheduledMessageIF
      Returns:
      The value of the postAt attribute
    • getDateCreated

      public long getDateCreated()
      Specified by:
      getDateCreated in interface ScheduledMessageIF
      Returns:
      The value of the dateCreated attribute
    • getText

      public String getText()
      Specified by:
      getText in interface ScheduledMessageIF
      Returns:
      The value of the text attribute
    • withId

      public final ScheduledMessage withId(String value)
      Copy the current immutable object by setting a value for the id attribute. An equals check used to prevent copying of the same value by returning this.
      Parameters:
      value - A new value for id
      Returns:
      A modified copy or the this object
    • withChannelId

      public final ScheduledMessage withChannelId(String value)
      Copy the current immutable object by setting a value for the channelId attribute. An equals check used to prevent copying of the same value by returning this.
      Parameters:
      value - A new value for channelId
      Returns:
      A modified copy or the this object
    • withPostAt

      public final ScheduledMessage withPostAt(long value)
      Copy the current immutable object by setting a value for the postAt attribute. A value equality check is used to prevent copying of the same value by returning this.
      Parameters:
      value - A new value for postAt
      Returns:
      A modified copy or the this object
    • withDateCreated

      public final ScheduledMessage withDateCreated(long value)
      Copy the current immutable object by setting a value for the dateCreated attribute. A value equality check is used to prevent copying of the same value by returning this.
      Parameters:
      value - A new value for dateCreated
      Returns:
      A modified copy or the this object
    • withText

      public final ScheduledMessage withText(String value)
      Copy the current immutable object by setting a value for the text attribute. An equals check used to prevent copying of the same value by returning this.
      Parameters:
      value - A new value for text
      Returns:
      A modified copy or the this object
    • equals

      public boolean equals(@Nullable Object another)
      This instance is equal to all instances of ScheduledMessage that have equal attribute values.
      Overrides:
      equals in class Object
      Returns:
      true if this is equal to another instance
    • hashCode

      public int hashCode()
      Computes a hash code from attributes: id, channelId, postAt, dateCreated, text.
      Overrides:
      hashCode in class Object
      Returns:
      hashCode value
    • toString

      public String toString()
      Prints the immutable value ScheduledMessage with attribute values.
      Overrides:
      toString in class Object
      Returns:
      A string representation of the value
    • copyOf

      public static ScheduledMessage copyOf(ScheduledMessageIF instance)
      Creates an immutable copy of a ScheduledMessageIF value. 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

      public static ScheduledMessage.Builder builder()
      Creates a builder for ScheduledMessage.
       ScheduledMessage.builder()
          .setId(String) // required id
          .setChannelId(String) // required channelId
          .setPostAt(long) // required postAt
          .setDateCreated(long) // required dateCreated
          .setText(String) // required text
          .build();
       
      Returns:
      A new ScheduledMessage builder