All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.k8s.api.networking.v1.IngressPortStatus Maven / Gradle / Ivy

package io.k8s.api.networking.v1;

import java.lang.Long;
import java.lang.String;

/**
 * IngressPortStatus represents the error condition of a service port
 */
public class IngressPortStatus {
  public String error;

  public Long port;

  public String protocol;

  /**
   * error is to record the problem with the service port The format of the error shall comply with the following rules: - built-in error values shall be specified in this file and those shall use
   *   CamelCase names
   * - cloud provider specific error values must have names that comply with the
   *   format foo.example.com/CamelCase.
   */
  public IngressPortStatus error(String error) {
    this.error = error;
    return this;
  }

  /**
   * port is the port number of the ingress port.
   */
  public IngressPortStatus port(Long port) {
    this.port = port;
    return this;
  }

  /**
   * protocol is the protocol of the ingress port. The supported values are: "TCP", "UDP", "SCTP"
   */
  public IngressPortStatus protocol(String protocol) {
    this.protocol = protocol;
    return this;
  }

  public static IngressPortStatus ingressPortStatus() {
    return new IngressPortStatus();
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy