Class V1IngressSpec

java.lang.Object
io.kubernetes.client.openapi.models.V1IngressSpec

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2023-06-18T15:05:57.863601Z[Etc/UTC]") public class V1IngressSpec extends Object
IngressSpec describes the Ingress the user wishes to exist.
  • Field Details

  • Constructor Details

    • V1IngressSpec

      public V1IngressSpec()
  • Method Details

    • defaultBackend

      public V1IngressSpec defaultBackend(V1IngressBackend defaultBackend)
    • getDefaultBackend

      @Nullable public V1IngressBackend getDefaultBackend()
      Get defaultBackend
      Returns:
      defaultBackend
    • setDefaultBackend

      public void setDefaultBackend(V1IngressBackend defaultBackend)
    • ingressClassName

      public V1IngressSpec ingressClassName(String ingressClassName)
    • getIngressClassName

      @Nullable public String getIngressClassName()
      ingressClassName is the name of an IngressClass cluster resource. Ingress controller implementations use this field to know whether they should be serving this Ingress resource, by a transitive connection (controller -> IngressClass -> Ingress resource). Although the `kubernetes.io/ingress.class` annotation (simple constant name) was never formally defined, it was widely supported by Ingress controllers to create a direct binding between Ingress controller and Ingress resources. Newly created Ingress resources should prefer using the field. However, even though the annotation is officially deprecated, for backwards compatibility reasons, ingress controllers should still honor that annotation if present.
      Returns:
      ingressClassName
    • setIngressClassName

      public void setIngressClassName(String ingressClassName)
    • rules

      public V1IngressSpec rules(List<V1IngressRule> rules)
    • addRulesItem

      public V1IngressSpec addRulesItem(V1IngressRule rulesItem)
    • getRules

      @Nullable public List<V1IngressRule> getRules()
      rules is a list of host rules used to configure the Ingress. If unspecified, or no rule matches, all traffic is sent to the default backend.
      Returns:
      rules
    • setRules

      public void setRules(List<V1IngressRule> rules)
    • tls

      public V1IngressSpec tls(List<V1IngressTLS> tls)
    • addTlsItem

      public V1IngressSpec addTlsItem(V1IngressTLS tlsItem)
    • getTls

      @Nullable public List<V1IngressTLS> getTls()
      tls represents the TLS configuration. Currently the Ingress only supports a single TLS port, 443. If multiple members of this list specify different hosts, they will be multiplexed on the same port according to the hostname specified through the SNI TLS extension, if the ingress controller fulfilling the ingress supports SNI.
      Returns:
      tls
    • setTls

      public void setTls(List<V1IngressTLS> tls)
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object