CloudHsmClusterPatchParameters Class

  • java.lang.Object
    • com.azure.resourcemanager.hardwaresecuritymodules.models.CloudHsmClusterPatchParameters

Implements

public final class CloudHsmClusterPatchParameters
implements JsonSerializable<CloudHsmClusterPatchParameters>

Patchable properties of the Cloud HSM Cluster.

Constructor Summary

Constructor Description
CloudHsmClusterPatchParameters()

Creates an instance of CloudHsmClusterPatchParameters class.

Method Summary

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

Reads an instance of CloudHsmClusterPatchParameters from the JsonReader.

ManagedServiceIdentity identity()

Get the identity property: Managed service identity (system assigned and/or user assigned identities).

Map<String,String> tags()

Get the tags property: The Cloud HSM Cluster's tags.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

CloudHsmClusterPatchParameters withIdentity(ManagedServiceIdentity identity)

Set the identity property: Managed service identity (system assigned and/or user assigned identities).

CloudHsmClusterPatchParameters withTags(Map<String,String> tags)

Set the tags property: The Cloud HSM Cluster's tags.

Methods inherited from java.lang.Object

Constructor Details

CloudHsmClusterPatchParameters

public CloudHsmClusterPatchParameters()

Creates an instance of CloudHsmClusterPatchParameters class.

Method Details

fromJson

public static CloudHsmClusterPatchParameters fromJson(JsonReader jsonReader)

Reads an instance of CloudHsmClusterPatchParameters from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

identity

public ManagedServiceIdentity identity()

Get the identity property: Managed service identity (system assigned and/or user assigned identities).

Returns:

the identity value.

tags

public Map<String,String> tags()

Get the tags property: The Cloud HSM Cluster's tags.

Returns:

the tags value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withIdentity

public CloudHsmClusterPatchParameters withIdentity(ManagedServiceIdentity identity)

Set the identity property: Managed service identity (system assigned and/or user assigned identities).

Parameters:

identity - the identity value to set.

Returns:

the CloudHsmClusterPatchParameters object itself.

withTags

public CloudHsmClusterPatchParameters withTags(Map<String,String> tags)

Set the tags property: The Cloud HSM Cluster's tags.

Parameters:

tags - the tags value to set.

Returns:

the CloudHsmClusterPatchParameters object itself.

Applies to