VirtualNetworkProfile Class
- java.
lang. Object - com.
azure. resourcemanager. appservice. models. VirtualNetworkProfile
- com.
Implements
public final class VirtualNetworkProfile
implements JsonSerializable<VirtualNetworkProfile>
Specification for using a Virtual Network.
Constructor Summary
Constructor | Description |
---|---|
VirtualNetworkProfile() |
Creates an instance of Virtual |
Method Summary
Modifier and Type | Method and Description |
---|---|
static
Virtual |
fromJson(JsonReader jsonReader)
Reads an instance of Virtual |
String |
id()
Get the id property: Resource id of the Virtual Network. |
String |
name()
Get the name property: Name of the Virtual Network (read-only). |
String |
subnet()
Get the subnet property: Subnet within the Virtual Network. |
Json |
toJson(JsonWriter jsonWriter) |
String |
type()
Get the type property: Resource type of the Virtual Network (read-only). |
void |
validate()
Validates the instance. |
Virtual |
withId(String id)
Set the id property: Resource id of the Virtual Network. |
Virtual |
withSubnet(String subnet)
Set the subnet property: Subnet within the Virtual Network. |
Methods inherited from java.lang.Object
Constructor Details
VirtualNetworkProfile
public VirtualNetworkProfile()
Creates an instance of VirtualNetworkProfile class.
Method Details
fromJson
public static VirtualNetworkProfile fromJson(JsonReader jsonReader)
Reads an instance of VirtualNetworkProfile from the JsonReader.
Parameters:
Returns:
Throws:
id
public String id()
Get the id property: Resource id of the Virtual Network.
Returns:
name
public String name()
Get the name property: Name of the Virtual Network (read-only).
Returns:
subnet
public String subnet()
Get the subnet property: Subnet within the Virtual Network.
Returns:
toJson
type
public String type()
Get the type property: Resource type of the Virtual Network (read-only).
Returns:
validate
public void validate()
Validates the instance.
withId
public VirtualNetworkProfile withId(String id)
Set the id property: Resource id of the Virtual Network.
Parameters:
Returns:
withSubnet
public VirtualNetworkProfile withSubnet(String subnet)
Set the subnet property: Subnet within the Virtual Network.
Parameters:
Returns:
Applies to
Azure SDK for Java