Class EncryptionWithCmk
java.lang.Object
com.azure.resourcemanager.search.models.EncryptionWithCmk
- All Implemented Interfaces:
com.azure.json.JsonSerializable<EncryptionWithCmk>
public final class EncryptionWithCmk
extends Object
implements com.azure.json.JsonSerializable<EncryptionWithCmk>
Describes a policy that determines how resources within the search service are to be encrypted with customer managed
keys.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the encryptionComplianceStatus property: Returns the status of search service compliance with respect to non-CMK-encrypted objects.Get the enforcement property: Describes how a search service should enforce compliance if it finds objects that aren't encrypted with the customer-managed key.static EncryptionWithCmkfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of EncryptionWithCmk from the JsonReader.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withEnforcement(SearchEncryptionWithCmk enforcement) Set the enforcement property: Describes how a search service should enforce compliance if it finds objects that aren't encrypted with the customer-managed key.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
EncryptionWithCmk
public EncryptionWithCmk()Creates an instance of EncryptionWithCmk class.
-
-
Method Details
-
enforcement
Get the enforcement property: Describes how a search service should enforce compliance if it finds objects that aren't encrypted with the customer-managed key.- Returns:
- the enforcement value.
-
withEnforcement
Set the enforcement property: Describes how a search service should enforce compliance if it finds objects that aren't encrypted with the customer-managed key.- Parameters:
enforcement- the enforcement value to set.- Returns:
- the EncryptionWithCmk object itself.
-
encryptionComplianceStatus
Get the encryptionComplianceStatus property: Returns the status of search service compliance with respect to non-CMK-encrypted objects. If a service has more than one unencrypted object, and enforcement is enabled, the service is marked as noncompliant.- Returns:
- the encryptionComplianceStatus value.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<EncryptionWithCmk>- Throws:
IOException
-
fromJson
Reads an instance of EncryptionWithCmk from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of EncryptionWithCmk 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 EncryptionWithCmk.
-