通过


你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

SubResourceReadOnly Class

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

Implements

public class SubResourceReadOnly
implements JsonSerializable<SubResourceReadOnly>

The SubResourceReadOnly model.

Constructor Summary

Constructor Description
SubResourceReadOnly()

Creates an instance of SubResourceReadOnly class.

Method Summary

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

Reads an instance of SubResourceReadOnly from the JsonReader.

String id()

Get the id property: Resource Id.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

Methods inherited from java.lang.Object

Constructor Details

SubResourceReadOnly

public SubResourceReadOnly()

Creates an instance of SubResourceReadOnly class.

Method Details

fromJson

public static SubResourceReadOnly fromJson(JsonReader jsonReader)

Reads an instance of SubResourceReadOnly from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

id

public String id()

Get the id property: Resource Id.

Returns:

the id value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

Applies to