Class NetworkPolicyPort
- java.lang.Object
-
- io.fabric8.kubernetes.api.model.networking.v1.NetworkPolicyPort
-
- All Implemented Interfaces:
io.fabric8.kubernetes.api.builder.Editable<NetworkPolicyPortBuilder>,io.fabric8.kubernetes.api.model.KubernetesResource,Serializable
@Generated("io.fabric8.kubernetes.schema.generator.model.ModelGenerator") public class NetworkPolicyPort extends Object implements io.fabric8.kubernetes.api.builder.Editable<NetworkPolicyPortBuilder>, io.fabric8.kubernetes.api.model.KubernetesResource
NetworkPolicyPort describes a port to allow traffic on- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description NetworkPolicyPort()No args constructor for use in serializationNetworkPolicyPort(Integer endPort, io.fabric8.kubernetes.api.model.IntOrString port, String protocol)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description NetworkPolicyPortBuilderedit()Map<String,Object>getAdditionalProperties()IntegergetEndPort()endPort indicates that the range of ports from port to endPort if set, inclusive, should be allowed by the policy.io.fabric8.kubernetes.api.model.IntOrStringgetPort()NetworkPolicyPort describes a port to allow traffic onStringgetProtocol()protocol represents the protocol (TCP, UDP, or SCTP) which traffic must match.voidsetAdditionalProperties(Map<String,Object> additionalProperties)voidsetAdditionalProperty(String name, Object value)voidsetEndPort(Integer endPort)endPort indicates that the range of ports from port to endPort if set, inclusive, should be allowed by the policy.voidsetPort(io.fabric8.kubernetes.api.model.IntOrString port)NetworkPolicyPort describes a port to allow traffic onvoidsetProtocol(String protocol)protocol represents the protocol (TCP, UDP, or SCTP) which traffic must match.NetworkPolicyPortBuildertoBuilder()
-
-
-
Method Detail
-
getEndPort
public Integer 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.
-
setEndPort
public void setEndPort(Integer endPort)
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.
-
getPort
public io.fabric8.kubernetes.api.model.IntOrString getPort()
NetworkPolicyPort describes a port to allow traffic on
-
setPort
public void setPort(io.fabric8.kubernetes.api.model.IntOrString port)
NetworkPolicyPort describes a port to allow traffic on
-
getProtocol
public String getProtocol()
protocol represents the protocol (TCP, UDP, or SCTP) which traffic must match. If not specified, this field defaults to TCP.
-
setProtocol
public void setProtocol(String protocol)
protocol represents the protocol (TCP, UDP, or SCTP) which traffic must match. If not specified, this field defaults to TCP.
-
edit
public NetworkPolicyPortBuilder edit()
- Specified by:
editin interfaceio.fabric8.kubernetes.api.builder.Editable<NetworkPolicyPortBuilder>
-
toBuilder
public NetworkPolicyPortBuilder toBuilder()
-
-