Class L4RedirectRule
- java.lang.Object
-
- io.fabric8.openshift.api.model.operator.network.v1.L4RedirectRule
-
- All Implemented Interfaces:
io.fabric8.kubernetes.api.builder.Editable<L4RedirectRuleBuilder>,io.fabric8.kubernetes.api.model.KubernetesResource,Serializable
@Generated("io.fabric8.kubernetes.schema.generator.model.ModelGenerator") public class L4RedirectRule extends Object implements io.fabric8.kubernetes.api.builder.Editable<L4RedirectRuleBuilder>, io.fabric8.kubernetes.api.model.KubernetesResource
L4RedirectRule defines a DNAT redirection from a given port to a destination IP and port.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description L4RedirectRule()No args constructor for use in serializationL4RedirectRule(String destinationIP, Integer port, String protocol, Integer targetPort)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description L4RedirectRuleBuilderedit()Map<String,Object>getAdditionalProperties()StringgetDestinationIP()IP specifies the remote destination's IP address.IntegergetPort()port is the port number to which clients should send traffic to be redirected.StringgetProtocol()protocol can be TCP, SCTP or UDP.IntegergetTargetPort()targetPort allows specifying the port number on the remote destination to which the traffic gets redirected to.voidsetAdditionalProperties(Map<String,Object> additionalProperties)voidsetAdditionalProperty(String name, Object value)voidsetDestinationIP(String destinationIP)IP specifies the remote destination's IP address.voidsetPort(Integer port)port is the port number to which clients should send traffic to be redirected.voidsetProtocol(String protocol)protocol can be TCP, SCTP or UDP.voidsetTargetPort(Integer targetPort)targetPort allows specifying the port number on the remote destination to which the traffic gets redirected to.L4RedirectRuleBuildertoBuilder()
-
-
-
Method Detail
-
getDestinationIP
public String getDestinationIP()
IP specifies the remote destination's IP address. Can be IPv4 or IPv6.
-
setDestinationIP
public void setDestinationIP(String destinationIP)
IP specifies the remote destination's IP address. Can be IPv4 or IPv6.
-
getPort
public Integer getPort()
port is the port number to which clients should send traffic to be redirected.
-
setPort
public void setPort(Integer port)
port is the port number to which clients should send traffic to be redirected.
-
getProtocol
public String getProtocol()
protocol can be TCP, SCTP or UDP.
-
setProtocol
public void setProtocol(String protocol)
protocol can be TCP, SCTP or UDP.
-
getTargetPort
public Integer getTargetPort()
targetPort allows specifying the port number on the remote destination to which the traffic gets redirected to. If unspecified, the value from "Port" is used.
-
setTargetPort
public void setTargetPort(Integer targetPort)
targetPort allows specifying the port number on the remote destination to which the traffic gets redirected to. If unspecified, the value from "Port" is used.
-
edit
public L4RedirectRuleBuilder edit()
- Specified by:
editin interfaceio.fabric8.kubernetes.api.builder.Editable<L4RedirectRuleBuilder>
-
toBuilder
public L4RedirectRuleBuilder toBuilder()
-
-