Class V1ServiceBackendPort
java.lang.Object
io.kubernetes.client.openapi.models.V1ServiceBackendPort
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2024-02-02T17:56:12.287571Z[Etc/UTC]")
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.int
hashCode()
void
void
toJson()
Convert an instance of V1ServiceBackendPort to an JSON stringtoString()
static void
validateJsonObject
(com.google.gson.JsonObject jsonObj) Validates the JSON Object 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
-
validateJsonObject
Validates the JSON Object and throws an exception if issues found- Parameters:
jsonObj
- JSON Object- Throws:
IOException
- if the JSON Object 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
-