Class UsergroupDisableParams.Builder
java.lang.Object
com.hubspot.slack.client.methods.params.usergroups.UsergroupDisableParams.Builder
- Enclosing class:
UsergroupDisableParams
@Generated(from="AbstractUsergroupDisableParams",
generator="Immutables")
@NotThreadSafe
public static final class UsergroupDisableParams.Builder
extends Object
Builds instances of type
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.
-
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds a newUsergroupDisableParams.from(HasUsergroup instance) Fill a builder with attribute values from the providedcom.hubspot.slack.client.methods.interceptor.HasUsergroupinstance.from(AbstractUsergroupDisableParams instance) Fill a builder with attribute values from the providedcom.hubspot.slack.client.methods.params.usergroups.AbstractUsergroupDisableParamsinstance.setIncludeCount(Boolean includeCount) Initializes the optional valueincludeCountto includeCount.setIncludeCount(Optional<Boolean> includeCount) Initializes the optional valueincludeCountto includeCount.setUsergroupId(String usergroupId) Initializes the value for theusergroupIdattribute.
-
Method Details
-
from
Fill a builder with attribute values from the providedcom.hubspot.slack.client.methods.params.usergroups.AbstractUsergroupDisableParamsinstance.- Parameters:
instance- The instance from which to copy values- Returns:
thisbuilder for use in a chained invocation
-
from
Fill a builder with attribute values from the providedcom.hubspot.slack.client.methods.interceptor.HasUsergroupinstance.- Parameters:
instance- The instance from which to copy values- Returns:
thisbuilder for use in a chained invocation
-
setUsergroupId
Initializes the value for theusergroupIdattribute.- Parameters:
usergroupId- The value for usergroupId- Returns:
thisbuilder for use in a chained invocation
-
setIncludeCount
Initializes the optional valueincludeCountto includeCount.- Parameters:
includeCount- The value for includeCount,nullis accepted asjava.util.Optional.empty()- Returns:
thisbuilder for chained invocation
-
setIncludeCount
Initializes the optional valueincludeCountto includeCount.- Parameters:
includeCount- The value for includeCount- Returns:
thisbuilder for use in a chained invocation
-
build
Builds a newUsergroupDisableParams.- Returns:
- An immutable instance of UsergroupDisableParams
- Throws:
com.hubspot.immutables.validation.InvalidImmutableStateException- if any required attributes are missing
-