Class UsergroupDisableParams.Builder

java.lang.Object
com.hubspot.slack.client.methods.params.usergroups.UsergroupDisableParams.Builder
Enclosing class:
UsergroupDisableParams

@Generated(from="AbstractUsergroupDisableParams", generator="Immutables") @NotThreadSafe public static final class UsergroupDisableParams.Builder extends Object
Builds instances of type UsergroupDisableParams. 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

      Fill a builder with attribute values from the provided com.hubspot.slack.client.methods.params.usergroups.AbstractUsergroupDisableParams instance.
      Parameters:
      instance - The instance from which to copy values
      Returns:
      this builder for use in a chained invocation
    • from

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

      public final UsergroupDisableParams.Builder setUsergroupId(String usergroupId)
      Initializes the value for the usergroupId attribute.
      Parameters:
      usergroupId - The value for usergroupId
      Returns:
      this builder for use in a chained invocation
    • setIncludeCount

      public final UsergroupDisableParams.Builder setIncludeCount(@Nullable Boolean includeCount)
      Initializes the optional value includeCount to includeCount.
      Parameters:
      includeCount - The value for includeCount, null is accepted as java.util.Optional.empty()
      Returns:
      this builder for chained invocation
    • setIncludeCount

      public final UsergroupDisableParams.Builder setIncludeCount(Optional<Boolean> includeCount)
      Initializes the optional value includeCount to includeCount.
      Parameters:
      includeCount - The value for includeCount
      Returns:
      this builder for use in a chained invocation
    • build

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