@NotThreadSafe public static final class UsergroupDisableParams.Builder extends Object
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.
| Modifier and Type | Method and Description |
|---|---|
UsergroupDisableParams |
build()
Builds a new
UsergroupDisableParams. |
UsergroupDisableParams.Builder |
from(AbstractUsergroupDisableParams instance)
Fill a builder with attribute values from the provided
com.hubspot.slack.client.methods.params.usergroups.AbstractUsergroupDisableParams instance. |
UsergroupDisableParams.Builder |
from(HasUsergroup instance)
Fill a builder with attribute values from the provided
com.hubspot.slack.client.methods.interceptor.HasUsergroup instance. |
UsergroupDisableParams.Builder |
setIncludeCount(Boolean includeCount)
Initializes the optional value
includeCount to includeCount. |
UsergroupDisableParams.Builder |
setIncludeCount(Optional<Boolean> includeCount)
Initializes the optional value
includeCount to includeCount. |
UsergroupDisableParams.Builder |
setUsergroupId(String usergroupId)
Initializes the value for the
usergroupId attribute. |
public final UsergroupDisableParams.Builder from(AbstractUsergroupDisableParams instance)
com.hubspot.slack.client.methods.params.usergroups.AbstractUsergroupDisableParams instance.instance - The instance from which to copy valuesthis builder for use in a chained invocationpublic final UsergroupDisableParams.Builder from(HasUsergroup instance)
com.hubspot.slack.client.methods.interceptor.HasUsergroup instance.instance - The instance from which to copy valuesthis builder for use in a chained invocationpublic final UsergroupDisableParams.Builder setUsergroupId(String usergroupId)
usergroupId attribute.usergroupId - The value for usergroupIdthis builder for use in a chained invocationpublic final UsergroupDisableParams.Builder setIncludeCount(@Nullable Boolean includeCount)
includeCount to includeCount.includeCount - The value for includeCount, null is accepted as java.util.Optional.empty()this builder for chained invocationpublic final UsergroupDisableParams.Builder setIncludeCount(Optional<Boolean> includeCount)
includeCount to includeCount.includeCount - The value for includeCountthis builder for use in a chained invocationpublic UsergroupDisableParams build() throws com.hubspot.immutables.validation.InvalidImmutableStateException
UsergroupDisableParams.com.hubspot.immutables.validation.InvalidImmutableStateException - if any required attributes are missingCopyright © 2019. All rights reserved.