StorageAccountEncryption Class

  • java.lang.Object
    • com.azure.resourcemanager.storage.models.StorageAccountEncryption

Implements

public final class StorageAccountEncryption
implements JsonSerializable<StorageAccountEncryption>

(Optional) Discouraged to include in resource definition. Only needed where it is possible to disable platform (AKA infrastructure) encryption. Azure SQL TDE is an example of this. Values are enabled and disabled.

Constructor Summary

Constructor Description
StorageAccountEncryption()

Creates an instance of StorageAccountEncryption class.

Method Summary

Modifier and Type Method and Description
CustomerManagedKeyEncryption customerManagedKeyEncryption()

Get the customerManagedKeyEncryption property: All Customer-managed key encryption properties for the resource.

static StorageAccountEncryption fromJson(JsonReader jsonReader)

Reads an instance of StorageAccountEncryption from the JsonReader.

InfrastructureEncryption infrastructureEncryption()

Get the infrastructureEncryption property: Values are enabled and disabled.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

StorageAccountEncryption withCustomerManagedKeyEncryption(CustomerManagedKeyEncryption customerManagedKeyEncryption)

Set the customerManagedKeyEncryption property: All Customer-managed key encryption properties for the resource.

StorageAccountEncryption withInfrastructureEncryption(InfrastructureEncryption infrastructureEncryption)

Set the infrastructureEncryption property: Values are enabled and disabled.

Methods inherited from java.lang.Object

Constructor Details

StorageAccountEncryption

public StorageAccountEncryption()

Creates an instance of StorageAccountEncryption class.

Method Details

customerManagedKeyEncryption

public CustomerManagedKeyEncryption customerManagedKeyEncryption()

Get the customerManagedKeyEncryption property: All Customer-managed key encryption properties for the resource.

Returns:

the customerManagedKeyEncryption value.

fromJson

public static StorageAccountEncryption fromJson(JsonReader jsonReader)

Reads an instance of StorageAccountEncryption from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of StorageAccountEncryption 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 StorageAccountEncryption.

infrastructureEncryption

public InfrastructureEncryption infrastructureEncryption()

Get the infrastructureEncryption property: Values are enabled and disabled.

Returns:

the infrastructureEncryption value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withCustomerManagedKeyEncryption

public StorageAccountEncryption withCustomerManagedKeyEncryption(CustomerManagedKeyEncryption customerManagedKeyEncryption)

Set the customerManagedKeyEncryption property: All Customer-managed key encryption properties for the resource.

Parameters:

customerManagedKeyEncryption - the customerManagedKeyEncryption value to set.

Returns:

the StorageAccountEncryption object itself.

withInfrastructureEncryption

public StorageAccountEncryption withInfrastructureEncryption(InfrastructureEncryption infrastructureEncryption)

Set the infrastructureEncryption property: Values are enabled and disabled.

Parameters:

infrastructureEncryption - the infrastructureEncryption value to set.

Returns:

the StorageAccountEncryption object itself.

Applies to