Class PortBinding
java.lang.Object
io.github.alersrt.pod4j.openapi.model.PortBinding
- All Implemented Interfaces:
Serializable
@Generated("org.openapitools.codegen.languages.JavaClientCodegen")
public class PortBinding
extends Object
implements Serializable
PortBinding represents a binding between a Host IP address and a Host Port
- See Also:
-
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 voidvalidateJsonObject(com.google.gson.JsonObject jsonObj) Validates the JSON Object 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
-
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
-
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 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
-
toJson
Convert an instance of PortBinding to an JSON string- Returns:
- JSON string
-