Class VirtualNetworkPropertiesFormat
- java.lang.Object
-
- com.azure.resourcemanager.network.fluent.models.VirtualNetworkPropertiesFormat
-
public final class VirtualNetworkPropertiesFormat extends Object
Properties of the virtual network.
-
-
Constructor Summary
Constructors Constructor Description VirtualNetworkPropertiesFormat()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AddressSpaceaddressSpace()Get the addressSpace property: The AddressSpace that contains an array of IP address ranges that can be used by subnets.VirtualNetworkBgpCommunitiesbgpCommunities()Get the bgpCommunities property: Bgp Communities sent over ExpressRoute with each route corresponding to a prefix in this VNET.com.azure.core.management.SubResourceddosProtectionPlan()Get the ddosProtectionPlan property: The DDoS protection plan associated with the virtual network.DhcpOptionsdhcpOptions()Get the dhcpOptions property: The dhcpOptions that contains an array of DNS servers available to VMs deployed in the virtual network.BooleanenableDdosProtection()Get the enableDdosProtection property: Indicates if DDoS protection is enabled for all the protected resources in the virtual network.BooleanenableVmProtection()Get the enableVmProtection property: Indicates if VM protection is enabled for all the subnets in the virtual network.VirtualNetworkEncryptionencryption()Get the encryption property: Indicates if encryption is enabled on virtual network and if VM without encryption is allowed in encrypted VNet.IntegerflowTimeoutInMinutes()Get the flowTimeoutInMinutes property: The FlowTimeout value (in minutes) for the Virtual Network.List<com.azure.core.management.SubResource>ipAllocations()Get the ipAllocations property: Array of IpAllocation which reference this VNET.ProvisioningStateprovisioningState()Get the provisioningState property: The provisioning state of the virtual network resource.StringresourceGuid()Get the resourceGuid property: The resourceGuid property of the Virtual Network resource.List<SubnetInner>subnets()Get the subnets property: A list of subnets in a Virtual Network.voidvalidate()Validates the instance.List<VirtualNetworkPeeringInner>virtualNetworkPeerings()Get the virtualNetworkPeerings property: A list of peerings in a Virtual Network.VirtualNetworkPropertiesFormatwithAddressSpace(AddressSpace addressSpace)Set the addressSpace property: The AddressSpace that contains an array of IP address ranges that can be used by subnets.VirtualNetworkPropertiesFormatwithBgpCommunities(VirtualNetworkBgpCommunities bgpCommunities)Set the bgpCommunities property: Bgp Communities sent over ExpressRoute with each route corresponding to a prefix in this VNET.VirtualNetworkPropertiesFormatwithDdosProtectionPlan(com.azure.core.management.SubResource ddosProtectionPlan)Set the ddosProtectionPlan property: The DDoS protection plan associated with the virtual network.VirtualNetworkPropertiesFormatwithDhcpOptions(DhcpOptions dhcpOptions)Set the dhcpOptions property: The dhcpOptions that contains an array of DNS servers available to VMs deployed in the virtual network.VirtualNetworkPropertiesFormatwithEnableDdosProtection(Boolean enableDdosProtection)Set the enableDdosProtection property: Indicates if DDoS protection is enabled for all the protected resources in the virtual network.VirtualNetworkPropertiesFormatwithEnableVmProtection(Boolean enableVmProtection)Set the enableVmProtection property: Indicates if VM protection is enabled for all the subnets in the virtual network.VirtualNetworkPropertiesFormatwithEncryption(VirtualNetworkEncryption encryption)Set the encryption property: Indicates if encryption is enabled on virtual network and if VM without encryption is allowed in encrypted VNet.VirtualNetworkPropertiesFormatwithFlowTimeoutInMinutes(Integer flowTimeoutInMinutes)Set the flowTimeoutInMinutes property: The FlowTimeout value (in minutes) for the Virtual Network.VirtualNetworkPropertiesFormatwithIpAllocations(List<com.azure.core.management.SubResource> ipAllocations)Set the ipAllocations property: Array of IpAllocation which reference this VNET.VirtualNetworkPropertiesFormatwithSubnets(List<SubnetInner> subnets)Set the subnets property: A list of subnets in a Virtual Network.VirtualNetworkPropertiesFormatwithVirtualNetworkPeerings(List<VirtualNetworkPeeringInner> virtualNetworkPeerings)Set the virtualNetworkPeerings property: A list of peerings in a Virtual Network.
-
-
-
Method Detail
-
addressSpace
public AddressSpace addressSpace()
Get the addressSpace property: The AddressSpace that contains an array of IP address ranges that can be used by subnets.- Returns:
- the addressSpace value.
-
withAddressSpace
public VirtualNetworkPropertiesFormat withAddressSpace(AddressSpace addressSpace)
Set the addressSpace property: The AddressSpace that contains an array of IP address ranges that can be used by subnets.- Parameters:
addressSpace- the addressSpace value to set.- Returns:
- the VirtualNetworkPropertiesFormat object itself.
-
dhcpOptions
public DhcpOptions dhcpOptions()
Get the dhcpOptions property: The dhcpOptions that contains an array of DNS servers available to VMs deployed in the virtual network.- Returns:
- the dhcpOptions value.
-
withDhcpOptions
public VirtualNetworkPropertiesFormat withDhcpOptions(DhcpOptions dhcpOptions)
Set the dhcpOptions property: The dhcpOptions that contains an array of DNS servers available to VMs deployed in the virtual network.- Parameters:
dhcpOptions- the dhcpOptions value to set.- Returns:
- the VirtualNetworkPropertiesFormat object itself.
-
flowTimeoutInMinutes
public Integer flowTimeoutInMinutes()
Get the flowTimeoutInMinutes property: The FlowTimeout value (in minutes) for the Virtual Network.- Returns:
- the flowTimeoutInMinutes value.
-
withFlowTimeoutInMinutes
public VirtualNetworkPropertiesFormat withFlowTimeoutInMinutes(Integer flowTimeoutInMinutes)
Set the flowTimeoutInMinutes property: The FlowTimeout value (in minutes) for the Virtual Network.- Parameters:
flowTimeoutInMinutes- the flowTimeoutInMinutes value to set.- Returns:
- the VirtualNetworkPropertiesFormat object itself.
-
subnets
public List<SubnetInner> subnets()
Get the subnets property: A list of subnets in a Virtual Network.- Returns:
- the subnets value.
-
withSubnets
public VirtualNetworkPropertiesFormat withSubnets(List<SubnetInner> subnets)
Set the subnets property: A list of subnets in a Virtual Network.- Parameters:
subnets- the subnets value to set.- Returns:
- the VirtualNetworkPropertiesFormat object itself.
-
virtualNetworkPeerings
public List<VirtualNetworkPeeringInner> virtualNetworkPeerings()
Get the virtualNetworkPeerings property: A list of peerings in a Virtual Network.- Returns:
- the virtualNetworkPeerings value.
-
withVirtualNetworkPeerings
public VirtualNetworkPropertiesFormat withVirtualNetworkPeerings(List<VirtualNetworkPeeringInner> virtualNetworkPeerings)
Set the virtualNetworkPeerings property: A list of peerings in a Virtual Network.- Parameters:
virtualNetworkPeerings- the virtualNetworkPeerings value to set.- Returns:
- the VirtualNetworkPropertiesFormat object itself.
-
resourceGuid
public String resourceGuid()
Get the resourceGuid property: The resourceGuid property of the Virtual Network resource.- Returns:
- the resourceGuid value.
-
provisioningState
public ProvisioningState provisioningState()
Get the provisioningState property: The provisioning state of the virtual network resource.- Returns:
- the provisioningState value.
-
enableDdosProtection
public Boolean enableDdosProtection()
Get the enableDdosProtection property: 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.
-
withEnableDdosProtection
public VirtualNetworkPropertiesFormat withEnableDdosProtection(Boolean enableDdosProtection)
Set the enableDdosProtection property: 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.- Parameters:
enableDdosProtection- the enableDdosProtection value to set.- Returns:
- the VirtualNetworkPropertiesFormat object itself.
-
enableVmProtection
public Boolean enableVmProtection()
Get the enableVmProtection property: Indicates if VM protection is enabled for all the subnets in the virtual network.- Returns:
- the enableVmProtection value.
-
withEnableVmProtection
public VirtualNetworkPropertiesFormat withEnableVmProtection(Boolean enableVmProtection)
Set the enableVmProtection property: Indicates if VM protection is enabled for all the subnets in the virtual network.- Parameters:
enableVmProtection- the enableVmProtection value to set.- Returns:
- the VirtualNetworkPropertiesFormat object itself.
-
ddosProtectionPlan
public com.azure.core.management.SubResource ddosProtectionPlan()
Get the ddosProtectionPlan property: The DDoS protection plan associated with the virtual network.- Returns:
- the ddosProtectionPlan value.
-
withDdosProtectionPlan
public VirtualNetworkPropertiesFormat withDdosProtectionPlan(com.azure.core.management.SubResource ddosProtectionPlan)
Set the ddosProtectionPlan property: The DDoS protection plan associated with the virtual network.- Parameters:
ddosProtectionPlan- the ddosProtectionPlan value to set.- Returns:
- the VirtualNetworkPropertiesFormat object itself.
-
bgpCommunities
public VirtualNetworkBgpCommunities bgpCommunities()
Get the bgpCommunities property: Bgp Communities sent over ExpressRoute with each route corresponding to a prefix in this VNET.- Returns:
- the bgpCommunities value.
-
withBgpCommunities
public VirtualNetworkPropertiesFormat withBgpCommunities(VirtualNetworkBgpCommunities bgpCommunities)
Set the bgpCommunities property: Bgp Communities sent over ExpressRoute with each route corresponding to a prefix in this VNET.- Parameters:
bgpCommunities- the bgpCommunities value to set.- Returns:
- the VirtualNetworkPropertiesFormat object itself.
-
encryption
public VirtualNetworkEncryption encryption()
Get the encryption property: Indicates if encryption is enabled on virtual network and if VM without encryption is allowed in encrypted VNet.- Returns:
- the encryption value.
-
withEncryption
public VirtualNetworkPropertiesFormat withEncryption(VirtualNetworkEncryption encryption)
Set the encryption property: Indicates if encryption is enabled on virtual network and if VM without encryption is allowed in encrypted VNet.- Parameters:
encryption- the encryption value to set.- Returns:
- the VirtualNetworkPropertiesFormat object itself.
-
ipAllocations
public List<com.azure.core.management.SubResource> ipAllocations()
Get the ipAllocations property: Array of IpAllocation which reference this VNET.- Returns:
- the ipAllocations value.
-
withIpAllocations
public VirtualNetworkPropertiesFormat withIpAllocations(List<com.azure.core.management.SubResource> ipAllocations)
Set the ipAllocations property: Array of IpAllocation which reference this VNET.- Parameters:
ipAllocations- the ipAllocations value to set.- Returns:
- the VirtualNetworkPropertiesFormat object itself.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
-