Class 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 Detail

      • L4RedirectRule

        public L4RedirectRule()
        No args constructor for use in serialization
    • 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.
      • getAdditionalProperties

        public Map<String,​Object> getAdditionalProperties()
      • setAdditionalProperty

        public void setAdditionalProperty​(String name,
                                          Object value)
      • setAdditionalProperties

        public void setAdditionalProperties​(Map<String,​Object> additionalProperties)