### YamlMime:JavaType uid: "com.microsoft.azure.management.network.model.HasPort" fullName: "com.microsoft.azure.management.network.model.HasPort" name: "HasPort" nameWithType: "HasPort" summary: "An interface representing a model's ability to have a port number." syntax: "public interface **HasPort**" methods: - uid: "com.microsoft.azure.management.network.model.HasPort.port()" fullName: "com.microsoft.azure.management.network.model.HasPort.port()" name: "port()" nameWithType: "HasPort.port()" modifiers: - "abstract" syntax: "public abstract int port()" returns: description: "the port number" type: "" type: "interface" desc: "An interface representing a model's ability to have a port number." metadata: {} package: "com.microsoft.azure.management.network.model" artifact: com.microsoft.azure:azure-mgmt-network:1.41.4