@ParametersAreNonnullByDefault @Generated(value={"Immutables.generator","AbstractChannelsInfoParams"}) @Immutable public final class ChannelsInfoParams extends AbstractChannelsInfoParams
AbstractChannelsInfoParams.
Use the builder to create immutable instances:
ChannelsInfoParams.builder().
Use the static factory method to create immutable instances:
ChannelsInfoParams.of().
| Modifier and Type | Class and Description |
|---|---|
static class |
ChannelsInfoParams.Builder
Builds instances of type
ChannelsInfoParams. |
| Modifier and Type | Method and Description |
|---|---|
static ChannelsInfoParams.Builder |
builder()
Creates a builder for
ChannelsInfoParams. |
static ChannelsInfoParams |
copyOf(AbstractChannelsInfoParams instance)
Creates an immutable copy of a
AbstractChannelsInfoParams value. |
boolean |
equals(Object another)
This instance is equal to all instances of
ChannelsInfoParams that have equal attribute values. |
String |
getChannelId() |
Optional<Boolean> |
getIncludeLocale() |
int |
hashCode()
Computes a hash code from attributes:
channelId, includeLocale. |
static ChannelsInfoParams |
of(String channelId)
Construct a new immutable
ChannelsInfoParams instance. |
String |
toString()
Prints the immutable value
ChannelsInfoParams with attribute values. |
ChannelsInfoParams |
withChannelId(String channelId)
Copy the current immutable object by setting a value for the
channelId attribute. |
ChannelsInfoParams |
withIncludeLocale(Boolean value)
Copy the current immutable object by setting a present value for the optional
includeLocale attribute. |
ChannelsInfoParams |
withIncludeLocale(Optional<Boolean> optional)
Copy the current immutable object by setting an optional value for the
includeLocale attribute. |
public String getChannelId()
getChannelId in interface HasChannelgetChannelId in class AbstractChannelsInfoParamschannelId attributepublic Optional<Boolean> getIncludeLocale()
getIncludeLocale in class AbstractChannelsInfoParamsincludeLocale attributepublic final ChannelsInfoParams withChannelId(String channelId)
channelId attribute.
An equals check used to prevent copying of the same value by returning this.channelId - A new value for channelIdthis objectpublic final ChannelsInfoParams withIncludeLocale(@Nullable Boolean value)
includeLocale attribute.value - The value for includeLocale, null is accepted as java.util.Optional.empty()this objectpublic final ChannelsInfoParams withIncludeLocale(Optional<Boolean> optional)
includeLocale attribute.
An equality check is used on inner nullable value to prevent copying of the same value by returning this.optional - A value for includeLocalethis objectpublic boolean equals(@Nullable Object another)
ChannelsInfoParams that have equal attribute values.public int hashCode()
channelId, includeLocale.public String toString()
ChannelsInfoParams with attribute values.public static ChannelsInfoParams of(String channelId)
ChannelsInfoParams instance.channelId - The value for the channelId attributepublic static ChannelsInfoParams copyOf(AbstractChannelsInfoParams instance)
AbstractChannelsInfoParams value.
Uses accessors to get values to initialize the new immutable instance.
If an instance is already immutable, it is returned as is.instance - The instance to copypublic static ChannelsInfoParams.Builder builder()
ChannelsInfoParams.Copyright © 2019. All rights reserved.