public class V1beta1NetworkPolicyPort extends Object
Constructor and Description |
---|
V1beta1NetworkPolicyPort() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
IntOrString |
getPort()
If specified, the port on the given protocol.
|
String |
getProtocol()
Optional.
|
int |
hashCode() |
V1beta1NetworkPolicyPort |
port(IntOrString port) |
V1beta1NetworkPolicyPort |
protocol(String protocol) |
void |
setPort(IntOrString port) |
void |
setProtocol(String protocol) |
String |
toString() |
public V1beta1NetworkPolicyPort port(IntOrString port)
public IntOrString getPort()
public void setPort(IntOrString port)
public V1beta1NetworkPolicyPort protocol(String protocol)
public String getProtocol()
public void setProtocol(String protocol)
Copyright © 2019. All rights reserved.