CustomerManagedKeyDetails Class

  • java.lang.Object
    • com.azure.resourcemanager.synapse.models.CustomerManagedKeyDetails

Implements

public final class CustomerManagedKeyDetails
implements JsonSerializable<CustomerManagedKeyDetails>

Details of the customer managed key associated with the workspace.

Constructor Summary

Constructor Description
CustomerManagedKeyDetails()

Creates an instance of CustomerManagedKeyDetails class.

Method Summary

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

Reads an instance of CustomerManagedKeyDetails from the JsonReader.

WorkspaceKeyDetails key()

Get the key property: The key object of the workspace.

String status()

Get the status property: The customer managed key status on the workspace.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

CustomerManagedKeyDetails withKey(WorkspaceKeyDetails key)

Set the key property: The key object of the workspace.

Methods inherited from java.lang.Object

Constructor Details

CustomerManagedKeyDetails

public CustomerManagedKeyDetails()

Creates an instance of CustomerManagedKeyDetails class.

Method Details

fromJson

public static CustomerManagedKeyDetails fromJson(JsonReader jsonReader)

Reads an instance of CustomerManagedKeyDetails from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of CustomerManagedKeyDetails 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 CustomerManagedKeyDetails.

key

public WorkspaceKeyDetails key()

Get the key property: The key object of the workspace.

Returns:

the key value.

status

public String status()

Get the status property: The customer managed key status on the workspace.

Returns:

the status value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withKey

public CustomerManagedKeyDetails withKey(WorkspaceKeyDetails key)

Set the key property: The key object of the workspace.

Parameters:

key - the key value to set.

Returns:

the CustomerManagedKeyDetails object itself.

Applies to