ClientEncryptionKeyCreateUpdateProperties Class

  • java.lang.Object
    • com.azure.resourcemanager.cosmos.fluent.models.ClientEncryptionKeyCreateUpdateProperties

Implements

public final class ClientEncryptionKeyCreateUpdateProperties
implements JsonSerializable<ClientEncryptionKeyCreateUpdateProperties>

Properties to create and update ClientEncryptionKey.

Constructor Summary

Constructor Description
ClientEncryptionKeyCreateUpdateProperties()

Creates an instance of ClientEncryptionKeyCreateUpdateProperties class.

Method Summary

Modifier and Type Method and Description
static ClientEncryptionKeyCreateUpdateProperties fromJson(JsonReader jsonReader)

Reads an instance of ClientEncryptionKeyCreateUpdateProperties from the JsonReader.

ClientEncryptionKeyResource resource()

Get the resource property: The standard JSON format of a ClientEncryptionKey.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

ClientEncryptionKeyCreateUpdateProperties withResource(ClientEncryptionKeyResource resource)

Set the resource property: The standard JSON format of a ClientEncryptionKey.

Methods inherited from java.lang.Object

Constructor Details

ClientEncryptionKeyCreateUpdateProperties

public ClientEncryptionKeyCreateUpdateProperties()

Creates an instance of ClientEncryptionKeyCreateUpdateProperties class.

Method Details

fromJson

public static ClientEncryptionKeyCreateUpdateProperties fromJson(JsonReader jsonReader)

Reads an instance of ClientEncryptionKeyCreateUpdateProperties from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of ClientEncryptionKeyCreateUpdateProperties if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If the deserialized JSON object was missing any required properties.

resource

public ClientEncryptionKeyResource resource()

Get the resource property: The standard JSON format of a ClientEncryptionKey.

Returns:

the resource value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withResource

public ClientEncryptionKeyCreateUpdateProperties withResource(ClientEncryptionKeyResource resource)

Set the resource property: The standard JSON format of a ClientEncryptionKey.

Parameters:

resource - the resource value to set.

Returns:

the ClientEncryptionKeyCreateUpdateProperties object itself.

Applies to