Class V1IngressSpec
java.lang.Object
io.micronaut.kubernetes.client.openapi.model.V1IngressSpec
@Generated("io.micronaut.openapi.generator.JavaMicronautClientCodegen")
public class V1IngressSpec
extends Object
IngressSpec describes the Ingress the user wishes to exist.
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaddrulesItem
(V1IngressRule rulesItem) Add an item to the rules property in a chainable fashion.addtlsItem
(V1IngressTLS tlsItem) Add an item to the tls property in a chainable fashion.defaultBackend
(V1IngressBackend defaultBackend) Set defaultBackend in a chainable fashion.boolean
ingressClassName is the name of an IngressClass cluster resource.List<@Valid V1IngressRule>
getRules()
rules is a list of host rules used to configure the Ingress.List<@Valid V1IngressTLS>
getTls()
tls represents the TLS configuration.int
hashCode()
ingressClassName
(String ingressClassName) Set ingressClassName in a chainable fashion.rules
(List<@Valid V1IngressRule> rules) Set rules in a chainable fashion.void
setDefaultBackend
(V1IngressBackend defaultBackend) Set the defaultBackend property valuevoid
setIngressClassName
(String ingressClassName) Set the ingressClassName property valuevoid
setRules
(List<@Valid V1IngressRule> rules) Set the rules property valuevoid
setTls
(List<@Valid V1IngressTLS> tls) Set the tls property valuetls
(List<@Valid V1IngressTLS> tls) Set tls in a chainable fashion.toString()
-
Field Details
-
JSON_PROPERTY_DEFAULT_BACKEND
- See Also:
-
JSON_PROPERTY_INGRESS_CLASS_NAME
- See Also:
-
JSON_PROPERTY_RULES
- See Also:
-
JSON_PROPERTY_TLS
- See Also:
-
-
Constructor Details
-
V1IngressSpec
public V1IngressSpec()
-
-
Method Details
-
getDefaultBackend
- Returns:
- the defaultBackend property value
-
setDefaultBackend
Set the defaultBackend property value- Parameters:
defaultBackend
- property value to set
-
defaultBackend
Set defaultBackend in a chainable fashion.- Returns:
- The same instance of V1IngressSpec for chaining.
-
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:
- the ingressClassName property value
-
setIngressClassName
Set the ingressClassName property value- Parameters:
ingressClassName
- property value to set
-
ingressClassName
Set ingressClassName in a chainable fashion.- Returns:
- The same instance of V1IngressSpec for chaining.
-
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:
- the rules property value
-
setRules
Set the rules property value- Parameters:
rules
- property value to set
-
rules
Set rules in a chainable fashion.- Returns:
- The same instance of V1IngressSpec for chaining.
-
addrulesItem
Add an item to the rules property in a chainable fashion.- Returns:
- The same instance of V1IngressSpec for chaining.
-
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:
- the tls property value
-
setTls
Set the tls property value- Parameters:
tls
- property value to set
-
tls
Set tls in a chainable fashion.- Returns:
- The same instance of V1IngressSpec for chaining.
-
addtlsItem
Add an item to the tls property in a chainable fashion.- Returns:
- The same instance of V1IngressSpec for chaining.
-
equals
-
hashCode
public int hashCode() -
toString
-