public final class Port extends Object
| Constructor and Description |
|---|
Port() |
| Modifier and Type | Method and Description |
|---|---|
int |
port()
Get the port property: The port number.
|
ContainerGroupNetworkProtocol |
protocol()
Get the protocol property: The protocol associated with the port.
|
void |
validate()
Validates the instance.
|
Port |
withPort(int port)
Set the port property: The port number.
|
Port |
withProtocol(ContainerGroupNetworkProtocol protocol)
Set the protocol property: The protocol associated with the port.
|
public ContainerGroupNetworkProtocol protocol()
public Port withProtocol(ContainerGroupNetworkProtocol protocol)
protocol - the protocol value to set.public int port()
public Port withPort(int port)
port - the port value to set.public void validate()
IllegalArgumentException - thrown if the instance is not valid.Copyright © 2021 Microsoft Corporation. All rights reserved.