@ParametersAreNonnullByDefault @Generated(value={"Immutables.generator","SlackChannelIF"}) @Immutable public final class SlackChannel extends Object implements SlackChannelIF
SlackChannelIF.
Use the builder to create immutable instances:
SlackChannel.builder().
| Modifier and Type | Class and Description |
|---|---|
static class |
SlackChannel.Builder
Builds instances of type
SlackChannel. |
| Modifier and Type | Method and Description |
|---|---|
static SlackChannel.Builder |
builder()
Creates a builder for
SlackChannel. |
static SlackChannel |
copyOf(SlackChannelIF instance)
Creates an immutable copy of a
SlackChannelIF value. |
boolean |
equals(Object another)
This instance is equal to all instances of
SlackChannel that have equal attribute values. |
ChannelType |
getChannelType() |
String |
getId() |
Optional<Boolean> |
getIsArchived() |
Optional<Boolean> |
getIsGeneral() |
String |
getName() |
int |
hashCode()
Computes a hash code from attributes:
id, name, isArchived, isGeneral, channelType. |
String |
toString()
Prints the immutable value
SlackChannel with attribute values. |
SlackChannel |
withId(String id)
Copy the current immutable object by setting a value for the
id attribute. |
SlackChannel |
withIsArchived(Boolean value)
Copy the current immutable object by setting a present value for the optional
isArchived attribute. |
SlackChannel |
withIsArchived(Optional<Boolean> optional)
Copy the current immutable object by setting an optional value for the
isArchived attribute. |
SlackChannel |
withIsGeneral(Boolean value)
Copy the current immutable object by setting a present value for the optional
isGeneral attribute. |
SlackChannel |
withIsGeneral(Optional<Boolean> optional)
Copy the current immutable object by setting an optional value for the
isGeneral attribute. |
SlackChannel |
withName(String name)
Copy the current immutable object by setting a value for the
name attribute. |
public String getId()
getId in interface SlackChannelIFid attributepublic String getName()
getName in interface SlackChannelIFname attributepublic Optional<Boolean> getIsArchived()
getIsArchived in interface SlackChannelIFisArchived attributepublic Optional<Boolean> getIsGeneral()
getIsGeneral in interface SlackChannelIFisGeneral attributepublic ChannelType getChannelType()
getChannelType in interface SlackChannelIFchannelType attributepublic final SlackChannel withId(String id)
id attribute.
An equals check used to prevent copying of the same value by returning this.id - A new value for idthis objectpublic final SlackChannel withName(String name)
name attribute.
An equals check used to prevent copying of the same value by returning this.name - A new value for namethis objectpublic final SlackChannel withIsArchived(@Nullable Boolean value)
isArchived attribute.value - The value for isArchived, null is accepted as java.util.Optional.empty()this objectpublic final SlackChannel withIsArchived(Optional<Boolean> optional)
isArchived attribute.
An equality check is used on inner nullable value to prevent copying of the same value by returning this.optional - A value for isArchivedthis objectpublic final SlackChannel withIsGeneral(@Nullable Boolean value)
isGeneral attribute.value - The value for isGeneral, null is accepted as java.util.Optional.empty()this objectpublic final SlackChannel withIsGeneral(Optional<Boolean> optional)
isGeneral attribute.
An equality check is used on inner nullable value to prevent copying of the same value by returning this.optional - A value for isGeneralthis objectpublic boolean equals(@Nullable Object another)
SlackChannel that have equal attribute values.public int hashCode()
id, name, isArchived, isGeneral, channelType.public String toString()
SlackChannel with attribute values.public static SlackChannel copyOf(SlackChannelIF instance)
SlackChannelIF 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 SlackChannel.Builder builder()
SlackChannel.Copyright © 2019. All rights reserved.