Class V1NetworkPolicyPort
java.lang.Object
io.micronaut.kubernetes.client.openapi.model.V1NetworkPolicyPort
@Generated("io.micronaut.openapi.generator.JavaMicronautClientCodegen")
public class V1NetworkPolicyPort
extends Object
NetworkPolicyPort describes a port to allow traffic on
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionSet endPort in a chainable fashion.boolean
endPort indicates that the range of ports from port to endPort if set, inclusive, should be allowed by the policy.getPort()
IntOrString is a type that can hold an int32 or a string.protocol represents the protocol (TCP, UDP, or SCTP) which traffic must match.int
hashCode()
Set port in a chainable fashion.Set protocol in a chainable fashion.void
setEndPort
(Integer endPort) Set the endPort property valuevoid
Set the port property valuevoid
setProtocol
(String protocol) Set the protocol property valuetoString()
-
Field Details
-
JSON_PROPERTY_END_PORT
- See Also:
-
JSON_PROPERTY_PORT
- See Also:
-
JSON_PROPERTY_PROTOCOL
- See Also:
-
-
Constructor Details
-
V1NetworkPolicyPort
public V1NetworkPolicyPort()
-
-
Method Details
-
getEndPort
endPort indicates that the range of ports from port to endPort if set, inclusive, should be allowed by the policy. This field cannot be defined if the port field is not defined or if the port field is defined as a named (string) port. The endPort must be equal or greater than port.- Returns:
- the endPort property value
-
setEndPort
Set the endPort property value -
endPort
Set endPort in a chainable fashion.- Returns:
- The same instance of V1NetworkPolicyPort for chaining.
-
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:
- the port property value
-
setPort
Set the port property value -
port
Set port in a chainable fashion.- Returns:
- The same instance of V1NetworkPolicyPort for chaining.
-
getProtocol
protocol represents the protocol (TCP, UDP, or SCTP) which traffic must match. If not specified, this field defaults to TCP.- Returns:
- the protocol property value
-
setProtocol
Set the protocol property value -
protocol
Set protocol in a chainable fashion.- Returns:
- The same instance of V1NetworkPolicyPort for chaining.
-
equals
-
hashCode
public int hashCode() -
toString
-