Package com.hubspot.slack.client.methods
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().
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic SpecialTier.Builderbuilder()Creates a builder forSpecialTier.static SpecialTiercopyOf(SpecialTierIF instance) Creates an immutable copy of aSpecialTierIFvalue.booleanThis instance is equal to all instances ofSpecialTierthat have equal attribute values.intinthashCode()Computes a hash code from attributes:minutelyAllowance.static SpecialTierof(int minutelyAllowance) Construct a new immutableSpecialTierinstance.toString()Prints the immutable valueSpecialTierwith attribute values.final SpecialTierwithMinutelyAllowance(int value) Copy the current immutable object by setting a value for theminutelyAllowanceattribute.
-
Method Details
-
getMinutelyAllowance
public int getMinutelyAllowance()- Specified by:
getMinutelyAllowancein interfaceRateLimitingTier- Specified by:
getMinutelyAllowancein interfaceSpecialTierIF- Returns:
- The value of the
minutelyAllowanceattribute
-
withMinutelyAllowance
Copy the current immutable object by setting a value for theminutelyAllowanceattribute. A value equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for minutelyAllowance- Returns:
- A modified copy or the
thisobject
-
equals
This instance is equal to all instances ofSpecialTierthat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:minutelyAllowance. -
toString
Prints the immutable valueSpecialTierwith attribute values. -
of
Construct a new immutableSpecialTierinstance.- Parameters:
minutelyAllowance- The value for theminutelyAllowanceattribute- Returns:
- An immutable SpecialTier instance
-
copyOf
Creates an immutable copy of aSpecialTierIFvalue. 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
Creates a builder forSpecialTier.SpecialTier.builder() .setMinutelyAllowance(int) // requiredminutelyAllowance.build();- Returns:
- A new SpecialTier builder
-