共用方式為


CloudHsmClusterResource Class

public class CloudHsmClusterResource
extends Resource

Cloud HSM Cluster Resource.

Constructor Summary

Constructor Description
CloudHsmClusterResource()

Creates an instance of CloudHsmClusterResource class.

Method Summary

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

Reads an instance of CloudHsmClusterResource from the JsonReader.

String id()

Get the id property: Fully qualified resource Id for the resource.

ManagedServiceIdentity identity()

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

String name()

Get the name property: The name of the resource.

CloudHsmClusterSku sku()

Get the sku property: SKU details.

SystemData systemData()

Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.

JsonWriter toJson(JsonWriter jsonWriter)
String type()

Get the type property: The type of the resource.

void validate()

Validates the instance.

CloudHsmClusterResource withIdentity(ManagedServiceIdentity identity)

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

CloudHsmClusterResource withLocation(String location)
CloudHsmClusterResource withSku(CloudHsmClusterSku sku)

Set the sku property: SKU details.

CloudHsmClusterResource withTags(Map<String,String> tags)

Methods inherited from ProxyResource

Methods inherited from Resource

Methods inherited from java.lang.Object

Constructor Details

CloudHsmClusterResource

public CloudHsmClusterResource()

Creates an instance of CloudHsmClusterResource class.

Method Details

fromJson

public static CloudHsmClusterResource fromJson(JsonReader jsonReader)

Reads an instance of CloudHsmClusterResource from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

id

public String id()

Get the id property: Fully qualified resource Id for the resource.

Overrides:

CloudHsmClusterResource.id()

Returns:

the id value.

identity

public ManagedServiceIdentity identity()

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

Returns:

the identity value.

name

public String name()

Get the name property: The name of the resource.

Overrides:

CloudHsmClusterResource.name()

Returns:

the name value.

sku

public CloudHsmClusterSku sku()

Get the sku property: SKU details.

Returns:

the sku value.

systemData

public SystemData systemData()

Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.

Returns:

the systemData value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

CloudHsmClusterResource.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public String type()

Get the type property: The type of the resource.

Overrides:

CloudHsmClusterResource.type()

Returns:

the type value.

validate

public void validate()

Validates the instance.

withIdentity

public CloudHsmClusterResource 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 CloudHsmClusterResource object itself.

withLocation

public CloudHsmClusterResource withLocation(String location)

Overrides:

CloudHsmClusterResource.withLocation(String location)

Parameters:

location

withSku

public CloudHsmClusterResource withSku(CloudHsmClusterSku sku)

Set the sku property: SKU details.

Parameters:

sku - the sku value to set.

Returns:

the CloudHsmClusterResource object itself.

withTags

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

Overrides:

CloudHsmClusterResource.withTags(Map<String,String> tags)

Parameters:

tags

Applies to