@ParametersAreNonnullByDefault @Generated(value={"Immutables.generator","ReactionsAddParamsIF"}) @Immutable public final class ReactionsAddParams extends Object implements ReactionsAddParamsIF
ReactionsAddParamsIF.
Use the builder to create immutable instances:
ReactionsAddParams.builder().
| Modifier and Type | Class and Description |
|---|---|
static class |
ReactionsAddParams.Builder
Builds instances of type
ReactionsAddParams. |
| Modifier and Type | Method and Description |
|---|---|
static ReactionsAddParams.Builder |
builder()
Creates a builder for
ReactionsAddParams. |
static ReactionsAddParams |
copyOf(ReactionsAddParamsIF instance)
Creates an immutable copy of a
ReactionsAddParamsIF value. |
boolean |
equals(Object another)
This instance is equal to all instances of
ReactionsAddParams that have equal attribute values. |
Optional<String> |
getChannel() |
Optional<String> |
getFile()
Deprecated.
As of 22nd August 2019, Slack has removed support for file comments -
file threads are the replacement
|
Optional<String> |
getFileComment()
Deprecated.
As of 22nd August 2019, Slack has removed support for file comments -
file threads are the replacement
|
String |
getName() |
Optional<String> |
getTimestamp() |
int |
hashCode()
Computes a hash code from attributes:
name, channel, timestamp, file, fileComment. |
String |
toString()
Prints the immutable value
ReactionsAddParams with attribute values. |
ReactionsAddParams |
withChannel(Optional<String> optional)
Copy the current immutable object by setting an optional value for the
channel attribute. |
ReactionsAddParams |
withChannel(String value)
Copy the current immutable object by setting a present value for the optional
channel attribute. |
ReactionsAddParams |
withFile(Optional<String> optional)
Deprecated.
|
ReactionsAddParams |
withFile(String value)
Deprecated.
|
ReactionsAddParams |
withFileComment(Optional<String> optional)
Deprecated.
|
ReactionsAddParams |
withFileComment(String value)
Deprecated.
|
ReactionsAddParams |
withName(String name)
Copy the current immutable object by setting a value for the
name attribute. |
ReactionsAddParams |
withTimestamp(Optional<String> optional)
Copy the current immutable object by setting an optional value for the
timestamp attribute. |
ReactionsAddParams |
withTimestamp(String value)
Copy the current immutable object by setting a present value for the optional
timestamp attribute. |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitreactionRecipientExistspublic String getName()
getName in interface ReactionsAddParamsIFname attributepublic Optional<String> getChannel()
getChannel in interface ReactionsAddParamsIFchannel attributepublic Optional<String> getTimestamp()
getTimestamp in interface ReactionsAddParamsIFtimestamp attribute@Deprecated public Optional<String> getFile()
getFile in interface ReactionsAddParamsIF@Deprecated public Optional<String> getFileComment()
getFileComment in interface ReactionsAddParamsIFpublic final ReactionsAddParams 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 ReactionsAddParams withChannel(@Nullable String value)
channel attribute.value - The value for channel, null is accepted as java.util.Optional.empty()this objectpublic final ReactionsAddParams withChannel(Optional<String> optional)
channel attribute.
An equality check is used on inner nullable value to prevent copying of the same value by returning this.optional - A value for channelthis objectpublic final ReactionsAddParams withTimestamp(@Nullable String value)
timestamp attribute.value - The value for timestamp, null is accepted as java.util.Optional.empty()this objectpublic final ReactionsAddParams withTimestamp(Optional<String> optional)
timestamp attribute.
An equality check is used on inner nullable value to prevent copying of the same value by returning this.optional - A value for timestampthis object@Deprecated public final ReactionsAddParams withFile(@Nullable String value)
file attribute.value - The value for file, null is accepted as java.util.Optional.empty()this object@Deprecated public final ReactionsAddParams withFile(Optional<String> optional)
file attribute.
An equality check is used on inner nullable value to prevent copying of the same value by returning this.optional - A value for filethis object@Deprecated public final ReactionsAddParams withFileComment(@Nullable String value)
fileComment attribute.value - The value for fileComment, null is accepted as java.util.Optional.empty()this object@Deprecated public final ReactionsAddParams withFileComment(Optional<String> optional)
fileComment attribute.
An equality check is used on inner nullable value to prevent copying of the same value by returning this.optional - A value for fileCommentthis objectpublic boolean equals(@Nullable Object another)
ReactionsAddParams that have equal attribute values.public int hashCode()
name, channel, timestamp, file, fileComment.public String toString()
ReactionsAddParams with attribute values.public static ReactionsAddParams copyOf(ReactionsAddParamsIF instance)
ReactionsAddParamsIF 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 ReactionsAddParams.Builder builder()
ReactionsAddParams.Copyright © 2019. All rights reserved.