Class UsergroupListParams.Builder
java.lang.Object
com.hubspot.slack.client.methods.params.usergroups.UsergroupListParams.Builder
- Enclosing class:
UsergroupListParams
@Generated(from="UsergroupListParamsIF",
generator="Immutables")
@NotThreadSafe
public static final class UsergroupListParams.Builder
extends Object
Builds instances of type
UsergroupListParams.
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 newUsergroupListParams.from(UsergroupListParamsIF instance) Fill a builder with attribute values from the providedUsergroupListParamsIFinstance.setIncludeCount(Boolean includeCount) Initializes the optional valueincludeCountto includeCount.setIncludeCount(Optional<Boolean> includeCount) Initializes the optional valueincludeCountto includeCount.setIncludeDisabled(Boolean includeDisabled) Initializes the optional valueincludeDisabledto includeDisabled.setIncludeDisabled(Optional<Boolean> includeDisabled) Initializes the optional valueincludeDisabledto includeDisabled.setIncludeUsers(Boolean includeUsers) Initializes the optional valueincludeUsersto includeUsers.setIncludeUsers(Optional<Boolean> includeUsers) Initializes the optional valueincludeUsersto includeUsers.
-
Method Details
-
from
Fill a builder with attribute values from the providedUsergroupListParamsIFinstance. 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:
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
-
setIncludeDisabled
Initializes the optional valueincludeDisabledto includeDisabled.- Parameters:
includeDisabled- The value for includeDisabled,nullis accepted asjava.util.Optional.empty()- Returns:
thisbuilder for chained invocation
-
setIncludeDisabled
Initializes the optional valueincludeDisabledto includeDisabled.- Parameters:
includeDisabled- The value for includeDisabled- Returns:
thisbuilder for use in a chained invocation
-
setIncludeUsers
Initializes the optional valueincludeUsersto includeUsers.- Parameters:
includeUsers- The value for includeUsers,nullis accepted asjava.util.Optional.empty()- Returns:
thisbuilder for chained invocation
-
setIncludeUsers
Initializes the optional valueincludeUsersto includeUsers.- Parameters:
includeUsers- The value for includeUsers- Returns:
thisbuilder for use in a chained invocation
-
build
Builds a newUsergroupListParams.- Returns:
- An immutable instance of UsergroupListParams
- Throws:
com.hubspot.immutables.validation.InvalidImmutableStateException- if any required attributes are missing
-