Class CompleteUploadExternalParams

java.lang.Object
com.hubspot.slack.client.methods.params.files.CompleteUploadExternalParams
All Implemented Interfaces:
CompleteUploadExternalParamsIF

@Generated(from="CompleteUploadExternalParamsIF", generator="Immutables") @ParametersAreNonnullByDefault @Generated("org.immutables.processor.ProxyProcessor") @Immutable public final class CompleteUploadExternalParams extends Object implements CompleteUploadExternalParamsIF
Immutable implementation of CompleteUploadExternalParamsIF.

Use the builder to create immutable instances: CompleteUploadExternalParams.builder().

  • Method Details

    • getFiles

      public List<FileInfo> getFiles()
      Specified by:
      getFiles in interface CompleteUploadExternalParamsIF
      Returns:
      The value of the files attribute
    • getChannelId

      public Optional<String> getChannelId()
      Specified by:
      getChannelId in interface CompleteUploadExternalParamsIF
      Returns:
      The value of the channelId attribute
    • getThreadTs

      public Optional<String> getThreadTs()
      Specified by:
      getThreadTs in interface CompleteUploadExternalParamsIF
      Returns:
      The value of the threadTs attribute
    • getInitialComment

      public Optional<String> getInitialComment()
      Specified by:
      getInitialComment in interface CompleteUploadExternalParamsIF
      Returns:
      The value of the initialComment attribute
    • withFiles

      public final CompleteUploadExternalParams withFiles(FileInfo... elements)
      Copy the current immutable object with elements that replace the content of files.
      Parameters:
      elements - The elements to set
      Returns:
      A modified copy of this object
    • withFiles

      public final CompleteUploadExternalParams withFiles(Iterable<? extends FileInfo> elements)
      Copy the current immutable object with elements that replace the content of files. A shallow reference equality check is used to prevent copying of the same value by returning this.
      Parameters:
      elements - An iterable of files elements to set
      Returns:
      A modified copy or this if not changed
    • withChannelId

      public final CompleteUploadExternalParams withChannelId(@Nullable String value)
      Copy the current immutable object by setting a present value for the optional channelId attribute.
      Parameters:
      value - The value for channelId, null is accepted as java.util.Optional.empty()
      Returns:
      A modified copy or this if not changed
    • withChannelId

      public final CompleteUploadExternalParams withChannelId(Optional<String> optional)
      Copy the current immutable object by setting an optional value for the channelId attribute. An equality check is used on inner value to prevent copying of the same value by returning this.
      Parameters:
      optional - An optional value for channelId
      Returns:
      A modified copy or this if not changed
    • withThreadTs

      public final CompleteUploadExternalParams withThreadTs(@Nullable String value)
      Copy the current immutable object by setting a present value for the optional threadTs attribute.
      Parameters:
      value - The value for threadTs, null is accepted as java.util.Optional.empty()
      Returns:
      A modified copy or this if not changed
    • withThreadTs

      public final CompleteUploadExternalParams withThreadTs(Optional<String> optional)
      Copy the current immutable object by setting an optional value for the threadTs attribute. An equality check is used on inner value to prevent copying of the same value by returning this.
      Parameters:
      optional - An optional value for threadTs
      Returns:
      A modified copy or this if not changed
    • withInitialComment

      public final CompleteUploadExternalParams withInitialComment(@Nullable String value)
      Copy the current immutable object by setting a present value for the optional initialComment attribute.
      Parameters:
      value - The value for initialComment, null is accepted as java.util.Optional.empty()
      Returns:
      A modified copy or this if not changed
    • withInitialComment

      public final CompleteUploadExternalParams withInitialComment(Optional<String> optional)
      Copy the current immutable object by setting an optional value for the initialComment attribute. An equality check is used on inner value to prevent copying of the same value by returning this.
      Parameters:
      optional - An optional value for initialComment
      Returns:
      A modified copy or this if not changed
    • equals

      public boolean equals(@Nullable Object another)
      This instance is equal to all instances of CompleteUploadExternalParams that have equal attribute values.
      Overrides:
      equals in class Object
      Returns:
      true if this is equal to another instance
    • hashCode

      public int hashCode()
      Computes a hash code from attributes: files, channelId, threadTs, initialComment.
      Overrides:
      hashCode in class Object
      Returns:
      hashCode value
    • toString

      public String toString()
      Prints the immutable value CompleteUploadExternalParams with attribute values.
      Overrides:
      toString in class Object
      Returns:
      A string representation of the value
    • copyOf

      Creates an immutable copy of a CompleteUploadExternalParamsIF value. 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 CompleteUploadExternalParams instance
    • builder

      public static CompleteUploadExternalParams.Builder builder()
      Creates a builder for CompleteUploadExternalParams.
       CompleteUploadExternalParams.builder()
          .addFiles|addAllFiles(FileInfo) // files elements
          .setChannelId(Optional<String>) // optional channelId
          .setThreadTs(Optional<String>) // optional threadTs
          .setInitialComment(Optional<String>) // optional initialComment
          .build();
       
      Returns:
      A new CompleteUploadExternalParams builder