Class V1IngressRule
java.lang.Object
io.kubernetes.client.openapi.models.V1IngressRule
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2025-02-12T21:15:49.397498Z[Etc/UTC]",
comments="Generator version: 7.6.0")
public class V1IngressRule
extends Object
IngressRule represents the rules mapping the paths under a specified host to the related backend services. Incoming requests are first evaluated for a host match, then routed to the backend associated with the matching IngressRuleValue.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
static V1IngressRule
Create an instance of V1IngressRule given an JSON stringgetHost()
host is the fully qualified domain name of a network host, as defined by RFC 3986.getHttp()
Get httpint
hashCode()
http
(V1HTTPIngressRuleValue http) void
void
toJson()
Convert an instance of V1IngressRule 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_HOST
- See Also:
-
SERIALIZED_NAME_HTTP
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
V1IngressRule
public V1IngressRule()
-
-
Method Details
-
host
-
getHost
host is the fully qualified domain name of a network host, as defined by RFC 3986. Note the following deviations from the \"host\" part of the URI as defined in RFC 3986: 1. IPs are not allowed. Currently an IngressRuleValue can only apply to the IP in the Spec of the parent Ingress. 2. The `:` delimiter is not respected because ports are not allowed. Currently the port of an Ingress is implicitly :80 for http and :443 for https. Both these may change in the future. Incoming requests are matched against the host before the IngressRuleValue. If the host is unspecified, the Ingress routes all traffic based on the specified IngressRuleValue. host can be \"precise\" which is a domain name without the terminating dot of a network host (e.g. \"foo.bar.com\") or \"wildcard\", which is a domain name prefixed with a single wildcard label (e.g. \"*.foo.com\"). The wildcard character '*' must appear by itself as the first DNS label and matches only a single label. You cannot have a wildcard label by itself (e.g. Host == \"*\"). Requests will be matched against the Host field in the following way: 1. If host is precise, the request matches this rule if the http host header is equal to Host. 2. If host is a wildcard, then the request matches this rule if the http host header is to equal to the suffix (removing the first label) of the wildcard rule.- Returns:
- host
-
setHost
-
http
-
getHttp
Get http- Returns:
- http
-
setHttp
-
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 V1IngressRule
-
fromJson
Create an instance of V1IngressRule given an JSON string- Parameters:
jsonString
- JSON string- Returns:
- An instance of V1IngressRule
- Throws:
IOException
- if the JSON string is invalid with respect to V1IngressRule
-
toJson
Convert an instance of V1IngressRule to an JSON string- Returns:
- JSON string
-