Class EncryptionWithCmk
java.lang.Object
com.azure.resourcemanager.search.models.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: Describes whether the search service is compliant or not with respect to having non-customer-encrypted resources.Get the enforcement property: Describes how a search service should enforce having one or more non-customer-encrypted resources.voidvalidate()Validates the instance.withEnforcement(SearchEncryptionWithCmk enforcement) Set the enforcement property: Describes how a search service should enforce having one or more non-customer-encrypted resources.
-
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 having one or more non-customer-encrypted resources.- Returns:
- the enforcement value.
-
withEnforcement
Set the enforcement property: Describes how a search service should enforce having one or more non-customer-encrypted resources.- Parameters:
enforcement- the enforcement value to set.- Returns:
- the EncryptionWithCmk object itself.
-
encryptionComplianceStatus
Get the encryptionComplianceStatus property: Describes whether the search service is compliant or not with respect to having non-customer-encrypted resources. If a service has more than one non-customer-encrypted resource and 'Enforcement' is 'enabled' then the service will be marked as 'nonCompliant'.- Returns:
- the encryptionComplianceStatus value.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-