Class PortBinding
java.lang.Object
io.github.alersrt.pod4j.openapi.model.PortBinding
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2024-11-29T01:29:49.168634544+07:00[Asia/Barnaul]",
comments="Generator version: 7.7.0")
public class PortBinding
extends Object
PortBinding represents a binding between a Host IP address and a Host Port
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic PortBindingCreate an instance of PortBinding given an JSON stringHostIP is the host IP AddressHostPort is the host port numberinthashCode()voidvoidsetHostPort(String hostPort) toJson()Convert an instance of PortBinding to an JSON stringtoString()static voidvalidateJsonElement(com.google.gson.JsonElement jsonElement) Validates the JSON Element and throws an exception if issues found
-
Field Details
-
SERIALIZED_NAME_HOST_IP
- See Also:
-
SERIALIZED_NAME_HOST_PORT
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
PortBinding
public PortBinding()
-
-
Method Details
-
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 PortBinding
-
fromJson
Create an instance of PortBinding given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of PortBinding
- Throws:
IOException- if the JSON string is invalid with respect to PortBinding
-
hostIp
-
getHostIp
HostIP is the host IP Address- Returns:
- hostIp
-
setHostIp
-
hostPort
-
getHostPort
HostPort is the host port number- Returns:
- hostPort
-
setHostPort
-
equals
-
hashCode
public int hashCode() -
toString
-
toJson
Convert an instance of PortBinding to an JSON string- Returns:
- JSON string
-