Class UsergroupUsersUpdateParams.Builder
java.lang.Object
com.hubspot.slack.client.methods.params.usergroups.users.UsergroupUsersUpdateParams.Builder
- Enclosing class:
UsergroupUsersUpdateParams
@Generated(from="AbstractUsergroupUsersUpdateParams",
generator="Immutables")
@NotThreadSafe
public static final class UsergroupUsersUpdateParams.Builder
extends Object
Builds instances of type
UsergroupUsersUpdateParams.
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 TypeMethodDescriptionaddAllRawUserIds(Iterable<String> elements) Adds elements torawUserIdslist.addRawUserIds(String element) Adds one element torawUserIdslist.addRawUserIds(String... elements) Adds elements torawUserIdslist.build()Builds a newUsergroupUsersUpdateParams.from(HasCommaSeperatedUserIds instance) Fill a builder with attribute values from the providedcom.hubspot.slack.client.methods.interceptor.HasCommaSeperatedUserIdsinstance.from(HasUsergroup instance) Fill a builder with attribute values from the providedcom.hubspot.slack.client.methods.interceptor.HasUsergroupinstance.from(AbstractUsergroupUsersUpdateParams instance) Fill a builder with attribute values from the providedcom.hubspot.slack.client.methods.params.usergroups.users.AbstractUsergroupUsersUpdateParamsinstance.setIncludeCount(Boolean includeCount) Initializes the optional valueincludeCountto includeCount.setIncludeCount(Optional<Boolean> includeCount) Initializes the optional valueincludeCountto includeCount.setRawUserIds(Iterable<String> elements) Sets or replaces all elements forrawUserIdslist.setUsergroupId(String usergroupId) Initializes the value for theusergroupIdattribute.
-
Method Details
-
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
-
from
Fill a builder with attribute values from the providedcom.hubspot.slack.client.methods.params.usergroups.users.AbstractUsergroupUsersUpdateParamsinstance.- 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.HasCommaSeperatedUserIdsinstance.- Parameters:
instance- The instance from which to copy values- Returns:
thisbuilder for use in a chained invocation
-
addRawUserIds
Adds one element torawUserIdslist.- Parameters:
element- A rawUserIds element- Returns:
thisbuilder for use in a chained invocation
-
addRawUserIds
Adds elements torawUserIdslist.- Parameters:
elements- An array of rawUserIds elements- Returns:
thisbuilder for use in a chained invocation
-
setRawUserIds
Sets or replaces all elements forrawUserIdslist.- Parameters:
elements- An iterable of rawUserIds elements- Returns:
thisbuilder for use in a chained invocation
-
addAllRawUserIds
Adds elements torawUserIdslist.- Parameters:
elements- An iterable of rawUserIds elements- 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 newUsergroupUsersUpdateParams.- Returns:
- An immutable instance of UsergroupUsersUpdateParams
- Throws:
com.hubspot.immutables.validation.InvalidImmutableStateException- if any required attributes are missing
-