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 Details

    • from

      public final ReactionsAddParams.Builder from(ReactionsAddParamsIF instance)
      Fill a builder with attribute values from the provided ReactionsAddParamsIF instance. 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:
      this builder for use in a chained invocation
    • setName

      public final ReactionsAddParams.Builder setName(String name)
      Initializes the value for the name attribute.
      Parameters:
      name - The value for name
      Returns:
      this builder for use in a chained invocation
    • setChannel

      public final ReactionsAddParams.Builder setChannel(@Nullable String channel)
      Initializes the optional value channel to channel.
      Parameters:
      channel - The value for channel, null is accepted as java.util.Optional.empty()
      Returns:
      this builder for chained invocation
    • setChannel

      public final ReactionsAddParams.Builder setChannel(Optional<String> channel)
      Initializes the optional value channel to channel.
      Parameters:
      channel - The value for channel
      Returns:
      this builder for use in a chained invocation
    • setTimestamp

      public final ReactionsAddParams.Builder setTimestamp(@Nullable String timestamp)
      Initializes the optional value timestamp to timestamp.
      Parameters:
      timestamp - The value for timestamp, null is accepted as java.util.Optional.empty()
      Returns:
      this builder for chained invocation
    • setTimestamp

      public final ReactionsAddParams.Builder setTimestamp(Optional<String> timestamp)
      Initializes the optional value timestamp to timestamp.
      Parameters:
      timestamp - The value for timestamp
      Returns:
      this builder for use in a chained invocation
    • setFile

      @Deprecated public final ReactionsAddParams.Builder setFile(@Nullable String file)
      Deprecated.
      Initializes the optional value file to file.
      Parameters:
      file - The value for file, null is accepted as java.util.Optional.empty()
      Returns:
      this builder for chained invocation
    • setFile

      @Deprecated public final ReactionsAddParams.Builder setFile(Optional<String> file)
      Deprecated.
      Initializes the optional value file to file.
      Parameters:
      file - The value for file
      Returns:
      this builder for use in a chained invocation
    • setFileComment

      @Deprecated public final ReactionsAddParams.Builder setFileComment(@Nullable String fileComment)
      Deprecated.
      Initializes the optional value fileComment to fileComment.
      Parameters:
      fileComment - The value for fileComment, null is accepted as java.util.Optional.empty()
      Returns:
      this builder for chained invocation
    • setFileComment

      @Deprecated public final ReactionsAddParams.Builder setFileComment(Optional<String> fileComment)
      Deprecated.
      Initializes the optional value fileComment to fileComment.
      Parameters:
      fileComment - The value for fileComment
      Returns:
      this builder for use in a chained invocation
    • build

      public ReactionsAddParams build()
      Builds a new ReactionsAddParams.
      Returns:
      An immutable instance of ReactionsAddParams
      Throws:
      com.hubspot.immutables.validation.InvalidImmutableStateException - if any required attributes are missing