Class IngressSpec.Builder
- java.lang.Object
-
- com.marcnuri.yakc.model.io.k8s.api.extensions.v1beta1.IngressSpec.Builder
-
- Enclosing class:
- IngressSpec
public static class IngressSpec.Builder extends java.lang.Object
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IngressSpec.Builder
addToRules(IngressRule addToRules)
IngressSpec.Builder
addToTls(IngressTLS addToTls)
IngressSpec.Builder
backend(IngressBackend backend)
IngressSpec
build()
IngressSpec.Builder
clearRules()
IngressSpec.Builder
clearTls()
IngressSpec.Builder
ingressClassName(java.lang.String ingressClassName)
IngressClassName is the name of the IngressClass cluster resource.IngressSpec.Builder
rules(java.util.Collection<? extends IngressRule> rules)
IngressSpec.Builder
tls(java.util.Collection<? extends IngressTLS> tls)
java.lang.String
toString()
-
-
-
Method Detail
-
backend
public IngressSpec.Builder backend(IngressBackend backend)
- Returns:
this
.
-
ingressClassName
public IngressSpec.Builder ingressClassName(java.lang.String ingressClassName)
IngressClassName is the name of the IngressClass cluster resource. The associated IngressClass defines which controller will implement the resource. This replaces the deprecated `kubernetes.io/ingress.class` annotation. For backwards compatibility, when that annotation is set, it must be given precedence over this field. The controller may emit a warning if the field and annotation have different values. Implementations of this API should ignore Ingresses without a class specified. An IngressClass resource may be marked as default, which can be used to set a default value for this field. For more information, refer to the IngressClass documentation.- Returns:
this
.
-
addToRules
public IngressSpec.Builder addToRules(IngressRule addToRules)
-
rules
public IngressSpec.Builder rules(java.util.Collection<? extends IngressRule> rules)
-
clearRules
public IngressSpec.Builder clearRules()
-
addToTls
public IngressSpec.Builder addToTls(IngressTLS addToTls)
-
tls
public IngressSpec.Builder tls(java.util.Collection<? extends IngressTLS> tls)
-
clearTls
public IngressSpec.Builder clearTls()
-
build
public IngressSpec build()
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-