Class ChannelMetadata

java.lang.Object
com.hubspot.slack.client.models.ChannelMetadata
All Implemented Interfaces:
ChannelMetadataIF

@Generated(from="ChannelMetadataIF", generator="Immutables") @ParametersAreNonnullByDefault @Generated("org.immutables.processor.ProxyProcessor") @Immutable public final class ChannelMetadata extends Object implements ChannelMetadataIF
Immutable implementation of ChannelMetadataIF.

Use the builder to create immutable instances: ChannelMetadata.builder().

  • Method Details

    • getValue

      public String getValue()
      Specified by:
      getValue in interface ChannelMetadataIF
      Returns:
      The value of the value attribute
    • getCreatorId

      public String getCreatorId()
      Specified by:
      getCreatorId in interface ChannelMetadataIF
      Returns:
      The value of the creatorId attribute
    • getLastSetEpochSeconds

      public long getLastSetEpochSeconds()
      Specified by:
      getLastSetEpochSeconds in interface ChannelMetadataIF
      Returns:
      The value of the lastSetEpochSeconds attribute
    • withValue

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

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

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

      public boolean equals(@Nullable Object another)
      This instance is equal to all instances of ChannelMetadata 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: value, creatorId, lastSetEpochSeconds.
      Overrides:
      hashCode in class Object
      Returns:
      hashCode value
    • toString

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

      public static ChannelMetadata copyOf(ChannelMetadataIF instance)
      Creates an immutable copy of a ChannelMetadataIF 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 ChannelMetadata instance
    • builder

      public static ChannelMetadata.Builder builder()
      Creates a builder for ChannelMetadata.
       ChannelMetadata.builder()
          .setValue(String) // required value
          .setCreatorId(String) // required creatorId
          .setLastSetEpochSeconds(long) // required lastSetEpochSeconds
          .build();
       
      Returns:
      A new ChannelMetadata builder