Class GroupsListParams.Builder

java.lang.Object
com.hubspot.slack.client.methods.params.group.GroupsListParams.Builder
Enclosing class:
GroupsListParams

@Generated(from="GroupsListParamsIF", generator="Immutables") @NotThreadSafe public static final class GroupsListParams.Builder extends Object
Builds instances of type GroupsListParams. 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 GroupsListParams.Builder from(BaseChannelsFilter instance)
      Fill a builder with attribute values from the provided com.hubspot.slack.client.methods.params.channels.BaseChannelsFilter instance.
      Parameters:
      instance - The instance from which to copy values
      Returns:
      this builder for use in a chained invocation
    • from

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

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

      public final GroupsListParams.Builder setShouldExcludeArchived(Optional<Boolean> shouldExcludeArchived)
      Initializes the optional value shouldExcludeArchived to shouldExcludeArchived.
      Parameters:
      shouldExcludeArchived - The value for shouldExcludeArchived
      Returns:
      this builder for use in a chained invocation
    • setShouldExcludeMembers

      public final GroupsListParams.Builder setShouldExcludeMembers(boolean shouldExcludeMembers)
      Initializes the value for the shouldExcludeMembers attribute.

      If not set, this attribute will have a default value as returned by the initializer of shouldExcludeMembers.

      Parameters:
      shouldExcludeMembers - The value for shouldExcludeMembers
      Returns:
      this builder for use in a chained invocation
    • build

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