Class ChannelsInfoParams

java.lang.Object
com.hubspot.slack.client.methods.params.channels.AbstractChannelsInfoParams
com.hubspot.slack.client.methods.params.channels.ChannelsInfoParams
All Implemented Interfaces:
HasChannel

@Generated(from="AbstractChannelsInfoParams", generator="Immutables") @ParametersAreNonnullByDefault @Generated("org.immutables.processor.ProxyProcessor") @Immutable public final class ChannelsInfoParams extends AbstractChannelsInfoParams
Immutable implementation of AbstractChannelsInfoParams.

Use the builder to create immutable instances: ChannelsInfoParams.builder(). Use the static factory method to create immutable instances: ChannelsInfoParams.of().

  • Method Details

    • getChannelId

      public String getChannelId()
      Specified by:
      getChannelId in interface HasChannel
      Specified by:
      getChannelId in class AbstractChannelsInfoParams
      Returns:
      The value of the channelId attribute
    • getIncludeLocale

      public Optional<Boolean> getIncludeLocale()
      Specified by:
      getIncludeLocale in class AbstractChannelsInfoParams
      Returns:
      The value of the includeLocale attribute
    • withChannelId

      public final ChannelsInfoParams 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
    • withIncludeLocale

      public final ChannelsInfoParams withIncludeLocale(@Nullable Boolean value)
      Copy the current immutable object by setting a present value for the optional includeLocale attribute.
      Parameters:
      value - The value for includeLocale, null is accepted as java.util.Optional.empty()
      Returns:
      A modified copy or this if not changed
    • withIncludeLocale

      public final ChannelsInfoParams withIncludeLocale(Optional<Boolean> optional)
      Copy the current immutable object by setting an optional value for the includeLocale attribute. An equality check is used on inner value to prevent copying of the same value by returning this.
      Parameters:
      optional - An optional value for includeLocale
      Returns:
      A modified copy or this if not changed
    • equals

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

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

      public static ChannelsInfoParams of(String channelId)
      Construct a new immutable ChannelsInfoParams instance.
      Parameters:
      channelId - The value for the channelId attribute
      Returns:
      An immutable ChannelsInfoParams instance
    • copyOf

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

      public static ChannelsInfoParams.Builder builder()
      Creates a builder for ChannelsInfoParams.
       ChannelsInfoParams.builder()
          .setChannelId(String) // required channelId
          .setIncludeLocale(Optional<Boolean>) // optional includeLocale
          .build();
       
      Returns:
      A new ChannelsInfoParams builder