你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
HasSubnet Interface
public interface HasSubnet
An interface representing a model's ability to reference a subnet by its name and network's ID.
Method Summary
Modifier and Type | Method and Description |
---|---|
abstract String |
networkId()
Gets the resource ID of the virtual network whose subnet is associated with this resource. |
abstract String |
subnetName()
Gets the name of the subnet associated with this resource. |
Method Details
networkId
public abstract String networkId()
Gets the resource ID of the virtual network whose subnet is associated with this resource.
Returns:
the resource ID of the virtual network whose subnet is associated with this resource
subnetName
public abstract String subnetName()
Gets the name of the subnet associated with this resource.
Returns:
the name of the subnet associated with this resource