Class ReactionsAddParams
java.lang.Object
com.hubspot.slack.client.methods.params.reactions.ReactionsAddParams
- All Implemented Interfaces:
ReactionsAddParamsIF
@Generated(from="ReactionsAddParamsIF",
generator="Immutables")
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
public final class ReactionsAddParams
extends Object
implements ReactionsAddParamsIF
Immutable implementation of
ReactionsAddParamsIF.
Use the builder to create immutable instances:
ReactionsAddParams.builder().
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic ReactionsAddParams.Builderbuilder()Creates a builder forReactionsAddParams.static ReactionsAddParamscopyOf(ReactionsAddParamsIF instance) Creates an immutable copy of aReactionsAddParamsIFvalue.booleanThis instance is equal to all instances ofReactionsAddParamsthat have equal attribute values.getFile()Deprecated.As of 22nd August 2019, Slack has removed support for file comments - file threads are the replacementDeprecated.As of 22nd August 2019, Slack has removed support for file comments - file threads are the replacementgetName()inthashCode()Computes a hash code from attributes:name,channel,timestamp,file,fileComment.toString()Prints the immutable valueReactionsAddParamswith attribute values.final ReactionsAddParamswithChannel(String value) Copy the current immutable object by setting a present value for the optionalchannelattribute.final ReactionsAddParamswithChannel(Optional<String> optional) Copy the current immutable object by setting an optional value for thechannelattribute.final ReactionsAddParamsDeprecated.final ReactionsAddParamsDeprecated.final ReactionsAddParamswithFileComment(String value) Deprecated.final ReactionsAddParamswithFileComment(Optional<String> optional) Deprecated.final ReactionsAddParamsCopy the current immutable object by setting a value for thenameattribute.final ReactionsAddParamswithTimestamp(String value) Copy the current immutable object by setting a present value for the optionaltimestampattribute.final ReactionsAddParamswithTimestamp(Optional<String> optional) Copy the current immutable object by setting an optional value for thetimestampattribute.Methods inherited from interface com.hubspot.slack.client.methods.params.reactions.ReactionsAddParamsIF
reactionRecipientExists
-
Method Details
-
getName
- Specified by:
getNamein interfaceReactionsAddParamsIF- Returns:
- The value of the
nameattribute
-
getChannel
- Specified by:
getChannelin interfaceReactionsAddParamsIF- Returns:
- The value of the
channelattribute
-
getTimestamp
- Specified by:
getTimestampin interfaceReactionsAddParamsIF- Returns:
- The value of the
timestampattribute
-
getFile
Deprecated.As of 22nd August 2019, Slack has removed support for file comments - file threads are the replacement- Specified by:
getFilein interfaceReactionsAddParamsIF
-
getFileComment
Deprecated.As of 22nd August 2019, Slack has removed support for file comments - file threads are the replacement- Specified by:
getFileCommentin interfaceReactionsAddParamsIF
-
withName
Copy the current immutable object by setting a value for thenameattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for name- Returns:
- A modified copy or the
thisobject
-
withChannel
Copy the current immutable object by setting a present value for the optionalchannelattribute.- Parameters:
value- The value for channel,nullis accepted asjava.util.Optional.empty()- Returns:
- A modified copy or
thisif not changed
-
withChannel
Copy the current immutable object by setting an optional value for thechannelattribute. An equality check is used on inner value to prevent copying of the same value by returningthis.- Parameters:
optional- An optional value for channel- Returns:
- A modified copy or
thisif not changed
-
withTimestamp
Copy the current immutable object by setting a present value for the optionaltimestampattribute.- Parameters:
value- The value for timestamp,nullis accepted asjava.util.Optional.empty()- Returns:
- A modified copy or
thisif not changed
-
withTimestamp
Copy the current immutable object by setting an optional value for thetimestampattribute. An equality check is used on inner value to prevent copying of the same value by returningthis.- Parameters:
optional- An optional value for timestamp- Returns:
- A modified copy or
thisif not changed
-
withFile
Deprecated.Copy the current immutable object by setting a present value for the optionalfileattribute.- Parameters:
value- The value for file,nullis accepted asjava.util.Optional.empty()- Returns:
- A modified copy or
thisif not changed
-
withFile
Deprecated.Copy the current immutable object by setting an optional value for thefileattribute. An equality check is used on inner value to prevent copying of the same value by returningthis.- Parameters:
optional- An optional value for file- Returns:
- A modified copy or
thisif not changed
-
withFileComment
Deprecated.Copy the current immutable object by setting a present value for the optionalfileCommentattribute.- Parameters:
value- The value for fileComment,nullis accepted asjava.util.Optional.empty()- Returns:
- A modified copy or
thisif not changed
-
withFileComment
Deprecated.Copy the current immutable object by setting an optional value for thefileCommentattribute. An equality check is used on inner value to prevent copying of the same value by returningthis.- Parameters:
optional- An optional value for fileComment- Returns:
- A modified copy or
thisif not changed
-
equals
This instance is equal to all instances ofReactionsAddParamsthat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:name,channel,timestamp,file,fileComment. -
toString
Prints the immutable valueReactionsAddParamswith attribute values. -
copyOf
Creates an immutable copy of aReactionsAddParamsIFvalue. Uses accessors to get values to initialize the new immutable instance. If an instance is already immutable, it is returned as is.- Parameters:
instance- The instance to copy- Returns:
- A copied immutable ReactionsAddParams instance
-
builder
Creates a builder forReactionsAddParams.ReactionsAddParams.builder() .setName(String) // requiredname.setChannel(Optional<String>) // optionalchannel.setTimestamp(Optional<String>) // optionaltimestamp.setFile(Optional<String>) // optionalfile.setFileComment(Optional<String>) // optionalfileComment.build();- Returns:
- A new ReactionsAddParams builder
-