Package net.stickycode.kuuty.model.v18
Class IoK8sApiNetworkingV1NetworkPolicyPort
- java.lang.Object
-
- net.stickycode.kuuty.model.v18.IoK8sApiNetworkingV1NetworkPolicyPort
-
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2020-11-26T11:01:11.402583+13:00[Pacific/Auckland]") public class IoK8sApiNetworkingV1NetworkPolicyPort extends Object
NetworkPolicyPort describes a port to allow traffic on
-
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_PORTstatic StringJSON_PROPERTY_PROTOCOL
-
Constructor Summary
Constructors Constructor Description IoK8sApiNetworkingV1NetworkPolicyPort()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)StringgetPort()IntOrString is a type that can hold an int32 or a string.StringgetProtocol()The protocol (TCP, UDP, or SCTP) which traffic must match.inthashCode()IoK8sApiNetworkingV1NetworkPolicyPortport(String port)IoK8sApiNetworkingV1NetworkPolicyPortprotocol(String protocol)voidsetPort(String port)voidsetProtocol(String protocol)StringtoString()
-
-
-
Field Detail
-
JSON_PROPERTY_PORT
public static final String JSON_PROPERTY_PORT
- See Also:
- Constant Field Values
-
JSON_PROPERTY_PROTOCOL
public static final String JSON_PROPERTY_PROTOCOL
- See Also:
- Constant Field Values
-
-
Method Detail
-
port
public IoK8sApiNetworkingV1NetworkPolicyPort port(String port)
-
getPort
@Nullable public String getPort()
IntOrString is a type that can hold an int32 or a string. When used in JSON or YAML marshalling and unmarshalling, it produces or consumes the inner type. This allows you to have, for example, a JSON field that can accept a name or number.- Returns:
- port
-
setPort
public void setPort(String port)
-
protocol
public IoK8sApiNetworkingV1NetworkPolicyPort protocol(String protocol)
-
getProtocol
@Nullable public String getProtocol()
The protocol (TCP, UDP, or SCTP) which traffic must match. If not specified, this field defaults to TCP.- Returns:
- protocol
-
setProtocol
public void setProtocol(String protocol)
-
-