public class Port extends Object
| Constructor and Description |
|---|
Port() |
| Modifier and Type | Method and Description |
|---|---|
int |
port()
Get the port number.
|
ContainerGroupNetworkProtocol |
protocol()
Get the protocol associated with the port.
|
Port |
withPort(int port)
Set the port number.
|
Port |
withProtocol(ContainerGroupNetworkProtocol protocol)
Set the protocol associated with the port.
|
public ContainerGroupNetworkProtocol protocol()
public Port withProtocol(ContainerGroupNetworkProtocol protocol)
protocol - the protocol value to setpublic int port()
public Port withPort(int port)
port - the port value to set/**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*/