Class UsergroupListParams.Builder

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

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

      public final UsergroupListParams.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 UsergroupListParams.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
    • setIncludeDisabled

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

      public final UsergroupListParams.Builder setIncludeDisabled(Optional<Boolean> includeDisabled)
      Initializes the optional value includeDisabled to includeDisabled.
      Parameters:
      includeDisabled - The value for includeDisabled
      Returns:
      this builder for use in a chained invocation
    • setIncludeUsers

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

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

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