Class UsergroupUpdateParams.Builder
java.lang.Object
com.hubspot.slack.client.methods.params.usergroups.UsergroupUpdateParams.Builder
- Enclosing class:
UsergroupUpdateParams
@Generated(from="AbstractUsergroupUpdateParams",
generator="Immutables")
@NotThreadSafe
public static final class UsergroupUpdateParams.Builder
extends Object
Builds instances of type
UsergroupUpdateParams.
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 TypeMethodDescriptionaddAllRawChannelIds(Iterable<String> elements) Adds elements torawChannelIdslist.addRawChannelIds(String element) Adds one element torawChannelIdslist.addRawChannelIds(String... elements) Adds elements torawChannelIdslist.build()Builds a newUsergroupUpdateParams.from(HasCommaSeperatedChannelIds instance) Fill a builder with attribute values from the providedcom.hubspot.slack.client.methods.interceptor.HasCommaSeperatedChannelIdsinstance.from(HasUsergroup instance) Fill a builder with attribute values from the providedcom.hubspot.slack.client.methods.interceptor.HasUsergroupinstance.from(AbstractUsergroupUpdateParams instance) Fill a builder with attribute values from the providedcom.hubspot.slack.client.methods.params.usergroups.AbstractUsergroupUpdateParamsinstance.setDescription(String description) Initializes the optional valuedescriptionto description.setDescription(Optional<String> description) Initializes the optional valuedescriptionto description.Initializes the optional valuehandleto handle.Initializes the optional valuehandleto handle.setIncludeCount(Boolean includeCount) Initializes the optional valueincludeCountto includeCount.setIncludeCount(Optional<Boolean> includeCount) Initializes the optional valueincludeCountto includeCount.Initializes the optional valuenameto name.Initializes the optional valuenameto name.setRawChannelIds(Iterable<String> elements) Sets or replaces all elements forrawChannelIdslist.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.HasCommaSeperatedChannelIdsinstance.- 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
-
from
Fill a builder with attribute values from the providedcom.hubspot.slack.client.methods.params.usergroups.AbstractUsergroupUpdateParamsinstance.- Parameters:
instance- The instance from which to copy values- Returns:
thisbuilder for use in a chained invocation
-
addRawChannelIds
Adds one element torawChannelIdslist.- Parameters:
element- A rawChannelIds element- Returns:
thisbuilder for use in a chained invocation
-
addRawChannelIds
Adds elements torawChannelIdslist.- Parameters:
elements- An array of rawChannelIds elements- Returns:
thisbuilder for use in a chained invocation
-
setRawChannelIds
Sets or replaces all elements forrawChannelIdslist.- Parameters:
elements- An iterable of rawChannelIds elements- Returns:
thisbuilder for use in a chained invocation
-
addAllRawChannelIds
Adds elements torawChannelIdslist.- Parameters:
elements- An iterable of rawChannelIds 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
-
setName
Initializes the optional valuenameto name.- Parameters:
name- The value for name,nullis accepted asjava.util.Optional.empty()- Returns:
thisbuilder for chained invocation
-
setName
Initializes the optional valuenameto name.- Parameters:
name- The value for name- Returns:
thisbuilder for use in a chained invocation
-
setDescription
Initializes the optional valuedescriptionto description.- Parameters:
description- The value for description,nullis accepted asjava.util.Optional.empty()- Returns:
thisbuilder for chained invocation
-
setDescription
Initializes the optional valuedescriptionto description.- Parameters:
description- The value for description- Returns:
thisbuilder for use in a chained invocation
-
setHandle
Initializes the optional valuehandleto handle.- Parameters:
handle- The value for handle,nullis accepted asjava.util.Optional.empty()- Returns:
thisbuilder for chained invocation
-
setHandle
Initializes the optional valuehandleto handle.- Parameters:
handle- The value for handle- 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 newUsergroupUpdateParams.- Returns:
- An immutable instance of UsergroupUpdateParams
- Throws:
com.hubspot.immutables.validation.InvalidImmutableStateException- if any required attributes are missing
-