Class ChannelsListParams.Builder
java.lang.Object
com.hubspot.slack.client.methods.params.channels.ChannelsListParams.Builder
- Enclosing class:
ChannelsListParams
@Generated(from="ChannelsListParamsIF",
generator="Immutables")
@NotThreadSafe
public static final class ChannelsListParams.Builder
extends Object
Builds instances of type
ChannelsListParams.
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 newChannelsListParams.from(BaseChannelsFilter instance) Fill a builder with attribute values from the providedcom.hubspot.slack.client.methods.params.channels.BaseChannelsFilterinstance.from(ChannelsListParamsIF instance) Fill a builder with attribute values from the providedcom.hubspot.slack.client.methods.params.channels.ChannelsListParamsIFinstance.Initializes the optional valuecursorto cursor.Initializes the optional valuecursorto cursor.Initializes the optional valuelimitto limit.Initializes the optional valuelimitto limit.setShouldExcludeArchived(Boolean shouldExcludeArchived) Initializes the optional valueshouldExcludeArchivedto shouldExcludeArchived.setShouldExcludeArchived(Optional<Boolean> shouldExcludeArchived) Initializes the optional valueshouldExcludeArchivedto shouldExcludeArchived.setShouldExcludeMembers(boolean shouldExcludeMembers) Initializes the value for theshouldExcludeMembersattribute.
-
Method Details
-
from
Fill a builder with attribute values from the providedcom.hubspot.slack.client.methods.params.channels.BaseChannelsFilterinstance.- 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.channels.ChannelsListParamsIFinstance.- Parameters:
instance- The instance from which to copy values- Returns:
thisbuilder for use in a chained invocation
-
setShouldExcludeArchived
public final ChannelsListParams.Builder setShouldExcludeArchived(@Nullable Boolean shouldExcludeArchived) Initializes the optional valueshouldExcludeArchivedto shouldExcludeArchived.- Parameters:
shouldExcludeArchived- The value for shouldExcludeArchived,nullis accepted asjava.util.Optional.empty()- Returns:
thisbuilder for chained invocation
-
setShouldExcludeArchived
public final ChannelsListParams.Builder setShouldExcludeArchived(Optional<Boolean> shouldExcludeArchived) Initializes the optional valueshouldExcludeArchivedto shouldExcludeArchived.- Parameters:
shouldExcludeArchived- The value for shouldExcludeArchived- Returns:
thisbuilder for use in a chained invocation
-
setShouldExcludeMembers
Initializes the value for theshouldExcludeMembersattribute.If not set, this attribute will have a default value as returned by the initializer of
shouldExcludeMembers.- Parameters:
shouldExcludeMembers- The value for shouldExcludeMembers- Returns:
thisbuilder for use in a chained invocation
-
setCursor
Initializes the optional valuecursorto cursor.- Parameters:
cursor- The value for cursor,nullis accepted asjava.util.Optional.empty()- Returns:
thisbuilder for chained invocation
-
setCursor
Initializes the optional valuecursorto cursor.- Parameters:
cursor- The value for cursor- Returns:
thisbuilder for use in a chained invocation
-
setLimit
Initializes the optional valuelimitto limit.- Parameters:
limit- The value for limit,nullis accepted asjava.util.Optional.empty()- Returns:
thisbuilder for chained invocation
-
setLimit
Initializes the optional valuelimitto limit.- Parameters:
limit- The value for limit- Returns:
thisbuilder for use in a chained invocation
-
build
Builds a newChannelsListParams.- Returns:
- An immutable instance of ChannelsListParams
- Throws:
com.hubspot.immutables.validation.InvalidImmutableStateException- if any required attributes are missing
-