Class WriteOptions

java.lang.Object
org.apache.opendal.WriteOptions

public class WriteOptions extends Object
  • Field Details

    • contentType

      public final String contentType
      Sets the Content-Type header for the object. Requires capability: writeWithContentType
    • contentDisposition

      public final String contentDisposition
      Sets the Content-Disposition header for the object Requires capability: writeWithContentDisposition
    • cacheControl

      public final String cacheControl
      Sets the Cache-Control header for the object Requires capability: writeWithCacheControl
    • contentEncoding

      public final String contentEncoding
      Sets the Content-Encoding header for the object
    • ifMatch

      public final String ifMatch
      Sets the If-Match header for conditional writes Requires capability: writeWithIfMatch
    • ifNoneMatch

      public final String ifNoneMatch
      Sets the If-None-Match header for conditional writes Requires capability: writeWithIfNoneMatch
    • userMetadata

      public final Map<String,String> userMetadata
      Sets custom metadata for the file. Requires capability: writeWithUserMetadata
    • append

      public final boolean append
      Enables append mode for writing. When true, data will be appended to the end of existing file. Requires capability: writeCanAppend
    • ifNotExists

      public final boolean ifNotExists
      Write only if the file does not exist. Operation will fail if the file at the designated path already exists. Requires capability: writeWithIfNotExists
  • Constructor Details

    • WriteOptions

      public WriteOptions()