Dela via


SubResource Class

  • java.lang.Object
    • com.azure.core.management.SubResource

Implements

public class SubResource
implements JsonSerializable<SubResource>

The SubResource model.

Constructor Summary

Constructor Description
SubResource()

Creates an instance of SubResource.

Method Summary

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

Reads a JSON stream into a SubResource.

String id()

Get the id value.

JsonWriter toJson(JsonWriter jsonWriter)
SubResource withId(String id)

Set the id value.

Methods inherited from java.lang.Object

Constructor Details

SubResource

public SubResource()

Creates an instance of SubResource.

Method Details

fromJson

public static SubResource fromJson(JsonReader jsonReader)

Reads a JSON stream into a SubResource.

Parameters:

jsonReader - The JsonReader being read.

Returns:

The SubResource that the JSON stream represented, may return null.

Throws:

IOException

- If a SubResource fails to be read from the jsonReader.

id

public String id()

Get the id value.

Returns:

the id value

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

withId

public SubResource withId(String id)

Set the id value.

Parameters:

id - the id value to set

Returns:

the sub resource itself

Applies to