@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2020-11-06T08:58:17.566Z[Etc/UTC]") public class V1NetworkPolicyPort extends Object
Modifier and Type | Field and Description |
---|---|
static String |
SERIALIZED_NAME_PORT |
static String |
SERIALIZED_NAME_PROTOCOL |
Constructor and Description |
---|
V1NetworkPolicyPort() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
IntOrString |
getPort()
IntOrString is a type that can hold an int32 or a string.
|
String |
getProtocol()
The protocol (TCP, UDP, or SCTP) which traffic must match.
|
int |
hashCode() |
V1NetworkPolicyPort |
port(IntOrString port) |
V1NetworkPolicyPort |
protocol(String protocol) |
void |
setPort(IntOrString port) |
void |
setProtocol(String protocol) |
String |
toString() |
public static final String SERIALIZED_NAME_PORT
public static final String SERIALIZED_NAME_PROTOCOL
public V1NetworkPolicyPort port(IntOrString port)
@Nullable public IntOrString getPort()
public void setPort(IntOrString port)
public V1NetworkPolicyPort protocol(String protocol)
@Nullable public String getProtocol()
public void setProtocol(String protocol)
Copyright © 2020. All rights reserved.