Class TokensRevoked.Builder

java.lang.Object
com.hubspot.slack.client.models.events.app.TokensRevoked.Builder
Enclosing class:
TokensRevoked

@Generated(from="TokensRevokedIF", generator="Immutables") @NotThreadSafe public static final class TokensRevoked.Builder extends Object
Builds instances of type TokensRevoked. 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 TokensRevoked.Builder from(TokensRevokedIF instance)
      Fill a builder with attribute values from the provided TokensRevokedIF instance. Regular attribute values will be replaced with those from the given instance. Absent optional values will not replace present values. Collection elements and entries will be added, not replaced.
      Parameters:
      instance - The instance from which to copy values
      Returns:
      this builder for use in a chained invocation
    • addOauth

      public final TokensRevoked.Builder addOauth(String element)
      Adds one element to oauth list.
      Parameters:
      element - A oauth element
      Returns:
      this builder for use in a chained invocation
    • addOauth

      public final TokensRevoked.Builder addOauth(String... elements)
      Adds elements to oauth list.
      Parameters:
      elements - An array of oauth elements
      Returns:
      this builder for use in a chained invocation
    • setOauth

      public final TokensRevoked.Builder setOauth(Iterable<String> elements)
      Sets or replaces all elements for oauth list.
      Parameters:
      elements - An iterable of oauth elements
      Returns:
      this builder for use in a chained invocation
    • addAllOauth

      public final TokensRevoked.Builder addAllOauth(Iterable<String> elements)
      Adds elements to oauth list.
      Parameters:
      elements - An iterable of oauth elements
      Returns:
      this builder for use in a chained invocation
    • addBot

      public final TokensRevoked.Builder addBot(String element)
      Adds one element to bot list.
      Parameters:
      element - A bot element
      Returns:
      this builder for use in a chained invocation
    • addBot

      public final TokensRevoked.Builder addBot(String... elements)
      Adds elements to bot list.
      Parameters:
      elements - An array of bot elements
      Returns:
      this builder for use in a chained invocation
    • setBot

      public final TokensRevoked.Builder setBot(Iterable<String> elements)
      Sets or replaces all elements for bot list.
      Parameters:
      elements - An iterable of bot elements
      Returns:
      this builder for use in a chained invocation
    • addAllBot

      public final TokensRevoked.Builder addAllBot(Iterable<String> elements)
      Adds elements to bot list.
      Parameters:
      elements - An iterable of bot elements
      Returns:
      this builder for use in a chained invocation
    • build

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