Class UsergroupUpdateParams.Builder

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

@Generated(from="AbstractUsergroupUpdateParams", generator="Immutables") @NotThreadSafe public static final class UsergroupUpdateParams.Builder extends Object
Builds instances of type UsergroupUpdateParams. 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.interceptor.HasCommaSeperatedChannelIds instance.
      Parameters:
      instance - The instance from which to copy values
      Returns:
      this builder for use in a chained invocation
    • from

      public final UsergroupUpdateParams.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
    • from

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

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

      public final UsergroupUpdateParams.Builder addRawChannelIds(String... elements)
      Adds elements to rawChannelIds list.
      Parameters:
      elements - An array of rawChannelIds elements
      Returns:
      this builder for use in a chained invocation
    • setRawChannelIds

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

      public final UsergroupUpdateParams.Builder addAllRawChannelIds(Iterable<String> elements)
      Adds elements to rawChannelIds list.
      Parameters:
      elements - An iterable of rawChannelIds elements
      Returns:
      this builder for use in a chained invocation
    • setUsergroupId

      public final UsergroupUpdateParams.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
    • setName

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

      public final UsergroupUpdateParams.Builder setName(Optional<String> name)
      Initializes the optional value name to name.
      Parameters:
      name - The value for name
      Returns:
      this builder for use in a chained invocation
    • setDescription

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

      public final UsergroupUpdateParams.Builder setDescription(Optional<String> description)
      Initializes the optional value description to description.
      Parameters:
      description - The value for description
      Returns:
      this builder for use in a chained invocation
    • setHandle

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

      public final UsergroupUpdateParams.Builder setHandle(Optional<String> handle)
      Initializes the optional value handle to handle.
      Parameters:
      handle - The value for handle
      Returns:
      this builder for use in a chained invocation
    • setIncludeCount

      public final UsergroupUpdateParams.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 UsergroupUpdateParams.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 UsergroupUpdateParams build()
      Builds a new UsergroupUpdateParams.
      Returns:
      An immutable instance of UsergroupUpdateParams
      Throws:
      com.hubspot.immutables.validation.InvalidImmutableStateException - if any required attributes are missing