Port Class
- java.
lang. Object - com.
azure. resourcemanager. containerinstance. models. Port
- com.
Implements
public final class Port
implements JsonSerializable<Port>
The port exposed on the container group.
Constructor | Description |
---|---|
Port() |
Creates an instance of Port class. |
Modifier and Type | Method and Description |
---|---|
static Port |
from Reads an instance of Port from the Json |
int |
port()
Get the port property: The port number. |
Container |
protocol()
Get the protocol property: The protocol associated with the port. |
Json |
to |
void |
validate()
Validates the instance. |
Port |
with Set the port property: The port number. |
Port |
with Set the protocol property: The protocol associated with the port. |
Methods inherited from java.lang.Object
Port
public Port()
Creates an instance of Port class.
fromJson
public static Port fromJson(JsonReader jsonReader)
Reads an instance of Port from the JsonReader.
Parameters:
Returns:
Throws:
port
public int port()
Get the port property: The port number.
Returns:
protocol
public ContainerGroupNetworkProtocol protocol()
Get the protocol property: The protocol associated with the port.
Returns:
toJson
validate
public void validate()
Validates the instance.
withPort
public Port withPort(int port)
Set the port property: The port number.
Parameters:
Returns:
withProtocol
public Port withProtocol(ContainerGroupNetworkProtocol protocol)
Set the protocol property: The protocol associated with the port.
Parameters:
Returns:
Azure SDK for Java-feedback
Azure SDK for Java is een open source project. Selecteer een koppeling om feedback te geven: