Package com.azure.core.management
Class SubResource
java.lang.Object
com.azure.core.management.SubResource
- All Implemented Interfaces:
com.azure.json.JsonSerializable<SubResource>
The SubResource model.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic SubResourcefromJson(com.azure.json.JsonReader jsonReader) Reads a JSON stream into aSubResource.id()Get the id value.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) Set the id value.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
SubResource
public SubResource()Creates an instance ofSubResource.
-
-
Method Details
-
id
Get the id value.- Returns:
- the id value
-
withId
Set the id value.- Parameters:
id- the id value to set- Returns:
- the sub resource itself
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<SubResource>- Throws:
IOException
-
fromJson
Reads a JSON stream into aSubResource.- Parameters:
jsonReader- TheJsonReaderbeing read.- Returns:
- The
SubResourcethat the JSON stream represented, may return null. - Throws:
IOException- If aSubResourcefails to be read from thejsonReader.
-