EncryptionWithCmk Class
- java.
lang. Object - com.
azure. resourcemanager. search. models. EncryptionWithCmk
- com.
Implements
public final class EncryptionWithCmk
implements JsonSerializable<EncryptionWithCmk>
Describes a policy that determines how resources within the search service are to be encrypted with customer=managed keys.
Constructor Summary
Constructor | Description |
---|---|
EncryptionWithCmk() |
Creates an instance of Encryption |
Method Summary
Modifier and Type | Method and Description |
---|---|
Search |
encryptionComplianceStatus()
Get the encryption |
Search |
enforcement()
Get the enforcement property: Describes how a search service should enforce having one or more non-customer-encrypted resources. |
static
Encryption |
fromJson(JsonReader jsonReader)
Reads an instance of Encryption |
Json |
toJson(JsonWriter jsonWriter) |
void |
validate()
Validates the instance. |
Encryption |
withEnforcement(SearchEncryptionWithCmk enforcement)
Set the enforcement property: Describes how a search service should enforce having one or more non-customer-encrypted resources. |
Methods inherited from java.lang.Object
Constructor Details
EncryptionWithCmk
public EncryptionWithCmk()
Creates an instance of EncryptionWithCmk class.
Method Details
encryptionComplianceStatus
public SearchEncryptionComplianceStatus 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:
enforcement
public SearchEncryptionWithCmk enforcement()
Get the enforcement property: Describes how a search service should enforce having one or more non-customer-encrypted resources.
Returns:
fromJson
public static EncryptionWithCmk fromJson(JsonReader jsonReader)
Reads an instance of EncryptionWithCmk from the JsonReader.
Parameters:
Returns:
Throws:
toJson
validate
public void validate()
Validates the instance.
withEnforcement
public EncryptionWithCmk withEnforcement(SearchEncryptionWithCmk enforcement)
Set the enforcement property: Describes how a search service should enforce having one or more non-customer-encrypted resources.
Parameters:
Returns:
Applies to
Azure SDK for Java