Class V1LoadBalancerIngress
java.lang.Object
io.kubernetes.client.openapi.models.V1LoadBalancerIngress
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2025-02-12T21:15:49.397498Z[Etc/UTC]",
comments="Generator version: 7.6.0")
public class V1LoadBalancerIngress
extends Object
LoadBalancerIngress represents the status of a load-balancer ingress point: traffic intended for the service should be sent to an ingress point.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddPortsItem
(V1PortStatus portsItem) boolean
static V1LoadBalancerIngress
Create an instance of V1LoadBalancerIngress given an JSON stringHostname is set for load-balancer ingress points that are DNS based (typically AWS load-balancers)getIp()
IP is set for load-balancer ingress points that are IP based (typically GCE or OpenStack load-balancers)IPMode specifies how the load-balancer IP behaves, and may only be specified when the ip field is specified.getPorts()
Ports is a list of records of service ports If used, every port defined in the service should have an entry in itint
hashCode()
ports
(List<V1PortStatus> ports) void
setHostname
(String hostname) void
void
void
setPorts
(List<V1PortStatus> ports) toJson()
Convert an instance of V1LoadBalancerIngress 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_HOSTNAME
- See Also:
-
SERIALIZED_NAME_IP
- See Also:
-
SERIALIZED_NAME_IP_MODE
- See Also:
-
SERIALIZED_NAME_PORTS
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
V1LoadBalancerIngress
public V1LoadBalancerIngress()
-
-
Method Details
-
hostname
-
getHostname
Hostname is set for load-balancer ingress points that are DNS based (typically AWS load-balancers)- Returns:
- hostname
-
setHostname
-
ip
-
getIp
IP is set for load-balancer ingress points that are IP based (typically GCE or OpenStack load-balancers)- Returns:
- ip
-
setIp
-
ipMode
-
getIpMode
IPMode specifies how the load-balancer IP behaves, and may only be specified when the ip field is specified. Setting this to \"VIP\" indicates that traffic is delivered to the node with the destination set to the load-balancer's IP and port. Setting this to \"Proxy\" indicates that traffic is delivered to the node or pod with the destination set to the node's IP and node port or the pod's IP and port. Service implementations may use this information to adjust traffic routing.- Returns:
- ipMode
-
setIpMode
-
ports
-
addPortsItem
-
getPorts
Ports is a list of records of service ports If used, every port defined in the service should have an entry in it- Returns:
- ports
-
setPorts
-
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 V1LoadBalancerIngress
-
fromJson
Create an instance of V1LoadBalancerIngress given an JSON string- Parameters:
jsonString
- JSON string- Returns:
- An instance of V1LoadBalancerIngress
- Throws:
IOException
- if the JSON string is invalid with respect to V1LoadBalancerIngress
-
toJson
Convert an instance of V1LoadBalancerIngress to an JSON string- Returns:
- JSON string
-