Class UsergroupCreateParams.Builder
java.lang.Object
com.hubspot.slack.client.methods.params.usergroups.UsergroupCreateParams.Builder
- Enclosing class:
UsergroupCreateParams
@Generated(from="UsergroupCreateParamsIF",
generator="Immutables")
@NotThreadSafe
public static final class UsergroupCreateParams.Builder
extends Object
Builds instances of type
UsergroupCreateParams.
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 newUsergroupCreateParams.from(HasCommaSeperatedChannelIds instance) Fill a builder with attribute values from the providedcom.hubspot.slack.client.methods.interceptor.HasCommaSeperatedChannelIdsinstance.from(UsergroupCreateParamsIF instance) Fill a builder with attribute values from the providedcom.hubspot.slack.client.methods.params.usergroups.UsergroupCreateParamsIFinstance.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 value for thenameattribute.setRawChannelIds(Iterable<String> elements) Sets or replaces all elements forrawChannelIdslist.
-
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.params.usergroups.UsergroupCreateParamsIFinstance.- 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
-
setName
Initializes the value for thenameattribute.- 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 newUsergroupCreateParams.- Returns:
- An immutable instance of UsergroupCreateParams
- Throws:
com.hubspot.immutables.validation.InvalidImmutableStateException- if any required attributes are missing
-