@ParametersAreNonnullByDefault @Generated(value={"Immutables.generator","SlackEventSkeletonIF"}) @Immutable public final class SlackEventSkeleton extends Object implements SlackEventSkeletonIF
SlackEventSkeletonIF.
Use the builder to create immutable instances:
SlackEventSkeleton.builder().
| Modifier and Type | Class and Description |
|---|---|
static class |
SlackEventSkeleton.Builder
Builds instances of type
SlackEventSkeleton. |
| Modifier and Type | Method and Description |
|---|---|
static SlackEventSkeleton.Builder |
builder()
Creates a builder for
SlackEventSkeleton. |
static SlackEventSkeleton |
copyOf(SlackEventSkeletonIF instance)
Creates an immutable copy of a
SlackEventSkeletonIF value. |
boolean |
equals(Object another)
This instance is equal to all instances of
SlackEventSkeleton that have equal attribute values. |
Optional<String> |
getChannelMaybe() |
String |
getTs() |
SlackEventType |
getType() |
int |
hashCode()
Computes a hash code from attributes:
channelMaybe, type, ts. |
String |
toString()
Prints the immutable value
SlackEventSkeleton with attribute values. |
SlackEventSkeleton |
withChannelMaybe(Optional<String> optional)
Copy the current immutable object by setting an optional value for the
channelMaybe attribute. |
SlackEventSkeleton |
withChannelMaybe(String value)
Copy the current immutable object by setting a present value for the optional
channelMaybe attribute. |
SlackEventSkeleton |
withTs(String ts)
Copy the current immutable object by setting a value for the
ts attribute. |
SlackEventSkeleton |
withType(SlackEventType type)
Copy the current immutable object by setting a value for the
type attribute. |
clone, finalize, getClass, notify, notifyAll, wait, wait, waittoDetailedEventpublic Optional<String> getChannelMaybe()
getChannelMaybe in interface SlackEventSkeletonIFchannelMaybe attributepublic SlackEventType getType()
getType in interface SlackEventtype attributepublic String getTs()
getTs in interface SlackEventts attributepublic final SlackEventSkeleton withChannelMaybe(@Nullable String value)
channelMaybe attribute.value - The value for channelMaybe, null is accepted as java.util.Optional.empty()this objectpublic final SlackEventSkeleton withChannelMaybe(Optional<String> optional)
channelMaybe attribute.
An equality check is used on inner nullable value to prevent copying of the same value by returning this.optional - A value for channelMaybethis objectpublic final SlackEventSkeleton withType(SlackEventType type)
type attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this.type - A new value for typethis objectpublic final SlackEventSkeleton withTs(String ts)
ts attribute.
An equals check used to prevent copying of the same value by returning this.ts - A new value for tsthis objectpublic boolean equals(@Nullable Object another)
SlackEventSkeleton that have equal attribute values.public int hashCode()
channelMaybe, type, ts.public String toString()
SlackEventSkeleton with attribute values.public static SlackEventSkeleton copyOf(SlackEventSkeletonIF instance)
SlackEventSkeletonIF 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 SlackEventSkeleton.Builder builder()
SlackEventSkeleton.Copyright © 2019. All rights reserved.