SubResourceModel Class
- java.
lang. Object - com.
azure. core. management. SubResource - com.
azure. resourcemanager. network. models. SubResourceModel
- com.
- com.
public class SubResourceModel
extends SubResource
Reference to another subresource.
Constructor Summary
| Constructor | Description |
|---|---|
| SubResourceModel() |
Creates an instance of Sub |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
static
Sub |
fromJson(JsonReader jsonReader)
Reads an instance of Sub |
| String |
name()
Get the name property: Name of the resource. |
|
Json |
toJson(JsonWriter jsonWriter) |
| String |
type()
Get the type property: Resource type. |
| void |
validate()
Validates the instance. |
|
Sub |
withId(String id) |
|
Sub |
withName(String name)
Set the name property: Name of the resource. |
Methods inherited from SubResource
Methods inherited from java.lang.Object
Constructor Details
SubResourceModel
public SubResourceModel()
Creates an instance of SubResourceModel class.
Method Details
fromJson
public static SubResourceModel fromJson(JsonReader jsonReader)
Reads an instance of SubResourceModel from the JsonReader.
Parameters:
Returns:
Throws:
name
public String name()
Get the name property: Name of the resource.
Returns:
toJson
public JsonWriter toJson(JsonWriter jsonWriter)
Overrides:
SubResourceModel.toJson(JsonWriter jsonWriter)Parameters:
Throws:
type
public String type()
Get the type property: Resource type.
Returns:
validate
public void validate()
Validates the instance.
withId
public SubResourceModel withId(String id)
Overrides:
SubResourceModel.withId(String id)Parameters:
withName
public SubResourceModel withName(String name)
Set the name property: Name of the resource.
Parameters:
Returns: