Share via


VirtualNetworkResourceSettings Class

public final class VirtualNetworkResourceSettings
extends ResourceSettings

Defines the virtual network resource settings.

Constructor Summary

Constructor Description
VirtualNetworkResourceSettings()

Creates an instance of VirtualNetworkResourceSettings class.

Method Summary

Modifier and Type Method and Description
List<String> addressSpace()

Get the addressSpace property: Gets or sets the address prefixes for the virtual network.

List<String> dnsServers()

Get the dnsServers property: Gets or sets DHCPOptions that contains an array of DNS servers available to VMs deployed in the virtual network.

Boolean enableDdosProtection()

Get the enableDdosProtection property: Gets or sets a value indicating whether gets or sets whether the DDOS protection should be switched on.

static VirtualNetworkResourceSettings fromJson(JsonReader jsonReader)

Reads an instance of VirtualNetworkResourceSettings from the JsonReader.

String resourceType()

Get the resourceType property: The resource type.

List<SubnetResourceSettings> subnets()

Get the subnets property: Gets or sets List of subnets in a VirtualNetwork.

Map<String,String> tags()

Get the tags property: Gets or sets the Resource tags.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

VirtualNetworkResourceSettings withAddressSpace(List<String> addressSpace)

Set the addressSpace property: Gets or sets the address prefixes for the virtual network.

VirtualNetworkResourceSettings withDnsServers(List<String> dnsServers)

Set the dnsServers property: Gets or sets DHCPOptions that contains an array of DNS servers available to VMs deployed in the virtual network.

VirtualNetworkResourceSettings withEnableDdosProtection(Boolean enableDdosProtection)

Set the enableDdosProtection property: Gets or sets a value indicating whether gets or sets whether the DDOS protection should be switched on.

VirtualNetworkResourceSettings withSubnets(List<SubnetResourceSettings> subnets)

Set the subnets property: Gets or sets List of subnets in a VirtualNetwork.

VirtualNetworkResourceSettings withTags(Map<String,String> tags)

Set the tags property: Gets or sets the Resource tags.

VirtualNetworkResourceSettings withTargetResourceGroupName(String targetResourceGroupName)

Set the targetResourceGroupName property: Gets or sets the target resource group name.

VirtualNetworkResourceSettings withTargetResourceName(String targetResourceName)

Set the targetResourceName property: Gets or sets the target Resource name.

Methods inherited from ResourceSettings

Methods inherited from java.lang.Object

Constructor Details

VirtualNetworkResourceSettings

public VirtualNetworkResourceSettings()

Creates an instance of VirtualNetworkResourceSettings class.

Method Details

addressSpace

public List<String> addressSpace()

Get the addressSpace property: Gets or sets the address prefixes for the virtual network.

Returns:

the addressSpace value.

dnsServers

public List<String> dnsServers()

Get the dnsServers property: Gets or sets DHCPOptions that contains an array of DNS servers available to VMs deployed in the virtual network.

Returns:

the dnsServers value.

enableDdosProtection

public Boolean enableDdosProtection()

Get the enableDdosProtection property: Gets or sets a value indicating whether gets or sets whether the DDOS protection should be switched on.

Returns:

the enableDdosProtection value.

fromJson

public static VirtualNetworkResourceSettings fromJson(JsonReader jsonReader)

Reads an instance of VirtualNetworkResourceSettings from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

Throws:

IOException

- If an error occurs while reading the VirtualNetworkResourceSettings.

resourceType

public String resourceType()

Get the resourceType property: The resource type. For example, the value can be Microsoft.Compute/virtualMachines.

Overrides:

VirtualNetworkResourceSettings.resourceType()

Returns:

the resourceType value.

subnets

public List<SubnetResourceSettings> subnets()

Get the subnets property: Gets or sets List of subnets in a VirtualNetwork.

Returns:

the subnets value.

tags

public Map<String,String> tags()

Get the tags property: Gets or sets the Resource tags.

Returns:

the tags value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

VirtualNetworkResourceSettings.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

Overrides:

VirtualNetworkResourceSettings.validate()

withAddressSpace

public VirtualNetworkResourceSettings withAddressSpace(List<String> addressSpace)

Set the addressSpace property: Gets or sets the address prefixes for the virtual network.

Parameters:

addressSpace - the addressSpace value to set.

Returns:

the VirtualNetworkResourceSettings object itself.

withDnsServers

public VirtualNetworkResourceSettings withDnsServers(List<String> dnsServers)

Set the dnsServers property: Gets or sets DHCPOptions that contains an array of DNS servers available to VMs deployed in the virtual network.

Parameters:

dnsServers - the dnsServers value to set.

Returns:

the VirtualNetworkResourceSettings object itself.

withEnableDdosProtection

public VirtualNetworkResourceSettings withEnableDdosProtection(Boolean enableDdosProtection)

Set the enableDdosProtection property: Gets or sets a value indicating whether gets or sets whether the DDOS protection should be switched on.

Parameters:

enableDdosProtection - the enableDdosProtection value to set.

Returns:

the VirtualNetworkResourceSettings object itself.

withSubnets

public VirtualNetworkResourceSettings withSubnets(List<SubnetResourceSettings> subnets)

Set the subnets property: Gets or sets List of subnets in a VirtualNetwork.

Parameters:

subnets - the subnets value to set.

Returns:

the VirtualNetworkResourceSettings object itself.

withTags

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

Set the tags property: Gets or sets the Resource tags.

Parameters:

tags - the tags value to set.

Returns:

the VirtualNetworkResourceSettings object itself.

withTargetResourceGroupName

public VirtualNetworkResourceSettings withTargetResourceGroupName(String targetResourceGroupName)

Set the targetResourceGroupName property: Gets or sets the target resource group name.

Overrides:

VirtualNetworkResourceSettings.withTargetResourceGroupName(String targetResourceGroupName)

Parameters:

targetResourceGroupName

withTargetResourceName

public VirtualNetworkResourceSettings withTargetResourceName(String targetResourceName)

Set the targetResourceName property: Gets or sets the target Resource name.

Overrides:

VirtualNetworkResourceSettings.withTargetResourceName(String targetResourceName)

Parameters:

targetResourceName

Applies to