SubnetReference Class
- java.
lang. Object - com.
azure. resourcemanager. resourcemover. models. AzureResourceReference - com.
azure. resourcemanager. resourcemover. models. ProxyResourceReference - com.
azure. resourcemanager. resourcemover. models. SubnetReference
- com.
- com.
- com.
public final class SubnetReference
extends ProxyResourceReference
Defines reference to subnet.
Constructor Summary
| Constructor | Description |
|---|---|
| SubnetReference() |
Creates an instance of Subnet |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
static
Subnet |
fromJson(JsonReader jsonReader)
Reads an instance of Subnet |
|
Json |
toJson(JsonWriter jsonWriter) |
| void |
validate()
Validates the instance. |
|
Subnet |
withName(String name)
Set the name property: Gets the name of the proxy resource on the target side. |
|
Subnet |
withSourceArmResourceId(String sourceArmResourceId)
Set the source |
Methods inherited from AzureResourceReference
Methods inherited from ProxyResourceReference
Methods inherited from java.lang.Object
Constructor Details
SubnetReference
public SubnetReference()
Creates an instance of SubnetReference class.
Method Details
fromJson
public static SubnetReference fromJson(JsonReader jsonReader)
Reads an instance of SubnetReference from the JsonReader.
Parameters:
Returns:
Throws:
toJson
public JsonWriter toJson(JsonWriter jsonWriter)
Overrides:
SubnetReference.toJson(JsonWriter jsonWriter)Parameters:
Throws:
validate
public void validate()
Validates the instance.
Overrides:
SubnetReference.validate()withName
public SubnetReference withName(String name)
Set the name property: Gets the name of the proxy resource on the target side.
Overrides:
SubnetReference.withName(String name)Parameters:
withSourceArmResourceId
public SubnetReference withSourceArmResourceId(String sourceArmResourceId)
Set the sourceArmResourceId property: Gets the ARM resource ID of the tracked resource being referenced.
Overrides:
SubnetReference.withSourceArmResourceId(String sourceArmResourceId)Parameters: