Partager via


SecuritySettings Class

  • java.lang.Object
    • com.azure.resourcemanager.dataprotection.models.SecuritySettings

Implements

public final class SecuritySettings
implements JsonSerializable<SecuritySettings>

Class containing security settings of vault.

Constructor Summary

Constructor Description
SecuritySettings()

Creates an instance of SecuritySettings class.

Method Summary

Modifier and Type Method and Description
EncryptionSettings encryptionSettings()

Get the encryptionSettings property: Customer Managed Key details of the resource.

static SecuritySettings fromJson(JsonReader jsonReader)

Reads an instance of SecuritySettings from the JsonReader.

ImmutabilitySettings immutabilitySettings()

Get the immutabilitySettings property: Immutability Settings at vault level.

SoftDeleteSettings softDeleteSettings()

Get the softDeleteSettings property: Soft delete related settings.

JsonWriter toJson(JsonWriter jsonWriter)
SecuritySettings withEncryptionSettings(EncryptionSettings encryptionSettings)

Set the encryptionSettings property: Customer Managed Key details of the resource.

SecuritySettings withImmutabilitySettings(ImmutabilitySettings immutabilitySettings)

Set the immutabilitySettings property: Immutability Settings at vault level.

SecuritySettings withSoftDeleteSettings(SoftDeleteSettings softDeleteSettings)

Set the softDeleteSettings property: Soft delete related settings.

Methods inherited from java.lang.Object

Constructor Details

SecuritySettings

public SecuritySettings()

Creates an instance of SecuritySettings class.

Method Details

encryptionSettings

public EncryptionSettings encryptionSettings()

Get the encryptionSettings property: Customer Managed Key details of the resource.

Returns:

the encryptionSettings value.

fromJson

public static SecuritySettings fromJson(JsonReader jsonReader)

Reads an instance of SecuritySettings from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of SecuritySettings if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If an error occurs while reading the SecuritySettings.

immutabilitySettings

public ImmutabilitySettings immutabilitySettings()

Get the immutabilitySettings property: Immutability Settings at vault level.

Returns:

the immutabilitySettings value.

softDeleteSettings

public SoftDeleteSettings softDeleteSettings()

Get the softDeleteSettings property: Soft delete related settings.

Returns:

the softDeleteSettings value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

withEncryptionSettings

public SecuritySettings withEncryptionSettings(EncryptionSettings encryptionSettings)

Set the encryptionSettings property: Customer Managed Key details of the resource.

Parameters:

encryptionSettings - the encryptionSettings value to set.

Returns:

the SecuritySettings object itself.

withImmutabilitySettings

public SecuritySettings withImmutabilitySettings(ImmutabilitySettings immutabilitySettings)

Set the immutabilitySettings property: Immutability Settings at vault level.

Parameters:

immutabilitySettings - the immutabilitySettings value to set.

Returns:

the SecuritySettings object itself.

withSoftDeleteSettings

public SecuritySettings withSoftDeleteSettings(SoftDeleteSettings softDeleteSettings)

Set the softDeleteSettings property: Soft delete related settings.

Parameters:

softDeleteSettings - the softDeleteSettings value to set.

Returns:

the SecuritySettings object itself.

Applies to