Class UsergroupEnableParams.Builder

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

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

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