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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfromJson
(com.azure.json.JsonReader jsonReader) Reads a JSON stream into aFileSystemEncryptionScopeOptions
.Get the defaultEncryptionScope property: Optional.Get the encryptionScopeOverridePrevented property: Optional.setDefaultEncryptionScope
(String encryptionScope) Set the defaultEncryptionScope property: Optional.setEncryptionScopeOverridePrevented
(Boolean encryptionScopeOverridePrevented) Set the encryptionScopeOverridePrevented property: Optional.com.azure.json.JsonWriter
toJson
(com.azure.json.JsonWriter jsonWriter) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
FileSystemEncryptionScopeOptions
public FileSystemEncryptionScopeOptions()Creates a new instance ofFileSystemEncryptionScopeOptions
.
-
-
Method Details
-
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
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
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
- Specified by:
toJson
in interfacecom.azure.json.JsonSerializable<FileSystemEncryptionScopeOptions>
- Throws:
IOException
-
fromJson
public static FileSystemEncryptionScopeOptions fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads a JSON stream into aFileSystemEncryptionScopeOptions
.- Parameters:
jsonReader
- TheJsonReader
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.
-