VirtualNetworkInner Class

public final class VirtualNetworkInner
extends ProxyResource

A virtual network.

Constructor Summary

Constructor Description
VirtualNetworkInner()

Creates an instance of VirtualNetworkInner class.

Method Summary

Modifier and Type Method and Description
List<Subnet> allowedSubnets()

Get the allowedSubnets property: The allowed subnets of the virtual network.

OffsetDateTime createdDate()

Get the createdDate property: The creation date of the virtual network.

String description()

Get the description property: The description of the virtual network.

String externalProviderResourceId()

Get the externalProviderResourceId property: The Microsoft.Network resource identifier of the virtual network.

List<ExternalSubnet> externalSubnets()

Get the externalSubnets property: The external subnet properties.

static VirtualNetworkInner fromJson(JsonReader jsonReader)

Reads an instance of VirtualNetworkInner from the JsonReader.

String id()

Get the id property: Fully qualified resource Id for the resource.

String location()

Get the location property: The geo-location where the resource lives.

String name()

Get the name property: The name of the resource.

String provisioningState()

Get the provisioningState property: The provisioning status of the resource.

List<SubnetOverride> subnetOverrides()

Get the subnetOverrides property: The subnet overrides of the virtual network.

SystemData systemData()

Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.

Map<String,String> tags()

Get the tags property: Resource tags.

JsonWriter toJson(JsonWriter jsonWriter)
String type()

Get the type property: The type of the resource.

String uniqueIdentifier()

Get the uniqueIdentifier property: The unique immutable identifier of a resource (Guid).

VirtualNetworkInner withAllowedSubnets(List<Subnet> allowedSubnets)

Set the allowedSubnets property: The allowed subnets of the virtual network.

VirtualNetworkInner withDescription(String description)

Set the description property: The description of the virtual network.

VirtualNetworkInner withExternalProviderResourceId(String externalProviderResourceId)

Set the externalProviderResourceId property: The Microsoft.Network resource identifier of the virtual network.

VirtualNetworkInner withLocation(String location)

Set the location property: The geo-location where the resource lives.

VirtualNetworkInner withSubnetOverrides(List<SubnetOverride> subnetOverrides)

Set the subnetOverrides property: The subnet overrides of the virtual network.

VirtualNetworkInner withTags(Map<String,String> tags)

Set the tags property: Resource tags.

Methods inherited from ProxyResource

Methods inherited from java.lang.Object

Constructor Details

VirtualNetworkInner

public VirtualNetworkInner()

Creates an instance of VirtualNetworkInner class.

Method Details

allowedSubnets

public List<Subnet> allowedSubnets()

Get the allowedSubnets property: The allowed subnets of the virtual network.

Returns:

the allowedSubnets value.

createdDate

public OffsetDateTime createdDate()

Get the createdDate property: The creation date of the virtual network.

Returns:

the createdDate value.

description

public String description()

Get the description property: The description of the virtual network.

Returns:

the description value.

externalProviderResourceId

public String externalProviderResourceId()

Get the externalProviderResourceId property: The Microsoft.Network resource identifier of the virtual network.

Returns:

the externalProviderResourceId value.

externalSubnets

public List<ExternalSubnet> externalSubnets()

Get the externalSubnets property: The external subnet properties.

Returns:

the externalSubnets value.

fromJson

public static VirtualNetworkInner fromJson(JsonReader jsonReader)

Reads an instance of VirtualNetworkInner from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of VirtualNetworkInner 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: Fully qualified resource Id for the resource.

Overrides:

VirtualNetworkInner.id()

Returns:

the id value.

location

public String location()

Get the location property: The geo-location where the resource lives.

Returns:

the location value.

name

public String name()

Get the name property: The name of the resource.

Overrides:

VirtualNetworkInner.name()

Returns:

the name value.

provisioningState

public String provisioningState()

Get the provisioningState property: The provisioning status of the resource.

Returns:

the provisioningState value.

subnetOverrides

public List<SubnetOverride> subnetOverrides()

Get the subnetOverrides property: The subnet overrides of the virtual network.

Returns:

the subnetOverrides value.

systemData

public SystemData systemData()

Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.

Returns:

the systemData value.

tags

public Map<String,String> tags()

Get the tags property: Resource tags.

Returns:

the tags value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

VirtualNetworkInner.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public String type()

Get the type property: The type of the resource.

Overrides:

VirtualNetworkInner.type()

Returns:

the type value.

uniqueIdentifier

public String uniqueIdentifier()

Get the uniqueIdentifier property: The unique immutable identifier of a resource (Guid).

Returns:

the uniqueIdentifier value.

withAllowedSubnets

public VirtualNetworkInner withAllowedSubnets(List<Subnet> allowedSubnets)

Set the allowedSubnets property: The allowed subnets of the virtual network.

Parameters:

allowedSubnets - the allowedSubnets value to set.

Returns:

the VirtualNetworkInner object itself.

withDescription

public VirtualNetworkInner withDescription(String description)

Set the description property: The description of the virtual network.

Parameters:

description - the description value to set.

Returns:

the VirtualNetworkInner object itself.

withExternalProviderResourceId

public VirtualNetworkInner withExternalProviderResourceId(String externalProviderResourceId)

Set the externalProviderResourceId property: The Microsoft.Network resource identifier of the virtual network.

Parameters:

externalProviderResourceId - the externalProviderResourceId value to set.

Returns:

the VirtualNetworkInner object itself.

withLocation

public VirtualNetworkInner withLocation(String location)

Set the location property: The geo-location where the resource lives.

Parameters:

location - the location value to set.

Returns:

the VirtualNetworkInner object itself.

withSubnetOverrides

public VirtualNetworkInner withSubnetOverrides(List<SubnetOverride> subnetOverrides)

Set the subnetOverrides property: The subnet overrides of the virtual network.

Parameters:

subnetOverrides - the subnetOverrides value to set.

Returns:

the VirtualNetworkInner object itself.

withTags

public VirtualNetworkInner withTags(Map<String,String> tags)

Set the tags property: Resource tags.

Parameters:

tags - the tags value to set.

Returns:

the VirtualNetworkInner object itself.

Applies to