Interface Subnet
-
- All Superinterfaces:
ChildResource<Network>,HasInnerModel<SubnetInner>,HasName,HasParent<Network>,Indexable
public interface Subnet extends HasInnerModel<SubnetInner>, ChildResource<Network>
A client-side representation of a subnet of a virtual network.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interfaceSubnet.Definition<ParentT>The entirety of a Subnet definition.static interfaceSubnet.DefinitionStagesGrouping of subnet definition stages.static interfaceSubnet.UpdateThe entirety of a subnet update as part of a network update.static interfaceSubnet.UpdateDefinition<ParentT>The entirety of a subnet definition as part of a virtual network update.static interfaceSubnet.UpdateDefinitionStagesGrouping of subnet definition stages applicable as part of a virtual network update.static interfaceSubnet.UpdateStagesGrouping of subnet update stages.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description StringaddressPrefix()NetworkSecurityGroupgetNetworkSecurityGroup()RouteTablegetRouteTable()Stringid()Set<String>listAvailablePrivateIPAddresses()Collection<NicIpConfiguration>listNetworkInterfaceIPConfigurations()intnetworkInterfaceIPConfigurationCount()StringnetworkSecurityGroupId()StringrouteTableId()Map<ServiceEndpointType,List<com.azure.core.management.Region>>servicesWithAccess()-
Methods inherited from interface com.azure.resourcemanager.resources.fluentcore.model.HasInnerModel
innerModel
-
Methods inherited from interface com.azure.resourcemanager.resources.fluentcore.arm.models.HasName
name
-
-
-
-
Method Detail
-
listNetworkInterfaceIPConfigurations
Collection<NicIpConfiguration> listNetworkInterfaceIPConfigurations()
- Returns:
- network interface IP configurations that are associated with this subnet
Note that this call may result in multiple calls to Azure to fetch all the referenced interfaces each time it is invoked.
-
listAvailablePrivateIPAddresses
Set<String> listAvailablePrivateIPAddresses()
- Returns:
- available private IP addresses within this network
-
networkInterfaceIPConfigurationCount
int networkInterfaceIPConfigurationCount()
- Returns:
- number of network interface IP configurations associated with this subnet
-
addressPrefix
String addressPrefix()
- Returns:
- the address space prefix, in CIDR notation, assigned to this subnet
-
getNetworkSecurityGroup
NetworkSecurityGroup getNetworkSecurityGroup()
- Returns:
- the network security group associated with this subnet, if any
Note that this method will result in a call to Azure each time it is invoked.
-
networkSecurityGroupId
String networkSecurityGroupId()
- Returns:
- the resource ID of the network security group associated with this subnet, if any
-
getRouteTable
RouteTable getRouteTable()
- Returns:
- the route table associated with this subnet, if any
Note that this method will result in a call to Azure each time it is invoked.
-
routeTableId
String routeTableId()
- Returns:
- the resource ID of the route table associated with this subnet, if any
-
servicesWithAccess
Map<ServiceEndpointType,List<com.azure.core.management.Region>> servicesWithAccess()
- Returns:
- the services that has access to the subnet.
-
id
String id()
- Returns:
- the ID of the subnet.
-
-