Class GenerateGetUrlRequest.Builder

java.lang.Object
com.atlassian.bitbucket.util.BuilderSupport
com.atlassian.bitbucket.filestore.GenerateGetUrlRequest.Builder
Enclosing class:
GenerateGetUrlRequest

public static class GenerateGetUrlRequest.Builder extends BuilderSupport
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • build

      @Nonnull public GenerateGetUrlRequest build()
    • expiry

      @Nonnull public GenerateGetUrlRequest.Builder expiry(@Nullable Duration value)
      The duration for which this pre-authorized request should be valid. After this time has expired, attempting to use the URL will fail. This will be used in (for example) JWT authentication tokens or other schemes that involving pre-signing the URL such that the URL can only be used for a limited time.

      This is an optional field.

    • namespace

      @Nonnull public GenerateGetUrlRequest.Builder namespace(@Nonnull String value)
      The namespace of the file store to which the file will be uploaded to.

      The namespace permits a given store to be partitioned into multiple logical stores, one per usage type.

      This is a required field.

    • path

      @Nonnull public GenerateGetUrlRequest.Builder path(@Nonnull FilePath value)
      The path on the store to which the file will be uploaded to.

      This is a required field.

    • responseContentDisposition

      @Nonnull public GenerateGetUrlRequest.Builder responseContentDisposition(@Nullable String value)
      Sets the Content-Disposition header of the response to the specified value.
    • responseContentType

      @Nonnull public GenerateGetUrlRequest.Builder responseContentType(@Nullable String value)
      Sets the Content-Type header of the response to the specified value.