VirtualNetworkPropertiesFormat Class

  • java.lang.Object
    • com.azure.resourcemanager.network.fluent.models.VirtualNetworkPropertiesFormat

Implements

public final class VirtualNetworkPropertiesFormat
implements JsonSerializable<VirtualNetworkPropertiesFormat>

Properties of the virtual network.

Constructor Summary

Constructor Description
VirtualNetworkPropertiesFormat()

Creates an instance of VirtualNetworkPropertiesFormat class.

Method Summary

Modifier and Type Method and Description
AddressSpace addressSpace()

Get the addressSpace property: The AddressSpace that contains an array of IP address ranges that can be used by subnets.

VirtualNetworkBgpCommunities bgpCommunities()

Get the bgpCommunities property: Bgp Communities sent over ExpressRoute with each route corresponding to a prefix in this VNET.

SubResource ddosProtectionPlan()

Get the ddosProtectionPlan property: The DDoS protection plan associated with the virtual network.

SubResource defaultPublicNatGateway()

Get the defaultPublicNatGateway property: A reference to the default public nat gateway being used by this virtual network resource.

DhcpOptions dhcpOptions()

Get the dhcpOptions property: The dhcpOptions that contains an array of DNS servers available to VMs deployed in the virtual network.

Boolean enableDdosProtection()

Get the enableDdosProtection property: Indicates if DDoS protection is enabled for all the protected resources in the virtual network.

Boolean enableVmProtection()

Get the enableVmProtection property: Indicates if VM protection is enabled for all the subnets in the virtual network.

VirtualNetworkEncryption encryption()

Get the encryption property: Indicates if encryption is enabled on virtual network and if VM without encryption is allowed in encrypted VNet.

List<FlowLogInner> flowLogs()

Get the flowLogs property: A collection of references to flow log resources.

Integer flowTimeoutInMinutes()

Get the flowTimeoutInMinutes property: The FlowTimeout value (in minutes) for the Virtual Network.

static VirtualNetworkPropertiesFormat fromJson(JsonReader jsonReader)

Reads an instance of VirtualNetworkPropertiesFormat from the JsonReader.

List<SubResource> ipAllocations()

Get the ipAllocations property: Array of IpAllocation which reference this VNET.

PrivateEndpointVNetPolicies privateEndpointVNetPolicies()

Get the privateEndpointVNetPolicies property: Private Endpoint VNet Policies.

ProvisioningState provisioningState()

Get the provisioningState property: The provisioning state of the virtual network resource.

String resourceGuid()

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.

AddressSpace summarizedGatewayPrefixes()

Get the summarizedGatewayPrefixes property: A configurable list of summarized gateway prefixes advertised for the virtual network.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

List<VirtualNetworkPeeringInner> virtualNetworkPeerings()

Get the virtualNetworkPeerings property: A list of peerings in a Virtual Network.

VirtualNetworkPropertiesFormat withAddressSpace(AddressSpace addressSpace)

Set the addressSpace property: The AddressSpace that contains an array of IP address ranges that can be used by subnets.

VirtualNetworkPropertiesFormat withBgpCommunities(VirtualNetworkBgpCommunities bgpCommunities)

Set the bgpCommunities property: Bgp Communities sent over ExpressRoute with each route corresponding to a prefix in this VNET.

VirtualNetworkPropertiesFormat withDdosProtectionPlan(SubResource ddosProtectionPlan)

Set the ddosProtectionPlan property: The DDoS protection plan associated with the virtual network.

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.

VirtualNetworkPropertiesFormat withEnableDdosProtection(Boolean enableDdosProtection)

Set the enableDdosProtection property: Indicates if DDoS protection is enabled for all the protected resources in the virtual network.

VirtualNetworkPropertiesFormat withEnableVmProtection(Boolean enableVmProtection)

Set the enableVmProtection property: Indicates if VM protection is enabled for all the subnets in the virtual network.

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.

VirtualNetworkPropertiesFormat withFlowTimeoutInMinutes(Integer flowTimeoutInMinutes)

Set the flowTimeoutInMinutes property: The FlowTimeout value (in minutes) for the Virtual Network.

VirtualNetworkPropertiesFormat withIpAllocations(List<SubResource> ipAllocations)

Set the ipAllocations property: Array of IpAllocation which reference this VNET.

VirtualNetworkPropertiesFormat withPrivateEndpointVNetPolicies(PrivateEndpointVNetPolicies privateEndpointVNetPolicies)

Set the privateEndpointVNetPolicies property: Private Endpoint VNet Policies.

VirtualNetworkPropertiesFormat withSubnets(List<SubnetInner> subnets)

Set the subnets property: A list of subnets in a Virtual Network.

VirtualNetworkPropertiesFormat withSummarizedGatewayPrefixes(AddressSpace summarizedGatewayPrefixes)

Set the summarizedGatewayPrefixes property: A configurable list of summarized gateway prefixes advertised for the virtual network.

VirtualNetworkPropertiesFormat withVirtualNetworkPeerings(List<VirtualNetworkPeeringInner> virtualNetworkPeerings)

Set the virtualNetworkPeerings property: A list of peerings in a Virtual Network.

Methods inherited from java.lang.Object

Constructor Details

VirtualNetworkPropertiesFormat

public VirtualNetworkPropertiesFormat()

Creates an instance of VirtualNetworkPropertiesFormat class.

Method Details

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.

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.

ddosProtectionPlan

public SubResource ddosProtectionPlan()

Get the ddosProtectionPlan property: The DDoS protection plan associated with the virtual network.

Returns:

the ddosProtectionPlan value.

defaultPublicNatGateway

public SubResource defaultPublicNatGateway()

Get the defaultPublicNatGateway property: A reference to the default public nat gateway being used by this virtual network resource.

Returns:

the defaultPublicNatGateway value.

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.

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.

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.

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.

flowLogs

public List<FlowLogInner> flowLogs()

Get the flowLogs property: A collection of references to flow log resources.

Returns:

the flowLogs value.

flowTimeoutInMinutes

public Integer flowTimeoutInMinutes()

Get the flowTimeoutInMinutes property: The FlowTimeout value (in minutes) for the Virtual Network.

Returns:

the flowTimeoutInMinutes value.

fromJson

public static VirtualNetworkPropertiesFormat fromJson(JsonReader jsonReader)

Reads an instance of VirtualNetworkPropertiesFormat from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of VirtualNetworkPropertiesFormat 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 VirtualNetworkPropertiesFormat.

ipAllocations

public List<SubResource> ipAllocations()

Get the ipAllocations property: Array of IpAllocation which reference this VNET.

Returns:

the ipAllocations value.

privateEndpointVNetPolicies

public PrivateEndpointVNetPolicies privateEndpointVNetPolicies()

Get the privateEndpointVNetPolicies property: Private Endpoint VNet Policies.

Returns:

the privateEndpointVNetPolicies value.

provisioningState

public ProvisioningState provisioningState()

Get the provisioningState property: The provisioning state of the virtual network resource.

Returns:

the provisioningState value.

resourceGuid

public String resourceGuid()

Get the resourceGuid property: The resourceGuid property of the Virtual Network resource.

Returns:

the resourceGuid value.

subnets

public List<SubnetInner> subnets()

Get the subnets property: A list of subnets in a Virtual Network.

Returns:

the subnets value.

summarizedGatewayPrefixes

public AddressSpace summarizedGatewayPrefixes()

Get the summarizedGatewayPrefixes property: A configurable list of summarized gateway prefixes advertised for the virtual network.

Returns:

the summarizedGatewayPrefixes value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

virtualNetworkPeerings

public List<VirtualNetworkPeeringInner> virtualNetworkPeerings()

Get the virtualNetworkPeerings property: A list of peerings in a Virtual Network.

Returns:

the virtualNetworkPeerings 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.

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.

withDdosProtectionPlan

public VirtualNetworkPropertiesFormat withDdosProtectionPlan(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.

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.

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.

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.

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.

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.

withIpAllocations

public VirtualNetworkPropertiesFormat withIpAllocations(List<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.

withPrivateEndpointVNetPolicies

public VirtualNetworkPropertiesFormat withPrivateEndpointVNetPolicies(PrivateEndpointVNetPolicies privateEndpointVNetPolicies)

Set the privateEndpointVNetPolicies property: Private Endpoint VNet Policies.

Parameters:

privateEndpointVNetPolicies - the privateEndpointVNetPolicies value to set.

Returns:

the VirtualNetworkPropertiesFormat object itself.

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.

withSummarizedGatewayPrefixes

public VirtualNetworkPropertiesFormat withSummarizedGatewayPrefixes(AddressSpace summarizedGatewayPrefixes)

Set the summarizedGatewayPrefixes property: A configurable list of summarized gateway prefixes advertised for the virtual network.

Parameters:

summarizedGatewayPrefixes - the summarizedGatewayPrefixes value to set.

Returns:

the VirtualNetworkPropertiesFormat object itself.

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.

Applies to