Class SpecialTier.Builder

java.lang.Object
com.hubspot.slack.client.methods.SpecialTier.Builder
Enclosing class:
SpecialTier

@Generated(from="SpecialTierIF", generator="Immutables") @NotThreadSafe public static final class SpecialTier.Builder extends Object
Builds instances of type SpecialTier. Initialize attributes and then invoke the build() method to create an immutable instance.

Builder is not thread-safe and generally should not be stored in a field or collection, but instead used immediately to create instances.

  • Method Details

    • from

      public final SpecialTier.Builder from(SpecialTierIF instance)
      Fill a builder with attribute values from the provided com.hubspot.slack.client.methods.SpecialTierIF instance.
      Parameters:
      instance - The instance from which to copy values
      Returns:
      this builder for use in a chained invocation
    • from

      public final SpecialTier.Builder from(RateLimitingTier instance)
      Fill a builder with attribute values from the provided com.hubspot.slack.client.methods.RateLimitingTier instance.
      Parameters:
      instance - The instance from which to copy values
      Returns:
      this builder for use in a chained invocation
    • setMinutelyAllowance

      public final SpecialTier.Builder setMinutelyAllowance(int minutelyAllowance)
      Initializes the value for the minutelyAllowance attribute.
      Parameters:
      minutelyAllowance - The value for minutelyAllowance
      Returns:
      this builder for use in a chained invocation
    • build

      public SpecialTier build()
      Builds a new SpecialTier.
      Returns:
      An immutable instance of SpecialTier
      Throws:
      com.hubspot.immutables.validation.InvalidImmutableStateException - if any required attributes are missing