Class FilesSharedPublicUrlParams

java.lang.Object
com.hubspot.slack.client.methods.params.files.FilesSharedPublicUrlParams
All Implemented Interfaces:
FilesSharedPublicUrlParamsIF

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

Use the builder to create immutable instances: FilesSharedPublicUrlParams.builder(). Use the static factory method to create immutable instances: FilesSharedPublicUrlParams.of().

  • Method Details

    • getFileId

      public String getFileId()
      Specified by:
      getFileId in interface FilesSharedPublicUrlParamsIF
      Returns:
      The value of the fileId attribute
    • withFileId

      public final FilesSharedPublicUrlParams withFileId(String value)
      Copy the current immutable object by setting a value for the fileId attribute. An equals check used to prevent copying of the same value by returning this.
      Parameters:
      value - A new value for fileId
      Returns:
      A modified copy or the this object
    • equals

      public boolean equals(@Nullable Object another)
      This instance is equal to all instances of FilesSharedPublicUrlParams 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: fileId.
      Overrides:
      hashCode in class Object
      Returns:
      hashCode value
    • toString

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

      public static FilesSharedPublicUrlParams of(String fileId)
      Construct a new immutable FilesSharedPublicUrlParams instance.
      Parameters:
      fileId - The value for the fileId attribute
      Returns:
      An immutable FilesSharedPublicUrlParams instance
    • copyOf

      Creates an immutable copy of a FilesSharedPublicUrlParamsIF 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 FilesSharedPublicUrlParams instance
    • builder

      public static FilesSharedPublicUrlParams.Builder builder()
      Creates a builder for FilesSharedPublicUrlParams.
       FilesSharedPublicUrlParams.builder()
          .setFileId(String) // required fileId
          .build();
       
      Returns:
      A new FilesSharedPublicUrlParams builder