Class V1ServiceBackendPort
java.lang.Object
io.kubernetes.client.openapi.models.V1ServiceBackendPort
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2025-02-04T19:05:53.712211Z[Etc/UTC]",
comments="Generator version: 7.6.0")
public class V1ServiceBackendPort
extends Object
ServiceBackendPort is the service port being referenced.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
static V1ServiceBackendPort
Create an instance of V1ServiceBackendPort given an JSON stringgetName()
name is the name of the port on the Service.number is the numerical port number (e.g. 80) on the Service.int
hashCode()
void
void
toJson()
Convert an instance of V1ServiceBackendPort 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_NAME
- See Also:
-
SERIALIZED_NAME_NUMBER
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
V1ServiceBackendPort
public V1ServiceBackendPort()
-
-
Method Details
-
name
-
getName
name is the name of the port on the Service. This is a mutually exclusive setting with \"Number\".- Returns:
- name
-
setName
-
number
-
getNumber
number is the numerical port number (e.g. 80) on the Service. This is a mutually exclusive setting with \"Name\".- Returns:
- number
-
setNumber
-
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 V1ServiceBackendPort
-
fromJson
Create an instance of V1ServiceBackendPort given an JSON string- Parameters:
jsonString
- JSON string- Returns:
- An instance of V1ServiceBackendPort
- Throws:
IOException
- if the JSON string is invalid with respect to V1ServiceBackendPort
-
toJson
Convert an instance of V1ServiceBackendPort to an JSON string- Returns:
- JSON string
-