Class ChannelsInfoParams
java.lang.Object
com.hubspot.slack.client.methods.params.channels.AbstractChannelsInfoParams
com.hubspot.slack.client.methods.params.channels.ChannelsInfoParams
- All Implemented Interfaces:
HasChannel
@Generated(from="AbstractChannelsInfoParams",
generator="Immutables")
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
public final class ChannelsInfoParams
extends AbstractChannelsInfoParams
Immutable implementation of
AbstractChannelsInfoParams.
Use the builder to create immutable instances:
ChannelsInfoParams.builder().
Use the static factory method to create immutable instances:
ChannelsInfoParams.of().
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic ChannelsInfoParams.Builderbuilder()Creates a builder forChannelsInfoParams.static ChannelsInfoParamscopyOf(AbstractChannelsInfoParams instance) Creates an immutable copy of aAbstractChannelsInfoParamsvalue.booleanThis instance is equal to all instances ofChannelsInfoParamsthat have equal attribute values.inthashCode()Computes a hash code from attributes:channelId,includeLocale.static ChannelsInfoParamsConstruct a new immutableChannelsInfoParamsinstance.toString()Prints the immutable valueChannelsInfoParamswith attribute values.final ChannelsInfoParamswithChannelId(String value) Copy the current immutable object by setting a value for thechannelIdattribute.final ChannelsInfoParamswithIncludeLocale(Boolean value) Copy the current immutable object by setting a present value for the optionalincludeLocaleattribute.final ChannelsInfoParamswithIncludeLocale(Optional<Boolean> optional) Copy the current immutable object by setting an optional value for theincludeLocaleattribute.
-
Method Details
-
getChannelId
- Specified by:
getChannelIdin interfaceHasChannel- Specified by:
getChannelIdin classAbstractChannelsInfoParams- Returns:
- The value of the
channelIdattribute
-
getIncludeLocale
- Specified by:
getIncludeLocalein classAbstractChannelsInfoParams- Returns:
- The value of the
includeLocaleattribute
-
withChannelId
Copy the current immutable object by setting a value for thechannelIdattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for channelId- Returns:
- A modified copy or the
thisobject
-
withIncludeLocale
Copy the current immutable object by setting a present value for the optionalincludeLocaleattribute.- Parameters:
value- The value for includeLocale,nullis accepted asjava.util.Optional.empty()- Returns:
- A modified copy or
thisif not changed
-
withIncludeLocale
Copy the current immutable object by setting an optional value for theincludeLocaleattribute. An equality check is used on inner value to prevent copying of the same value by returningthis.- Parameters:
optional- An optional value for includeLocale- Returns:
- A modified copy or
thisif not changed
-
equals
This instance is equal to all instances ofChannelsInfoParamsthat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:channelId,includeLocale. -
toString
Prints the immutable valueChannelsInfoParamswith attribute values. -
of
Construct a new immutableChannelsInfoParamsinstance.- Parameters:
channelId- The value for thechannelIdattribute- Returns:
- An immutable ChannelsInfoParams instance
-
copyOf
Creates an immutable copy of aAbstractChannelsInfoParamsvalue. Uses accessors to get values to initialize the new immutable instance. If an instance is already immutable, it is returned as is.- Parameters:
instance- The instance to copy- Returns:
- A copied immutable ChannelsInfoParams instance
-
builder
Creates a builder forChannelsInfoParams.ChannelsInfoParams.builder() .setChannelId(String) // requiredchannelId.setIncludeLocale(Optional<Boolean>) // optionalincludeLocale.build();- Returns:
- A new ChannelsInfoParams builder
-