Class GetUploadUrlExternalParams

java.lang.Object
com.hubspot.slack.client.methods.params.files.GetUploadUrlExternalParams
All Implemented Interfaces:
GetUploadUrlExternalParamsIF

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

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

  • Method Details

    • getFilename

      public String getFilename()
      Specified by:
      getFilename in interface GetUploadUrlExternalParamsIF
      Returns:
      The value of the filename attribute
    • getLength

      public Long getLength()
      Specified by:
      getLength in interface GetUploadUrlExternalParamsIF
      Returns:
      The value of the length attribute
    • getAltText

      public Optional<String> getAltText()
      Specified by:
      getAltText in interface GetUploadUrlExternalParamsIF
      Returns:
      The value of the altText attribute
    • getSnippetType

      public Optional<String> getSnippetType()
      Specified by:
      getSnippetType in interface GetUploadUrlExternalParamsIF
      Returns:
      The value of the snippetType attribute
    • withFilename

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

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

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

      public final GetUploadUrlExternalParams withAltText(Optional<String> optional)
      Copy the current immutable object by setting an optional value for the altText 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 altText
      Returns:
      A modified copy or this if not changed
    • withSnippetType

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

      public final GetUploadUrlExternalParams withSnippetType(Optional<String> optional)
      Copy the current immutable object by setting an optional value for the snippetType 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 snippetType
      Returns:
      A modified copy or this if not changed
    • equals

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

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

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

      public static GetUploadUrlExternalParams.Builder builder()
      Creates a builder for GetUploadUrlExternalParams.
       GetUploadUrlExternalParams.builder()
          .setFilename(String) // required filename
          .setLength(Long) // required length
          .setAltText(Optional<String>) // optional altText
          .setSnippetType(Optional<String>) // optional snippetType
          .build();
       
      Returns:
      A new GetUploadUrlExternalParams builder