Class GetUploadUrlExternalResponse.Builder

java.lang.Object
com.hubspot.slack.client.models.response.files.GetUploadUrlExternalResponse.Builder
Enclosing class:
GetUploadUrlExternalResponse

@Generated(from="GetUploadUrlExternalResponseIF", generator="Immutables") @NotThreadSafe public static final class GetUploadUrlExternalResponse.Builder extends Object
Builds instances of type GetUploadUrlExternalResponse. 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 com.hubspot.slack.client.models.response.SlackResponse instance.
      Parameters:
      instance - The instance from which to copy values
      Returns:
      this builder for use in a chained invocation
    • from

      Fill a builder with attribute values from the provided com.hubspot.slack.client.models.response.files.GetUploadUrlExternalResponseIF instance.
      Parameters:
      instance - The instance from which to copy values
      Returns:
      this builder for use in a chained invocation
    • setOk

      public final GetUploadUrlExternalResponse.Builder setOk(boolean ok)
      Initializes the value for the ok attribute.
      Parameters:
      ok - The value for ok
      Returns:
      this builder for use in a chained invocation
    • setResponseMetadata

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

      public final GetUploadUrlExternalResponse.Builder setResponseMetadata(Optional<? extends ResponseMetadata> responseMetadata)
      Initializes the optional value responseMetadata to responseMetadata.
      Parameters:
      responseMetadata - The value for responseMetadata
      Returns:
      this builder for use in a chained invocation
    • setUploadUrl

      public final GetUploadUrlExternalResponse.Builder setUploadUrl(String uploadUrl)
      Initializes the value for the uploadUrl attribute.
      Parameters:
      uploadUrl - The value for uploadUrl
      Returns:
      this builder for use in a chained invocation
    • setFileId

      public final GetUploadUrlExternalResponse.Builder setFileId(String fileId)
      Initializes the value for the fileId attribute.
      Parameters:
      fileId - The value for fileId
      Returns:
      this builder for use in a chained invocation
    • build

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