Class V1IngressSpec
java.lang.Object
io.kubernetes.client.openapi.models.V1IngressSpec
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2025-02-12T21:15:49.397498Z[Etc/UTC]",
comments="Generator version: 7.6.0")
public class V1IngressSpec
extends Object
IngressSpec describes the Ingress the user wishes to exist.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddRulesItem
(V1IngressRule rulesItem) addTlsItem
(V1IngressTLS tlsItem) defaultBackend
(V1IngressBackend defaultBackend) boolean
static V1IngressSpec
Create an instance of V1IngressSpec given an JSON stringGet defaultBackendingressClassName is the name of an IngressClass cluster resource.getRules()
rules is a list of host rules used to configure the Ingress.getTls()
tls represents the TLS configuration.int
hashCode()
ingressClassName
(String ingressClassName) rules
(List<V1IngressRule> rules) void
setDefaultBackend
(V1IngressBackend defaultBackend) void
setIngressClassName
(String ingressClassName) void
setRules
(List<V1IngressRule> rules) void
setTls
(List<V1IngressTLS> tls) tls
(List<V1IngressTLS> tls) toJson()
Convert an instance of V1IngressSpec to an JSON stringtoString()
static void
validateJsonElement
(com.google.gson.JsonElement jsonElement) Validates the JSON Element and throws an exception if issues found
-
Field Details
-
SERIALIZED_NAME_DEFAULT_BACKEND
- See Also:
-
SERIALIZED_NAME_INGRESS_CLASS_NAME
- See Also:
-
SERIALIZED_NAME_RULES
- See Also:
-
SERIALIZED_NAME_TLS
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
V1IngressSpec
public V1IngressSpec()
-
-
Method Details
-
defaultBackend
-
getDefaultBackend
Get defaultBackend- Returns:
- defaultBackend
-
setDefaultBackend
-
ingressClassName
-
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
-
rules
-
addRulesItem
-
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
-
tls
-
addTlsItem
-
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
-
equals
-
hashCode
public int hashCode() -
toString
-
validateJsonElement
Validates the JSON Element and throws an exception if issues found- Parameters:
jsonElement
- JSON Element- Throws:
IOException
- if the JSON Element is invalid with respect to V1IngressSpec
-
fromJson
Create an instance of V1IngressSpec given an JSON string- Parameters:
jsonString
- JSON string- Returns:
- An instance of V1IngressSpec
- Throws:
IOException
- if the JSON string is invalid with respect to V1IngressSpec
-
toJson
Convert an instance of V1IngressSpec to an JSON string- Returns:
- JSON string
-