Class ReactionsAddParams.Builder
java.lang.Object
com.hubspot.slack.client.methods.params.reactions.ReactionsAddParams.Builder
- Enclosing class:
ReactionsAddParams
@Generated(from="ReactionsAddParamsIF",
generator="Immutables")
@NotThreadSafe
public static final class ReactionsAddParams.Builder
extends Object
Builds instances of type
ReactionsAddParams.
Initialize attributes and then invoke the build() method to create an
immutable instance.
Builder is not thread-safe and generally should not be stored in a field or collection,
but instead used immediately to create instances.
-
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds a newReactionsAddParams.from(ReactionsAddParamsIF instance) Fill a builder with attribute values from the providedReactionsAddParamsIFinstance.setChannel(String channel) Initializes the optional valuechannelto channel.setChannel(Optional<String> channel) Initializes the optional valuechannelto channel.Deprecated.Deprecated.setFileComment(String fileComment) Deprecated.setFileComment(Optional<String> fileComment) Deprecated.Initializes the value for thenameattribute.setTimestamp(String timestamp) Initializes the optional valuetimestampto timestamp.setTimestamp(Optional<String> timestamp) Initializes the optional valuetimestampto timestamp.
-
Method Details
-
from
Fill a builder with attribute values from the providedReactionsAddParamsIFinstance. Regular attribute values will be replaced with those from the given instance. Absent optional values will not replace present values.- Parameters:
instance- The instance from which to copy values- Returns:
thisbuilder for use in a chained invocation
-
setName
Initializes the value for thenameattribute.- Parameters:
name- The value for name- Returns:
thisbuilder for use in a chained invocation
-
setChannel
Initializes the optional valuechannelto channel.- Parameters:
channel- The value for channel,nullis accepted asjava.util.Optional.empty()- Returns:
thisbuilder for chained invocation
-
setChannel
Initializes the optional valuechannelto channel.- Parameters:
channel- The value for channel- Returns:
thisbuilder for use in a chained invocation
-
setTimestamp
Initializes the optional valuetimestampto timestamp.- Parameters:
timestamp- The value for timestamp,nullis accepted asjava.util.Optional.empty()- Returns:
thisbuilder for chained invocation
-
setTimestamp
Initializes the optional valuetimestampto timestamp.- Parameters:
timestamp- The value for timestamp- Returns:
thisbuilder for use in a chained invocation
-
setFile
Deprecated.Initializes the optional valuefileto file.- Parameters:
file- The value for file,nullis accepted asjava.util.Optional.empty()- Returns:
thisbuilder for chained invocation
-
setFile
Deprecated.Initializes the optional valuefileto file.- Parameters:
file- The value for file- Returns:
thisbuilder for use in a chained invocation
-
setFileComment
Deprecated.Initializes the optional valuefileCommentto fileComment.- Parameters:
fileComment- The value for fileComment,nullis accepted asjava.util.Optional.empty()- Returns:
thisbuilder for chained invocation
-
setFileComment
Deprecated.Initializes the optional valuefileCommentto fileComment.- Parameters:
fileComment- The value for fileComment- Returns:
thisbuilder for use in a chained invocation
-
build
Builds a newReactionsAddParams.- Returns:
- An immutable instance of ReactionsAddParams
- Throws:
com.hubspot.immutables.validation.InvalidImmutableStateException- if any required attributes are missing
-