共用方式為


CloudHsmClusterSku Class

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

Implements

public final class CloudHsmClusterSku
implements JsonSerializable<CloudHsmClusterSku>

Cloud Hsm Cluster SKU information.

Constructor Summary

Constructor Description
CloudHsmClusterSku()

Creates an instance of CloudHsmClusterSku class.

Method Summary

Modifier and Type Method and Description
Integer capacity()

Get the capacity property: Sku capacity.

CloudHsmClusterSkuFamily family()

Get the family property: Sku family of the Cloud HSM Cluster.

static CloudHsmClusterSku fromJson(JsonReader jsonReader)

Reads an instance of CloudHsmClusterSku from the JsonReader.

CloudHsmClusterSkuName name()

Get the name property: Sku name of the Cloud HSM Cluster.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

CloudHsmClusterSku withCapacity(Integer capacity)

Set the capacity property: Sku capacity.

CloudHsmClusterSku withFamily(CloudHsmClusterSkuFamily family)

Set the family property: Sku family of the Cloud HSM Cluster.

CloudHsmClusterSku withName(CloudHsmClusterSkuName name)

Set the name property: Sku name of the Cloud HSM Cluster.

Methods inherited from java.lang.Object

Constructor Details

CloudHsmClusterSku

public CloudHsmClusterSku()

Creates an instance of CloudHsmClusterSku class.

Method Details

capacity

public Integer capacity()

Get the capacity property: Sku capacity.

Returns:

the capacity value.

family

public CloudHsmClusterSkuFamily family()

Get the family property: Sku family of the Cloud HSM Cluster.

Returns:

the family value.

fromJson

public static CloudHsmClusterSku fromJson(JsonReader jsonReader)

Reads an instance of CloudHsmClusterSku from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

name

public CloudHsmClusterSkuName name()

Get the name property: Sku name of the Cloud HSM Cluster.

Returns:

the name value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withCapacity

public CloudHsmClusterSku withCapacity(Integer capacity)

Set the capacity property: Sku capacity.

Parameters:

capacity - the capacity value to set.

Returns:

the CloudHsmClusterSku object itself.

withFamily

public CloudHsmClusterSku withFamily(CloudHsmClusterSkuFamily family)

Set the family property: Sku family of the Cloud HSM Cluster.

Parameters:

family - the family value to set.

Returns:

the CloudHsmClusterSku object itself.

withName

public CloudHsmClusterSku withName(CloudHsmClusterSkuName name)

Set the name property: Sku name of the Cloud HSM Cluster.

Parameters:

name - the name value to set.

Returns:

the CloudHsmClusterSku object itself.

Applies to