다음을 통해 공유


SkuProfileVMSize Class

  • java.lang.Object
    • com.azure.resourcemanager.compute.models.SkuProfileVMSize

Implements

public final class SkuProfileVMSize
implements JsonSerializable<SkuProfileVMSize>

Specifies the VM Size.

Constructor Summary

Constructor Description
SkuProfileVMSize()

Creates an instance of SkuProfileVMSize class.

Method Summary

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

Reads an instance of SkuProfileVMSize from the JsonReader.

String name()

Get the name property: Specifies the name of the VM Size.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

SkuProfileVMSize withName(String name)

Set the name property: Specifies the name of the VM Size.

Methods inherited from java.lang.Object

Constructor Details

SkuProfileVMSize

public SkuProfileVMSize()

Creates an instance of SkuProfileVMSize class.

Method Details

fromJson

public static SkuProfileVMSize fromJson(JsonReader jsonReader)

Reads an instance of SkuProfileVMSize from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

name

public String name()

Get the name property: Specifies the name of the VM Size.

Returns:

the name value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withName

public SkuProfileVMSize withName(String name)

Set the name property: Specifies the name of the VM Size.

Parameters:

name - the name value to set.

Returns:

the SkuProfileVMSize object itself.

Applies to