Class SpecialTier

java.lang.Object
com.hubspot.slack.client.methods.SpecialTier
All Implemented Interfaces:
RateLimitingTier, SpecialTierIF

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

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

  • Method Details

    • getMinutelyAllowance

      public int getMinutelyAllowance()
      Specified by:
      getMinutelyAllowance in interface RateLimitingTier
      Specified by:
      getMinutelyAllowance in interface SpecialTierIF
      Returns:
      The value of the minutelyAllowance attribute
    • withMinutelyAllowance

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

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

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

      public static SpecialTier of(int minutelyAllowance)
      Construct a new immutable SpecialTier instance.
      Parameters:
      minutelyAllowance - The value for the minutelyAllowance attribute
      Returns:
      An immutable SpecialTier instance
    • copyOf

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

      public static SpecialTier.Builder builder()
      Creates a builder for SpecialTier.
       SpecialTier.builder()
          .setMinutelyAllowance(int) // required minutelyAllowance
          .build();
       
      Returns:
      A new SpecialTier builder