Partager via


FileSystemEncryptionScopeOptions Class

  • java.lang.Object
    • com.azure.storage.file.datalake.options.FileSystemEncryptionScopeOptions

Implements

public final class FileSystemEncryptionScopeOptions
implements JsonSerializable<FileSystemEncryptionScopeOptions>

Encryption scope options to be used when creating a file system.

Constructor Summary

Constructor Description
FileSystemEncryptionScopeOptions()

Method Summary

Modifier and Type Method and Description
static FileSystemEncryptionScopeOptions fromJson(JsonReader jsonReader)

Reads a JSON stream into a FileSystemEncryptionScopeOptions.

String getDefaultEncryptionScope()

Get the defaultEncryptionScope property: Optional.

Boolean isEncryptionScopeOverridePrevented()

Get the encryptionScopeOverridePrevented property: Optional.

FileSystemEncryptionScopeOptions setDefaultEncryptionScope(String encryptionScope)

Set the defaultEncryptionScope property: Optional.

FileSystemEncryptionScopeOptions setEncryptionScopeOverridePrevented(Boolean encryptionScopeOverridePrevented)

Set the encryptionScopeOverridePrevented property: Optional.

JsonWriter toJson(JsonWriter jsonWriter)

Methods inherited from java.lang.Object

Constructor Details

FileSystemEncryptionScopeOptions

public FileSystemEncryptionScopeOptions()

Method Details

fromJson

public static FileSystemEncryptionScopeOptions fromJson(JsonReader jsonReader)

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.

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.

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.

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:

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:

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

Applies to