Class GetUploadUrlExternalParams.Builder

java.lang.Object
com.hubspot.slack.client.methods.params.files.GetUploadUrlExternalParams.Builder
Enclosing class:
GetUploadUrlExternalParams

@Generated(from="GetUploadUrlExternalParamsIF", generator="Immutables") @NotThreadSafe public static final class GetUploadUrlExternalParams.Builder extends Object
Builds instances of type GetUploadUrlExternalParams. 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

      Fill a builder with attribute values from the provided GetUploadUrlExternalParamsIF 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
    • setFilename

      public final GetUploadUrlExternalParams.Builder setFilename(String filename)
      Initializes the value for the filename attribute.
      Parameters:
      filename - The value for filename
      Returns:
      this builder for use in a chained invocation
    • setLength

      public final GetUploadUrlExternalParams.Builder setLength(Long length)
      Initializes the value for the length attribute.
      Parameters:
      length - The value for length
      Returns:
      this builder for use in a chained invocation
    • setAltText

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

      public final GetUploadUrlExternalParams.Builder setAltText(Optional<String> altText)
      Initializes the optional value altText to altText.
      Parameters:
      altText - The value for altText
      Returns:
      this builder for use in a chained invocation
    • setSnippetType

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

      public final GetUploadUrlExternalParams.Builder setSnippetType(Optional<String> snippetType)
      Initializes the optional value snippetType to snippetType.
      Parameters:
      snippetType - The value for snippetType
      Returns:
      this builder for use in a chained invocation
    • build

      Returns:
      An immutable instance of GetUploadUrlExternalParams
      Throws:
      com.hubspot.immutables.validation.InvalidImmutableStateException - if any required attributes are missing