### YamlMime:JavaType uid: "com.azure.resourcemanager.network.models.Subnet" fullName: "com.azure.resourcemanager.network.models.Subnet" name: "Subnet" nameWithType: "Subnet" summary: "A client-side representation of a subnet of a virtual network." syntax: "public interface **Subnet**
extends <>, <>" methods: - uid: "com.azure.resourcemanager.network.models.Subnet.addressPrefix()" fullName: "com.azure.resourcemanager.network.models.Subnet.addressPrefix()" name: "addressPrefix()" nameWithType: "Subnet.addressPrefix()" summary: "Gets the address space prefix, in CIDR notation, assigned to this subnet." modifiers: - "abstract" syntax: "public abstract String addressPrefix()" desc: "Gets the address space prefix, in CIDR notation, assigned to this subnet.\n\nUse if this subnet has multiple prefixes." returns: description: "the address space prefix, in CIDR notation, assigned to this subnet" type: "String" - uid: "com.azure.resourcemanager.network.models.Subnet.addressPrefixes()" fullName: "com.azure.resourcemanager.network.models.Subnet.addressPrefixes()" name: "addressPrefixes()" nameWithType: "Subnet.addressPrefixes()" summary: "Gets address space prefixes, in CIDR notation, assigned to this subnet." modifiers: - "abstract" syntax: "public abstract List addressPrefixes()" desc: "Gets address space prefixes, in CIDR notation, assigned to this subnet.\n\nUse if this subnet is created/updated using that property." returns: description: "address space prefixes, in CIDR notation, assigned to this subnet" type: "List<String>" - uid: "com.azure.resourcemanager.network.models.Subnet.getNetworkSecurityGroup()" fullName: "com.azure.resourcemanager.network.models.Subnet.getNetworkSecurityGroup()" name: "getNetworkSecurityGroup()" nameWithType: "Subnet.getNetworkSecurityGroup()" modifiers: - "abstract" syntax: "public abstract NetworkSecurityGroup getNetworkSecurityGroup()" returns: description: "the network security group associated with this subnet, if any\n

Note that this method will result in a call to Azure each time it is invoked." type: "" - uid: "com.azure.resourcemanager.network.models.Subnet.getRouteTable()" fullName: "com.azure.resourcemanager.network.models.Subnet.getRouteTable()" name: "getRouteTable()" nameWithType: "Subnet.getRouteTable()" modifiers: - "abstract" syntax: "public abstract RouteTable getRouteTable()" returns: description: "the route table associated with this subnet, if any\n

Note that this method will result in a call to Azure each time it is invoked." type: "" - uid: "com.azure.resourcemanager.network.models.Subnet.id()" fullName: "com.azure.resourcemanager.network.models.Subnet.id()" name: "id()" nameWithType: "Subnet.id()" modifiers: - "abstract" syntax: "public abstract String id()" returns: description: "the ID of the subnet." type: "String" - uid: "com.azure.resourcemanager.network.models.Subnet.listAvailablePrivateIPAddresses()" fullName: "com.azure.resourcemanager.network.models.Subnet.listAvailablePrivateIPAddresses()" name: "listAvailablePrivateIPAddresses()" nameWithType: "Subnet.listAvailablePrivateIPAddresses()" summary: "List available private IP addresses within this subnet." modifiers: - "abstract" syntax: "public abstract Set listAvailablePrivateIPAddresses()" desc: "List available private IP addresses within this subnet.\n\n```java\nStarting IPs of the address prefixes are not returned, due to:\n 1. They are usually reserved by platform(e.g. for gateway usage).\n 2. For backward-compatibility.\n```" returns: description: "available private IP addresses within this network" type: "Set<String>" - uid: "com.azure.resourcemanager.network.models.Subnet.listNetworkInterfaceIPConfigurations()" fullName: "com.azure.resourcemanager.network.models.Subnet.listNetworkInterfaceIPConfigurations()" name: "listNetworkInterfaceIPConfigurations()" nameWithType: "Subnet.listNetworkInterfaceIPConfigurations()" modifiers: - "abstract" syntax: "public abstract Collection listNetworkInterfaceIPConfigurations()" returns: description: "network interface IP configurations that are associated with this subnet\n

Note that this call may result in multiple calls to Azure to fetch all the referenced interfaces each time\n it is invoked." type: "Collection<>" - uid: "com.azure.resourcemanager.network.models.Subnet.natGatewayId()" fullName: "com.azure.resourcemanager.network.models.Subnet.natGatewayId()" name: "natGatewayId()" nameWithType: "Subnet.natGatewayId()" modifiers: - "abstract" syntax: "public abstract String natGatewayId()" returns: description: "the resource ID of the NAT gateway associated with this subnet, if any" type: "String" - uid: "com.azure.resourcemanager.network.models.Subnet.networkInterfaceIPConfigurationCount()" fullName: "com.azure.resourcemanager.network.models.Subnet.networkInterfaceIPConfigurationCount()" name: "networkInterfaceIPConfigurationCount()" nameWithType: "Subnet.networkInterfaceIPConfigurationCount()" modifiers: - "abstract" syntax: "public abstract int networkInterfaceIPConfigurationCount()" returns: description: "number of network interface IP configurations associated with this subnet" type: "" - uid: "com.azure.resourcemanager.network.models.Subnet.networkSecurityGroupId()" fullName: "com.azure.resourcemanager.network.models.Subnet.networkSecurityGroupId()" name: "networkSecurityGroupId()" nameWithType: "Subnet.networkSecurityGroupId()" modifiers: - "abstract" syntax: "public abstract String networkSecurityGroupId()" returns: description: "the resource ID of the network security group associated with this subnet, if any" type: "String" - uid: "com.azure.resourcemanager.network.models.Subnet.routeTableId()" fullName: "com.azure.resourcemanager.network.models.Subnet.routeTableId()" name: "routeTableId()" nameWithType: "Subnet.routeTableId()" modifiers: - "abstract" syntax: "public abstract String routeTableId()" returns: description: "the resource ID of the route table associated with this subnet, if any" type: "String" - uid: "com.azure.resourcemanager.network.models.Subnet.servicesWithAccess()" fullName: "com.azure.resourcemanager.network.models.Subnet.servicesWithAccess()" name: "servicesWithAccess()" nameWithType: "Subnet.servicesWithAccess()" modifiers: - "abstract" syntax: "public abstract Map> servicesWithAccess()" returns: description: "the services that has access to the subnet." type: "Map<,List<>>" type: "interface" desc: "A client-side representation of a subnet of a virtual network." implements: - "<>" - "<>" metadata: {} package: "com.azure.resourcemanager.network.models" artifact: com.azure.resourcemanager:azure-resourcemanager-network:2.44.0