Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT License. See License.txt in the project root for license information. Code generated by Microsoft (R) AutoRest Code Generator.
/** * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. * * Code generated by Microsoft (R) AutoRest Code Generator. */
package com.microsoft.azure.management.network.implementation; import com.microsoft.azure.management.network.AddressSpace; import com.microsoft.azure.management.network.DhcpOptions; import java.util.List; import com.microsoft.azure.management.network.ProvisioningState; import com.microsoft.azure.SubResource; import com.microsoft.azure.management.network.VirtualNetworkBgpCommunities; import com.fasterxml.jackson.annotation.JsonProperty; import com.microsoft.rest.serializer.JsonFlatten; import com.microsoft.rest.SkipParentValidation; import com.microsoft.azure.Resource;
Virtual Network resource.
/** * Virtual Network resource. */
@JsonFlatten @SkipParentValidation public class VirtualNetworkInner extends Resource {
The AddressSpace that contains an array of IP address ranges that can be used by subnets.
/** * The AddressSpace that contains an array of IP address ranges that can be * used by subnets. */
@JsonProperty(value = "properties.addressSpace") private AddressSpace addressSpace;
The dhcpOptions that contains an array of DNS servers available to VMs deployed in the virtual network.
/** * The dhcpOptions that contains an array of DNS servers available to VMs * deployed in the virtual network. */
@JsonProperty(value = "properties.dhcpOptions") private DhcpOptions dhcpOptions;
A list of subnets in a Virtual Network.
/** * A list of subnets in a Virtual Network. */
@JsonProperty(value = "properties.subnets") private List<SubnetInner> subnets;
A list of peerings in a Virtual Network.
/** * A list of peerings in a Virtual Network. */
@JsonProperty(value = "properties.virtualNetworkPeerings") private List<VirtualNetworkPeeringInner> virtualNetworkPeerings;
The resourceGuid property of the Virtual Network resource.
/** * The resourceGuid property of the Virtual Network resource. */
@JsonProperty(value = "properties.resourceGuid", access = JsonProperty.Access.WRITE_ONLY) private String resourceGuid;
The provisioning state of the virtual network resource. Possible values include: 'Succeeded', 'Updating', 'Deleting', 'Failed'.
/** * The provisioning state of the virtual network resource. Possible values * include: 'Succeeded', 'Updating', 'Deleting', 'Failed'. */
@JsonProperty(value = "properties.provisioningState", access = JsonProperty.Access.WRITE_ONLY) private ProvisioningState provisioningState;
Indicates if DDoS protection is enabled for all the protected resources in the virtual network. It requires a DDoS protection plan associated with the resource.
/** * Indicates if DDoS protection is enabled for all the protected resources * in the virtual network. It requires a DDoS protection plan associated * with the resource. */
@JsonProperty(value = "properties.enableDdosProtection") private Boolean enableDdosProtection;
Indicates if VM protection is enabled for all the subnets in the virtual network.
/** * Indicates if VM protection is enabled for all the subnets in the virtual * network. */
@JsonProperty(value = "properties.enableVmProtection") private Boolean enableVmProtection;
The DDoS protection plan associated with the virtual network.
/** * The DDoS protection plan associated with the virtual network. */
@JsonProperty(value = "properties.ddosProtectionPlan") private SubResource ddosProtectionPlan;
Bgp Communities sent over ExpressRoute with each route corresponding to a prefix in this VNET.
/** * Bgp Communities sent over ExpressRoute with each route corresponding to * a prefix in this VNET. */
@JsonProperty(value = "properties.bgpCommunities") private VirtualNetworkBgpCommunities bgpCommunities;
A unique read-only string that changes whenever the resource is updated.
/** * A unique read-only string that changes whenever the resource is updated. */
@JsonProperty(value = "etag", access = JsonProperty.Access.WRITE_ONLY) private String etag;
Resource ID.
/** * Resource ID. */
@JsonProperty(value = "id") private String id;
Get the AddressSpace that contains an array of IP address ranges that can be used by subnets.
Returns:the addressSpace value
/** * Get the AddressSpace that contains an array of IP address ranges that can be used by subnets. * * @return the addressSpace value */
public AddressSpace addressSpace() { return this.addressSpace; }
Set the AddressSpace that contains an array of IP address ranges that can be used by subnets.
Params:
  • addressSpace – the addressSpace value to set
Returns:the VirtualNetworkInner object itself.
/** * Set the AddressSpace that contains an array of IP address ranges that can be used by subnets. * * @param addressSpace the addressSpace value to set * @return the VirtualNetworkInner object itself. */
public VirtualNetworkInner withAddressSpace(AddressSpace addressSpace) { this.addressSpace = addressSpace; return this; }
Get the dhcpOptions that contains an array of DNS servers available to VMs deployed in the virtual network.
Returns:the dhcpOptions value
/** * Get the dhcpOptions that contains an array of DNS servers available to VMs deployed in the virtual network. * * @return the dhcpOptions value */
public DhcpOptions dhcpOptions() { return this.dhcpOptions; }
Set the dhcpOptions that contains an array of DNS servers available to VMs deployed in the virtual network.
Params:
  • dhcpOptions – the dhcpOptions value to set
Returns:the VirtualNetworkInner object itself.
/** * Set the dhcpOptions that contains an array of DNS servers available to VMs deployed in the virtual network. * * @param dhcpOptions the dhcpOptions value to set * @return the VirtualNetworkInner object itself. */
public VirtualNetworkInner withDhcpOptions(DhcpOptions dhcpOptions) { this.dhcpOptions = dhcpOptions; return this; }
Get a list of subnets in a Virtual Network.
Returns:the subnets value
/** * Get a list of subnets in a Virtual Network. * * @return the subnets value */
public List<SubnetInner> subnets() { return this.subnets; }
Set a list of subnets in a Virtual Network.
Params:
  • subnets – the subnets value to set
Returns:the VirtualNetworkInner object itself.
/** * Set a list of subnets in a Virtual Network. * * @param subnets the subnets value to set * @return the VirtualNetworkInner object itself. */
public VirtualNetworkInner withSubnets(List<SubnetInner> subnets) { this.subnets = subnets; return this; }
Get a list of peerings in a Virtual Network.
Returns:the virtualNetworkPeerings value
/** * Get a list of peerings in a Virtual Network. * * @return the virtualNetworkPeerings value */
public List<VirtualNetworkPeeringInner> virtualNetworkPeerings() { return this.virtualNetworkPeerings; }
Set a list of peerings in a Virtual Network.
Params:
  • virtualNetworkPeerings – the virtualNetworkPeerings value to set
Returns:the VirtualNetworkInner object itself.
/** * Set a list of peerings in a Virtual Network. * * @param virtualNetworkPeerings the virtualNetworkPeerings value to set * @return the VirtualNetworkInner object itself. */
public VirtualNetworkInner withVirtualNetworkPeerings(List<VirtualNetworkPeeringInner> virtualNetworkPeerings) { this.virtualNetworkPeerings = virtualNetworkPeerings; return this; }
Get the resourceGuid property of the Virtual Network resource.
Returns:the resourceGuid value
/** * Get the resourceGuid property of the Virtual Network resource. * * @return the resourceGuid value */
public String resourceGuid() { return this.resourceGuid; }
Get the provisioning state of the virtual network resource. Possible values include: 'Succeeded', 'Updating', 'Deleting', 'Failed'.
Returns:the provisioningState value
/** * Get the provisioning state of the virtual network resource. Possible values include: 'Succeeded', 'Updating', 'Deleting', 'Failed'. * * @return the provisioningState value */
public ProvisioningState provisioningState() { return this.provisioningState; }
Get indicates if DDoS protection is enabled for all the protected resources in the virtual network. It requires a DDoS protection plan associated with the resource.
Returns:the enableDdosProtection value
/** * Get indicates if DDoS protection is enabled for all the protected resources in the virtual network. It requires a DDoS protection plan associated with the resource. * * @return the enableDdosProtection value */
public Boolean enableDdosProtection() { return this.enableDdosProtection; }
Set indicates if DDoS protection is enabled for all the protected resources in the virtual network. It requires a DDoS protection plan associated with the resource.
Params:
  • enableDdosProtection – the enableDdosProtection value to set
Returns:the VirtualNetworkInner object itself.
/** * Set indicates if DDoS protection is enabled for all the protected resources in the virtual network. It requires a DDoS protection plan associated with the resource. * * @param enableDdosProtection the enableDdosProtection value to set * @return the VirtualNetworkInner object itself. */
public VirtualNetworkInner withEnableDdosProtection(Boolean enableDdosProtection) { this.enableDdosProtection = enableDdosProtection; return this; }
Get indicates if VM protection is enabled for all the subnets in the virtual network.
Returns:the enableVmProtection value
/** * Get indicates if VM protection is enabled for all the subnets in the virtual network. * * @return the enableVmProtection value */
public Boolean enableVmProtection() { return this.enableVmProtection; }
Set indicates if VM protection is enabled for all the subnets in the virtual network.
Params:
  • enableVmProtection – the enableVmProtection value to set
Returns:the VirtualNetworkInner object itself.
/** * Set indicates if VM protection is enabled for all the subnets in the virtual network. * * @param enableVmProtection the enableVmProtection value to set * @return the VirtualNetworkInner object itself. */
public VirtualNetworkInner withEnableVmProtection(Boolean enableVmProtection) { this.enableVmProtection = enableVmProtection; return this; }
Get the DDoS protection plan associated with the virtual network.
Returns:the ddosProtectionPlan value
/** * Get the DDoS protection plan associated with the virtual network. * * @return the ddosProtectionPlan value */
public SubResource ddosProtectionPlan() { return this.ddosProtectionPlan; }
Set the DDoS protection plan associated with the virtual network.
Params:
  • ddosProtectionPlan – the ddosProtectionPlan value to set
Returns:the VirtualNetworkInner object itself.
/** * Set the DDoS protection plan associated with the virtual network. * * @param ddosProtectionPlan the ddosProtectionPlan value to set * @return the VirtualNetworkInner object itself. */
public VirtualNetworkInner withDdosProtectionPlan(SubResource ddosProtectionPlan) { this.ddosProtectionPlan = ddosProtectionPlan; return this; }
Get bgp Communities sent over ExpressRoute with each route corresponding to a prefix in this VNET.
Returns:the bgpCommunities value
/** * Get bgp Communities sent over ExpressRoute with each route corresponding to a prefix in this VNET. * * @return the bgpCommunities value */
public VirtualNetworkBgpCommunities bgpCommunities() { return this.bgpCommunities; }
Set bgp Communities sent over ExpressRoute with each route corresponding to a prefix in this VNET.
Params:
  • bgpCommunities – the bgpCommunities value to set
Returns:the VirtualNetworkInner object itself.
/** * Set bgp Communities sent over ExpressRoute with each route corresponding to a prefix in this VNET. * * @param bgpCommunities the bgpCommunities value to set * @return the VirtualNetworkInner object itself. */
public VirtualNetworkInner withBgpCommunities(VirtualNetworkBgpCommunities bgpCommunities) { this.bgpCommunities = bgpCommunities; return this; }
Get a unique read-only string that changes whenever the resource is updated.
Returns:the etag value
/** * Get a unique read-only string that changes whenever the resource is updated. * * @return the etag value */
public String etag() { return this.etag; }
Get resource ID.
Returns:the id value
/** * Get resource ID. * * @return the id value */
public String id() { return this.id; }
Set resource ID.
Params:
  • id – the id value to set
Returns:the VirtualNetworkInner object itself.
/** * Set resource ID. * * @param id the id value to set * @return the VirtualNetworkInner object itself. */
public VirtualNetworkInner withId(String id) { this.id = id; return this; } }