VirtualNetworkResourceSettings Class
- java.
lang. Object - com.
azure. resourcemanager. resourcemover. models. ResourceSettings - com.
azure. resourcemanager. resourcemover. models. VirtualNetworkResourceSettings
- com.
- com.
public final class VirtualNetworkResourceSettings
extends ResourceSettings
Defines the virtual network resource settings.
Constructor Summary
| Constructor | Description |
|---|---|
| VirtualNetworkResourceSettings() |
Creates an instance of Virtual |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
| List<String> |
addressSpace()
Get the address |
| List<String> |
dnsServers()
Get the dns |
| Boolean |
enableDdosProtection()
Get the enable |
|
static
Virtual |
fromJson(JsonReader jsonReader)
Reads an instance of Virtual |
| String |
resourceType()
Get the resource |
|
List<Subnet |
subnets()
Get the subnets property: Gets or sets List of subnets in a Virtual |
| Map<String,String> |
tags()
Get the tags property: Gets or sets the Resource tags. |
|
Json |
toJson(JsonWriter jsonWriter) |
| void |
validate()
Validates the instance. |
|
Virtual |
withAddressSpace(List<String> addressSpace)
Set the address |
|
Virtual |
withDnsServers(List<String> dnsServers)
Set the dns |
|
Virtual |
withEnableDdosProtection(Boolean enableDdosProtection)
Set the enable |
|
Virtual |
withSubnets(List<SubnetResourceSettings> subnets)
Set the subnets property: Gets or sets List of subnets in a Virtual |
|
Virtual |
withTags(Map<String,String> tags)
Set the tags property: Gets or sets the Resource tags. |
|
Virtual |
withTargetResourceGroupName(String targetResourceGroupName)
Set the target |
|
Virtual |
withTargetResourceName(String targetResourceName)
Set the target |
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:
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:
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:
fromJson
public static VirtualNetworkResourceSettings fromJson(JsonReader jsonReader)
Reads an instance of VirtualNetworkResourceSettings from the JsonReader.
Parameters:
Returns:
Throws:
resourceType
public String resourceType()
Get the resourceType property: The resource type. For example, the value can be Microsoft.Compute/virtualMachines.
Overrides:
VirtualNetworkResourceSettings.resourceType()Returns:
subnets
public List<SubnetResourceSettings> subnets()
Get the subnets property: Gets or sets List of subnets in a VirtualNetwork.
Returns:
tags
public Map<String,String> tags()
Get the tags property: Gets or sets the Resource tags.
Returns:
toJson
public JsonWriter toJson(JsonWriter jsonWriter)
Overrides:
VirtualNetworkResourceSettings.toJson(JsonWriter jsonWriter)Parameters:
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:
Returns:
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:
Returns:
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:
Returns:
withSubnets
public VirtualNetworkResourceSettings withSubnets(List<SubnetResourceSettings> subnets)
Set the subnets property: Gets or sets List of subnets in a VirtualNetwork.
Parameters:
Returns:
withTags
public VirtualNetworkResourceSettings withTags(Map<String,String> tags)
Set the tags property: Gets or sets the Resource tags.
Parameters:
Returns:
withTargetResourceGroupName
public VirtualNetworkResourceSettings withTargetResourceGroupName(String targetResourceGroupName)
Set the targetResourceGroupName property: Gets or sets the target resource group name.
Overrides:
VirtualNetworkResourceSettings.withTargetResourceGroupName(String targetResourceGroupName)Parameters:
withTargetResourceName
public VirtualNetworkResourceSettings withTargetResourceName(String targetResourceName)
Set the targetResourceName property: Gets or sets the target Resource name.
Overrides:
VirtualNetworkResourceSettings.withTargetResourceName(String targetResourceName)Parameters: