@ParametersAreNonnullByDefault @Generated(value={"Immutables.generator","SlackGroupIF"}) @Immutable public final class SlackGroup extends Object implements SlackGroupIF
SlackGroupIF.
Use the builder to create immutable instances:
SlackGroup.builder().
| Modifier and Type | Class and Description |
|---|---|
static class |
SlackGroup.Builder
Builds instances of type
SlackGroup. |
| Modifier and Type | Method and Description |
|---|---|
static SlackGroup.Builder |
builder()
Creates a builder for
SlackGroup. |
static SlackGroup |
copyOf(SlackGroupIF instance)
Creates an immutable copy of a
SlackGroupIF value. |
boolean |
equals(Object another)
This instance is equal to all instances of
SlackGroup that have equal attribute values. |
long |
getCreatedEpochSeconds() |
String |
getCreatorId() |
String |
getId() |
Optional<Message> |
getLatest() |
List<String> |
getMemberIds() |
String |
getName() |
ChannelMetadata |
getPurpose() |
ChannelMetadata |
getTopic() |
int |
hashCode()
Computes a hash code from attributes:
id, name, createdEpochSeconds, creatorId, archived, mpim, memberIds, topic, purpose, latest. |
boolean |
isArchived() |
boolean |
isMpim() |
String |
toString()
Prints the immutable value
SlackGroup with attribute values. |
SlackGroup |
withArchived(boolean archived)
Copy the current immutable object by setting a value for the
archived attribute. |
SlackGroup |
withCreatedEpochSeconds(long createdEpochSeconds)
Copy the current immutable object by setting a value for the
createdEpochSeconds attribute. |
SlackGroup |
withCreatorId(String creatorId)
Copy the current immutable object by setting a value for the
creatorId attribute. |
SlackGroup |
withId(String id)
Copy the current immutable object by setting a value for the
id attribute. |
SlackGroup |
withLatest(Message value)
Copy the current immutable object by setting a present value for the optional
latest attribute. |
SlackGroup |
withLatest(Optional<Message> optional)
Copy the current immutable object by setting an optional value for the
latest attribute. |
SlackGroup |
withMemberIds(Iterable<String> elements)
Copy the current immutable object with elements that replace the content of
memberIds. |
SlackGroup |
withMemberIds(String... elements)
Copy the current immutable object with elements that replace the content of
memberIds. |
SlackGroup |
withMpim(boolean mpim)
Copy the current immutable object by setting a value for the
mpim attribute. |
SlackGroup |
withName(String name)
Copy the current immutable object by setting a value for the
name attribute. |
SlackGroup |
withPurpose(ChannelMetadata purpose)
Copy the current immutable object by setting a value for the
purpose attribute. |
SlackGroup |
withTopic(ChannelMetadata topic)
Copy the current immutable object by setting a value for the
topic attribute. |
public String getId()
getId in interface SlackGroupIFid attributepublic String getName()
getName in interface SlackGroupIFname attributepublic long getCreatedEpochSeconds()
getCreatedEpochSeconds in interface SlackGroupIFcreatedEpochSeconds attributepublic String getCreatorId()
getCreatorId in interface SlackGroupIFcreatorId attributepublic boolean isArchived()
isArchived in interface SlackGroupIFarchived attributepublic boolean isMpim()
isMpim in interface SlackGroupIFmpim attributepublic List<String> getMemberIds()
getMemberIds in interface SlackGroupIFmemberIds attributepublic ChannelMetadata getTopic()
getTopic in interface SlackGroupIFtopic attributepublic ChannelMetadata getPurpose()
getPurpose in interface SlackGroupIFpurpose attributepublic Optional<Message> getLatest()
getLatest in interface SlackGroupIFlatest attributepublic final SlackGroup 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 SlackGroup 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 SlackGroup withCreatedEpochSeconds(long createdEpochSeconds)
createdEpochSeconds attribute.
A value equality check is used to prevent copying of the same value by returning this.createdEpochSeconds - A new value for createdEpochSecondsthis objectpublic final SlackGroup withCreatorId(String creatorId)
creatorId attribute.
An equals check used to prevent copying of the same value by returning this.creatorId - A new value for creatorIdthis objectpublic final SlackGroup withArchived(boolean archived)
archived attribute.
A value equality check is used to prevent copying of the same value by returning this.archived - A new value for archivedthis objectpublic final SlackGroup withMpim(boolean mpim)
mpim attribute.
A value equality check is used to prevent copying of the same value by returning this.mpim - A new value for mpimthis objectpublic final SlackGroup withMemberIds(String... elements)
memberIds.elements - The elements to setthis objectpublic final SlackGroup withMemberIds(Iterable<String> elements)
memberIds.
A shallow reference equality check is used to prevent copying of the same value by returning this.elements - An iterable of memberIds elements to setthis objectpublic final SlackGroup withTopic(ChannelMetadata topic)
topic attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this.topic - A new value for topicthis objectpublic final SlackGroup withPurpose(ChannelMetadata purpose)
purpose attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this.purpose - A new value for purposethis objectpublic final SlackGroup withLatest(@Nullable Message value)
latest attribute.value - The value for latest, null is accepted as java.util.Optional.empty()this objectpublic final SlackGroup withLatest(Optional<Message> optional)
latest attribute.
A shallow reference equality check is used on unboxed optional value to prevent copying of the same value by returning this.optional - A value for latestthis objectpublic boolean equals(@Nullable Object another)
SlackGroup that have equal attribute values.public int hashCode()
id, name, createdEpochSeconds, creatorId, archived, mpim, memberIds, topic, purpose, latest.public String toString()
SlackGroup with attribute values.public static SlackGroup copyOf(SlackGroupIF instance)
SlackGroupIF 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 SlackGroup.Builder builder()
SlackGroup.Copyright © 2019. All rights reserved.