共用方式為


CloudHsmClusterInner Class

public final class CloudHsmClusterInner
extends CloudHsmClusterResource

Resource information with extended details.

Constructor Summary

Constructor Description
CloudHsmClusterInner()

Creates an instance of CloudHsmClusterInner class.

Method Summary

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

Reads an instance of CloudHsmClusterInner from the JsonReader.

String id()

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

String name()

Get the name property: The name of the resource.

CloudHsmClusterProperties properties()

Get the properties property: Properties of the Cloud HSM Cluster.

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.

CloudHsmClusterInner withIdentity(ManagedServiceIdentity identity)

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

CloudHsmClusterInner withLocation(String location)
CloudHsmClusterInner withProperties(CloudHsmClusterProperties properties)

Set the properties property: Properties of the Cloud HSM Cluster.

CloudHsmClusterInner withSku(CloudHsmClusterSku sku)

Set the sku property: SKU details.

CloudHsmClusterInner withTags(Map<String,String> tags)

Methods inherited from Resource

Methods inherited from CloudHsmClusterResource

Methods inherited from java.lang.Object

Constructor Details

CloudHsmClusterInner

public CloudHsmClusterInner()

Creates an instance of CloudHsmClusterInner class.

Method Details

fromJson

public static CloudHsmClusterInner fromJson(JsonReader jsonReader)

Reads an instance of CloudHsmClusterInner from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of CloudHsmClusterInner 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:

CloudHsmClusterInner.id()

Returns:

the id value.

name

public String name()

Get the name property: The name of the resource.

Overrides:

CloudHsmClusterInner.name()

Returns:

the name value.

properties

public CloudHsmClusterProperties properties()

Get the properties property: Properties of the Cloud HSM Cluster.

Returns:

the properties value.

systemData

public SystemData systemData()

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

Overrides:

CloudHsmClusterInner.systemData()

Returns:

the systemData value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

CloudHsmClusterInner.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public String type()

Get the type property: The type of the resource.

Overrides:

CloudHsmClusterInner.type()

Returns:

the type value.

validate

public void validate()

Validates the instance.

Overrides:

CloudHsmClusterInner.validate()

withIdentity

public CloudHsmClusterInner withIdentity(ManagedServiceIdentity identity)

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

Overrides:

CloudHsmClusterInner.withIdentity(ManagedServiceIdentity identity)

Parameters:

identity

withLocation

public CloudHsmClusterInner withLocation(String location)

Overrides:

CloudHsmClusterInner.withLocation(String location)

Parameters:

location

withProperties

public CloudHsmClusterInner withProperties(CloudHsmClusterProperties properties)

Set the properties property: Properties of the Cloud HSM Cluster.

Parameters:

properties - the properties value to set.

Returns:

the CloudHsmClusterInner object itself.

withSku

public CloudHsmClusterInner withSku(CloudHsmClusterSku sku)

Set the sku property: SKU details.

Overrides:

CloudHsmClusterInner.withSku(CloudHsmClusterSku sku)

Parameters:

sku

withTags

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

Overrides:

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

Parameters:

tags

Applies to