SubResource Class
- java.
lang. Object - com.
azure. core. management. SubResource
- com.
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
Sub |
fromJson(JsonReader jsonReader)
Reads a JSON stream into a SubResource. |
String |
id()
Get the id value. |
Json |
toJson(JsonWriter jsonWriter) |
Sub |
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:
id
public String id()
Get the id value.
Returns:
the id value
toJson
withId
public SubResource withId(String id)
Set the id value.
Parameters:
id
- the id value to set
Returns:
the sub resource itself
Applies to
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
Azure SDK for Java