Class FileSystemEncryptionScopeOptions

java.lang.Object
com.azure.storage.file.datalake.options.FileSystemEncryptionScopeOptions
All Implemented Interfaces:
com.azure.json.JsonSerializable<FileSystemEncryptionScopeOptions>

public final class FileSystemEncryptionScopeOptions extends Object implements com.azure.json.JsonSerializable<FileSystemEncryptionScopeOptions>
Encryption scope options to be used when creating a file system.
  • Constructor Details

  • Method Details

    • getDefaultEncryptionScope

      public String getDefaultEncryptionScope()
      Get the defaultEncryptionScope property: Optional. Version 2021-06-08 and later. Specifies the default encryption scope to set on the file system and use for all future writes.
      Returns:
      the defaultEncryptionScope value.
    • setDefaultEncryptionScope

      public FileSystemEncryptionScopeOptions setDefaultEncryptionScope(String encryptionScope)
      Set the defaultEncryptionScope property: Optional. Version 2021-06-08 and later. Specifies the default encryption scope to set on the file system and use for all future writes.
      Parameters:
      encryptionScope - the defaultEncryptionScope value to set.
      Returns:
      the updated FileSystemEncryptionScopeOptions.
    • isEncryptionScopeOverridePrevented

      public Boolean isEncryptionScopeOverridePrevented()
      Get the encryptionScopeOverridePrevented property: Optional. Version 2021-06-08 and newer. If true, prevents any request from specifying a different encryption scope than the scope set on the container.
      Returns:
      the encryptionScopeOverridePrevented value.
    • setEncryptionScopeOverridePrevented

      public FileSystemEncryptionScopeOptions setEncryptionScopeOverridePrevented(Boolean encryptionScopeOverridePrevented)
      Set the encryptionScopeOverridePrevented property: Optional. Version 2021-06-08 and newer. If true, prevents any request from specifying a different encryption scope than the scope set on the container.
      Parameters:
      encryptionScopeOverridePrevented - the encryptionScopeOverridePrevented value to set.
      Returns:
      the updated FileSystemEncryptionScopeOptions.
    • toJson

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.azure.json.JsonSerializable<FileSystemEncryptionScopeOptions>
      Throws:
      IOException
    • fromJson

      public static FileSystemEncryptionScopeOptions fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads a JSON stream into a FileSystemEncryptionScopeOptions.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      The FileSystemEncryptionScopeOptions that the JSON stream represented, or null if it pointed to JSON null.
      Throws:
      IOException - If an I/O error occurs.