Partager via


EncryptionWithCmk Class

  • java.lang.Object
    • com.azure.resourcemanager.search.models.EncryptionWithCmk

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 EncryptionWithCmk class.

Method Summary

Modifier and Type Method and Description
SearchEncryptionComplianceStatus encryptionComplianceStatus()

Get the encryptionComplianceStatus property: Describes whether the search service is compliant or not with respect to having non-customer-encrypted resources.

SearchEncryptionWithCmk enforcement()

Get the enforcement property: Describes how a search service should enforce having one or more non-customer-encrypted resources.

static EncryptionWithCmk fromJson(JsonReader jsonReader)

Reads an instance of EncryptionWithCmk from the JsonReader.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

EncryptionWithCmk 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:

the encryptionComplianceStatus value.

enforcement

public SearchEncryptionWithCmk enforcement()

Get the enforcement property: Describes how a search service should enforce having one or more non-customer-encrypted resources.

Returns:

the enforcement value.

fromJson

public static EncryptionWithCmk fromJson(JsonReader jsonReader)

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.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

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:

enforcement - the enforcement value to set.

Returns:

the EncryptionWithCmk object itself.

Applies to