Share via


VirtualNetworkResourceSettings Class

public class VirtualNetworkResourceSettings
extends ResourceSettings

Defines the virtual network resource settings.

Constructor Summary

Constructor Description
VirtualNetworkResourceSettings()

Method Summary

Modifier and Type Method and Description
java.util.List<java.lang.String> addressSpace()

Get gets or sets the address prefixes for the virtual network.

java.util.List<java.lang.String> dnsServers()

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

java.lang.Boolean enableDdosProtection()

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

java.util.List<SubnetResourceSettings> subnets()

Get gets or sets List of subnets in a VirtualNetwork.

VirtualNetworkResourceSettings withAddressSpace(List<String> addressSpace)

Set gets or sets the address prefixes for the virtual network.

VirtualNetworkResourceSettings withDnsServers(List<String> dnsServers)

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

VirtualNetworkResourceSettings withEnableDdosProtection(Boolean enableDdosProtection)

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

VirtualNetworkResourceSettings withSubnets(List<SubnetResourceSettings> subnets)

Set gets or sets List of subnets in a VirtualNetwork.

Methods inherited from ResourceSettings

Methods inherited from java.lang.Object

java.lang.Object.clone java.lang.Object.equals java.lang.Object.finalize java.lang.Object.getClass java.lang.Object.hashCode java.lang.Object.notify java.lang.Object.notifyAll java.lang.Object.toString java.lang.Object.wait java.lang.Object.wait java.lang.Object.wait

Constructor Details

VirtualNetworkResourceSettings

public VirtualNetworkResourceSettings()

Method Details

addressSpace

public List<String> addressSpace()

Get gets or sets the address prefixes for the virtual network.

Returns:

the addressSpace value

dnsServers

public List<String> dnsServers()

Get 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 gets or sets a value indicating whether gets or sets whether the DDOS protection should be switched on.

Returns:

the enableDdosProtection value

subnets

public List<SubnetResourceSettings> subnets()

Get gets or sets List of subnets in a VirtualNetwork.

Returns:

the subnets value

withAddressSpace

public VirtualNetworkResourceSettings withAddressSpace(List<String> addressSpace)

Set 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 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 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 gets or sets List of subnets in a VirtualNetwork.

Parameters:

subnets - the subnets value to set

Returns:

the VirtualNetworkResourceSettings object itself.

Applies to