VirtualNetworkProfile Class

  • java.lang.Object
    • com.azure.resourcemanager.appservice.models.VirtualNetworkProfile

Implements

public final class VirtualNetworkProfile
implements JsonSerializable<VirtualNetworkProfile>

Specification for using a Virtual Network.

Constructor Summary

Constructor Description
VirtualNetworkProfile()

Creates an instance of VirtualNetworkProfile class.

Method Summary

Modifier and Type Method and Description
static VirtualNetworkProfile fromJson(JsonReader jsonReader)

Reads an instance of VirtualNetworkProfile from the JsonReader.

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.

JsonWriter toJson(JsonWriter jsonWriter)
String type()

Get the type property: Resource type of the Virtual Network (read-only).

void validate()

Validates the instance.

VirtualNetworkProfile withId(String id)

Set the id property: Resource id of the Virtual Network.

VirtualNetworkProfile 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:

jsonReader - The JsonReader being read.

Returns:

An instance of VirtualNetworkProfile if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If the deserialized JSON object was missing any required properties.

id

public String id()

Get the id property: Resource id of the Virtual Network.

Returns:

the id value.

name

public String name()

Get the name property: Name of the Virtual Network (read-only).

Returns:

the name value.

subnet

public String subnet()

Get the subnet property: Subnet within the Virtual Network.

Returns:

the subnet value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public String type()

Get the type property: Resource type of the Virtual Network (read-only).

Returns:

the type value.

validate

public void validate()

Validates the instance.

withId

public VirtualNetworkProfile withId(String id)

Set the id property: Resource id of the Virtual Network.

Parameters:

id - the id value to set.

Returns:

the VirtualNetworkProfile object itself.

withSubnet

public VirtualNetworkProfile withSubnet(String subnet)

Set the subnet property: Subnet within the Virtual Network.

Parameters:

subnet - the subnet value to set.

Returns:

the VirtualNetworkProfile object itself.

Applies to