Class V1PortStatus
java.lang.Object
io.kubernetes.client.openapi.models.V1PortStatus
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2025-02-12T21:15:49.397498Z[Etc/UTC]",
comments="Generator version: 7.6.0")
public class V1PortStatus
extends Object
PortStatus represents the error condition of a service port
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
static V1PortStatus
Create an instance of V1PortStatus given an JSON stringgetError()
Error is to record the problem with the service port The format of the error shall comply with the following rules: - built-in error values shall be specified in this file and those shall use CamelCase names - cloud provider specific error values must have names that comply with the format foo.example.com/CamelCase.getPort()
Port is the port number of the service port of which status is recorded hereProtocol is the protocol of the service port of which status is recorded here The supported values are: \"TCP\", \"UDP\", \"SCTP\"int
hashCode()
void
void
void
setProtocol
(String protocol) toJson()
Convert an instance of V1PortStatus 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_ERROR
- See Also:
-
SERIALIZED_NAME_PORT
- See Also:
-
SERIALIZED_NAME_PROTOCOL
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
V1PortStatus
public V1PortStatus()
-
-
Method Details
-
error
-
getError
Error is to record the problem with the service port The format of the error shall comply with the following rules: - built-in error values shall be specified in this file and those shall use CamelCase names - cloud provider specific error values must have names that comply with the format foo.example.com/CamelCase.- Returns:
- error
-
setError
-
port
-
getPort
Port is the port number of the service port of which status is recorded here- Returns:
- port
-
setPort
-
protocol
-
getProtocol
Protocol is the protocol of the service port of which status is recorded here The supported values are: \"TCP\", \"UDP\", \"SCTP\"- Returns:
- protocol
-
setProtocol
-
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 V1PortStatus
-
fromJson
Create an instance of V1PortStatus given an JSON string- Parameters:
jsonString
- JSON string- Returns:
- An instance of V1PortStatus
- Throws:
IOException
- if the JSON string is invalid with respect to V1PortStatus
-
toJson
Convert an instance of V1PortStatus to an JSON string- Returns:
- JSON string
-