EncryptionService Class
- java.
lang. Object - com.
azure. resourcemanager. storage. models. EncryptionService
- com.
Implements
public final class EncryptionService
implements JsonSerializable<EncryptionService>
A service that allows server-side encryption to be used.
Constructor Summary
Constructor | Description |
---|---|
EncryptionService() |
Creates an instance of Encryption |
Method Summary
Modifier and Type | Method and Description |
---|---|
Boolean |
enabled()
Get the enabled property: A boolean indicating whether or not the service encrypts the data as it is stored. |
static
Encryption |
fromJson(JsonReader jsonReader)
Reads an instance of Encryption |
Key |
keyType()
Get the key |
Offset |
lastEnabledTime()
Get the last |
Json |
toJson(JsonWriter jsonWriter) |
void |
validate()
Validates the instance. |
Encryption |
withEnabled(Boolean enabled)
Set the enabled property: A boolean indicating whether or not the service encrypts the data as it is stored. |
Encryption |
withKeyType(KeyType keyType)
Set the key |
Methods inherited from java.lang.Object
Constructor Details
EncryptionService
public EncryptionService()
Creates an instance of EncryptionService class.
Method Details
enabled
public Boolean enabled()
Get the enabled property: A boolean indicating whether or not the service encrypts the data as it is stored. Encryption at rest is enabled by default today and cannot be disabled.
Returns:
fromJson
public static EncryptionService fromJson(JsonReader jsonReader)
Reads an instance of EncryptionService from the JsonReader.
Parameters:
Returns:
Throws:
keyType
public KeyType keyType()
Get the keyType property: Encryption key type to be used for the encryption service. 'Account' key type implies that an account-scoped encryption key will be used. 'Service' key type implies that a default service key is used.
Returns:
lastEnabledTime
public OffsetDateTime lastEnabledTime()
Get the lastEnabledTime property: Gets a rough estimate of the date/time when the encryption was last enabled by the user. Data is encrypted at rest by default today and cannot be disabled.
Returns:
toJson
validate
public void validate()
Validates the instance.
withEnabled
public EncryptionService withEnabled(Boolean enabled)
Set the enabled property: A boolean indicating whether or not the service encrypts the data as it is stored. Encryption at rest is enabled by default today and cannot be disabled.
Parameters:
Returns:
withKeyType
public EncryptionService withKeyType(KeyType keyType)
Set the keyType property: Encryption key type to be used for the encryption service. 'Account' key type implies that an account-scoped encryption key will be used. 'Service' key type implies that a default service key is used.
Parameters:
Returns:
Applies to
Azure SDK for Java