Class ChannelsFilter.Builder
java.lang.Object
com.hubspot.slack.client.methods.params.channels.ChannelsFilter.Builder
- Enclosing class:
ChannelsFilter
@Generated(from="ChannelsFilterIF",
generator="Immutables")
@NotThreadSafe
public static final class ChannelsFilter.Builder
extends Object
Builds instances of type
ChannelsFilter.
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 newChannelsFilter.final ChannelsFilter.Builderfrom(BaseChannelsFilter instance) Fill a builder with attribute values from the providedcom.hubspot.slack.client.methods.params.channels.BaseChannelsFilterinstance.final ChannelsFilter.Builderfrom(ChannelsFilterIF instance) Fill a builder with attribute values from the providedcom.hubspot.slack.client.methods.params.channels.ChannelsFilterIFinstance.final ChannelsFilter.BuildersetShouldExcludeArchived(Boolean shouldExcludeArchived) Initializes the optional valueshouldExcludeArchivedto shouldExcludeArchived.final ChannelsFilter.BuildersetShouldExcludeArchived(Optional<Boolean> shouldExcludeArchived) Initializes the optional valueshouldExcludeArchivedto shouldExcludeArchived.final ChannelsFilter.BuildersetShouldExcludeMembers(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.ChannelsFilterIFinstance.- Parameters:
instance- The instance from which to copy values- Returns:
thisbuilder for use in a chained invocation
-
setShouldExcludeArchived
public final ChannelsFilter.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 ChannelsFilter.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
-
build
Builds a newChannelsFilter.- Returns:
- An immutable instance of ChannelsFilter
- Throws:
com.hubspot.immutables.validation.InvalidImmutableStateException- if any required attributes are missing
-