Class V1TCPSocketAction
java.lang.Object
io.kubernetes.client.openapi.models.V1TCPSocketAction
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2024-02-02T17:56:12.287571Z[Etc/UTC]")
public class V1TCPSocketAction
extends Object
TCPSocketAction describes an action based on opening a socket
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
static V1TCPSocketAction
Create an instance of V1TCPSocketAction given an JSON stringgetHost()
Optional: Host name to connect to, defaults to the pod IP.getPort()
IntOrString is a type that can hold an int32 or a string.int
hashCode()
port
(IntOrString port) void
void
setPort
(IntOrString port) toJson()
Convert an instance of V1TCPSocketAction 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_HOST
- See Also:
-
SERIALIZED_NAME_PORT
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
V1TCPSocketAction
public V1TCPSocketAction()
-
-
Method Details
-
host
-
getHost
Optional: Host name to connect to, defaults to the pod IP.- Returns:
- host
-
setHost
-
port
-
getPort
IntOrString is a type that can hold an int32 or a string. When used in JSON or YAML marshalling and unmarshalling, it produces or consumes the inner type. This allows you to have, for example, a JSON field that can accept a name or number.- Returns:
- port
-
setPort
-
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 V1TCPSocketAction
-
fromJson
Create an instance of V1TCPSocketAction given an JSON string- Parameters:
jsonString
- JSON string- Returns:
- An instance of V1TCPSocketAction
- Throws:
IOException
- if the JSON string is invalid with respect to V1TCPSocketAction
-
toJson
Convert an instance of V1TCPSocketAction to an JSON string- Returns:
- JSON string
-