VirtualNetworkInner Class
- java.
lang. Object - com.
azure. core. management. ProxyResource - com.
azure. core. management. Resource - com.
azure. resourcemanager. network. fluent. models. VirtualNetworkInner
- com.
- com.
- com.
public final class VirtualNetworkInner
extends Resource
Virtual Network resource.
Constructor Summary
Constructor | Description |
---|---|
VirtualNetworkInner() |
Creates an instance of Virtual |
Method Summary
Modifier and Type | Method and Description |
---|---|
Address |
addressSpace()
Get the address |
Virtual |
bgpCommunities()
Get the bgp |
Sub |
ddosProtectionPlan()
Get the ddos |
Dhcp |
dhcpOptions()
Get the dhcp |
Boolean |
enableDdosProtection()
Get the enable |
Boolean |
enableVmProtection()
Get the enable |
Virtual |
encryption()
Get the encryption property: Indicates if encryption is enabled on virtual network and if VM without encryption is allowed in encrypted VNet. |
String |
etag()
Get the etag property: A unique read-only string that changes whenever the resource is updated. |
Extended |
extendedLocation()
Get the extended |
List<Flow |
flowLogs()
Get the flow |
Integer |
flowTimeoutInMinutes()
Get the flow |
static
Virtual |
fromJson(JsonReader jsonReader)
Reads an instance of Virtual |
String |
id()
Get the id property: Resource ID. |
List<Sub |
ipAllocations()
Get the ip |
String |
name()
Get the name property: The name of the resource. |
Private |
privateEndpointVNetPolicies()
Get the private |
Provisioning |
provisioningState()
Get the provisioning |
String |
resourceGuid()
Get the resource |
List<Subnet |
subnets()
Get the subnets property: A list of subnets in a Virtual Network. |
Json |
toJson(JsonWriter jsonWriter) |
String |
type()
Get the type property: The type of the resource. |
void |
validate()
Validates the instance. |
List<Virtual |
virtualNetworkPeerings()
Get the virtual |
Virtual |
withAddressSpace(AddressSpace addressSpace)
Set the address |
Virtual |
withBgpCommunities(VirtualNetworkBgpCommunities bgpCommunities)
Set the bgp |
Virtual |
withDdosProtectionPlan(SubResource ddosProtectionPlan)
Set the ddos |
Virtual |
withDhcpOptions(DhcpOptions dhcpOptions)
Set the dhcp |
Virtual |
withEnableDdosProtection(Boolean enableDdosProtection)
Set the enable |
Virtual |
withEnableVmProtection(Boolean enableVmProtection)
Set the enable |
Virtual |
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. |
Virtual |
withExtendedLocation(ExtendedLocation extendedLocation)
Set the extended |
Virtual |
withFlowTimeoutInMinutes(Integer flowTimeoutInMinutes)
Set the flow |
Virtual |
withId(String id)
Set the id property: Resource ID. |
Virtual |
withIpAllocations(List<SubResource> ipAllocations)
Set the ip |
Virtual |
withLocation(String location) |
Virtual |
withPrivateEndpointVNetPolicies(PrivateEndpointVNetPolicies privateEndpointVNetPolicies)
Set the private |
Virtual |
withSubnets(List<SubnetInner> subnets)
Set the subnets property: A list of subnets in a Virtual Network. |
Virtual |
withTags(Map<String,String> tags) |
Virtual |
withVirtualNetworkPeerings(List<VirtualNetworkPeeringInner> virtualNetworkPeerings)
Set the virtual |
Methods inherited from ProxyResource
Methods inherited from Resource
Methods inherited from java.lang.Object
Constructor Details
VirtualNetworkInner
public VirtualNetworkInner()
Creates an instance of VirtualNetworkInner 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:
bgpCommunities
public VirtualNetworkBgpCommunities bgpCommunities()
Get the bgpCommunities property: Bgp Communities sent over ExpressRoute with each route corresponding to a prefix in this VNET.
Returns:
ddosProtectionPlan
public SubResource ddosProtectionPlan()
Get the ddosProtectionPlan property: The DDoS protection plan associated with the virtual network.
Returns:
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:
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:
enableVmProtection
public Boolean enableVmProtection()
Get the enableVmProtection property: Indicates if VM protection is enabled for all the subnets in the virtual network.
Returns:
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:
etag
public String etag()
Get the etag property: A unique read-only string that changes whenever the resource is updated.
Returns:
extendedLocation
public ExtendedLocation extendedLocation()
Get the extendedLocation property: The extended location of the virtual network.
Returns:
flowLogs
public List
Get the flowLogs property: A collection of references to flow log resources.
Returns:
flowTimeoutInMinutes
public Integer flowTimeoutInMinutes()
Get the flowTimeoutInMinutes property: The FlowTimeout value (in minutes) for the Virtual Network.
Returns:
fromJson
public static VirtualNetworkInner fromJson(JsonReader jsonReader)
Reads an instance of VirtualNetworkInner from the JsonReader.
Parameters:
Returns:
Throws:
id
public String id()
Get the id property: Resource ID.
Overrides:
VirtualNetworkInner.id()Returns:
ipAllocations
public List
Get the ipAllocations property: Array of IpAllocation which reference this VNET.
Returns:
name
public String name()
Get the name property: The name of the resource.
Overrides:
VirtualNetworkInner.name()Returns:
privateEndpointVNetPolicies
public PrivateEndpointVNetPolicies privateEndpointVNetPolicies()
Get the privateEndpointVNetPolicies property: Private Endpoint VNet Policies.
Returns:
provisioningState
public ProvisioningState provisioningState()
Get the provisioningState property: The provisioning state of the virtual network resource.
Returns:
resourceGuid
public String resourceGuid()
Get the resourceGuid property: The resourceGuid property of the Virtual Network resource.
Returns:
subnets
public List
Get the subnets property: A list of subnets in a Virtual Network.
Returns:
toJson
public JsonWriter toJson(JsonWriter jsonWriter)
Overrides:
VirtualNetworkInner.toJson(JsonWriter jsonWriter)Parameters:
Throws:
type
public String type()
Get the type property: The type of the resource.
Overrides:
VirtualNetworkInner.type()Returns:
validate
public void validate()
Validates the instance.
virtualNetworkPeerings
public List
Get the virtualNetworkPeerings property: A list of peerings in a Virtual Network.
Returns:
withAddressSpace
public VirtualNetworkInner withAddressSpace(AddressSpace addressSpace)
Set the addressSpace property: The AddressSpace that contains an array of IP address ranges that can be used by subnets.
Parameters:
Returns:
withBgpCommunities
public VirtualNetworkInner withBgpCommunities(VirtualNetworkBgpCommunities bgpCommunities)
Set the bgpCommunities property: Bgp Communities sent over ExpressRoute with each route corresponding to a prefix in this VNET.
Parameters:
Returns:
withDdosProtectionPlan
public VirtualNetworkInner withDdosProtectionPlan(SubResource ddosProtectionPlan)
Set the ddosProtectionPlan property: The DDoS protection plan associated with the virtual network.
Parameters:
Returns:
withDhcpOptions
public VirtualNetworkInner 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:
Returns:
withEnableDdosProtection
public VirtualNetworkInner 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:
Returns:
withEnableVmProtection
public VirtualNetworkInner withEnableVmProtection(Boolean enableVmProtection)
Set the enableVmProtection property: Indicates if VM protection is enabled for all the subnets in the virtual network.
Parameters:
Returns:
withEncryption
public VirtualNetworkInner 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:
Returns:
withExtendedLocation
public VirtualNetworkInner withExtendedLocation(ExtendedLocation extendedLocation)
Set the extendedLocation property: The extended location of the virtual network.
Parameters:
Returns:
withFlowTimeoutInMinutes
public VirtualNetworkInner withFlowTimeoutInMinutes(Integer flowTimeoutInMinutes)
Set the flowTimeoutInMinutes property: The FlowTimeout value (in minutes) for the Virtual Network.
Parameters:
Returns:
withId
public VirtualNetworkInner withId(String id)
Set the id property: Resource ID.
Parameters:
Returns:
withIpAllocations
public VirtualNetworkInner withIpAllocations(List
Set the ipAllocations property: Array of IpAllocation which reference this VNET.
Parameters:
Returns:
withLocation
public VirtualNetworkInner withLocation(String location)
Overrides:
VirtualNetworkInner.withLocation(String location)Parameters:
withPrivateEndpointVNetPolicies
public VirtualNetworkInner withPrivateEndpointVNetPolicies(PrivateEndpointVNetPolicies privateEndpointVNetPolicies)
Set the privateEndpointVNetPolicies property: Private Endpoint VNet Policies.
Parameters:
Returns:
withSubnets
public VirtualNetworkInner withSubnets(List
Set the subnets property: A list of subnets in a Virtual Network.
Parameters:
Returns:
withTags
public VirtualNetworkInner withTags(Map
Overrides:
VirtualNetworkInner.withTags(Map<String,String> tags)Parameters:
withVirtualNetworkPeerings
public VirtualNetworkInner withVirtualNetworkPeerings(List
Set the virtualNetworkPeerings property: A list of peerings in a Virtual Network.
Parameters:
Returns:
Applies to
Azure SDK for Java