Class InspectHostPort
java.lang.Object
io.github.alersrt.pod4j.openapi.model.InspectHostPort
- All Implemented Interfaces:
Serializable
@Generated("org.openapitools.codegen.languages.JavaClientCodegen")
public class InspectHostPort
extends Object
implements Serializable
InspectHostPort provides information on a port on the host that a container's port is bound to.
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic InspectHostPortCreate an instance of InspectHostPort given an JSON stringIP on the host we are bound to.Port on the host we are bound to.inthashCode()voidvoidsetHostPort(String hostPort) toJson()Convert an instance of InspectHostPort 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
-
InspectHostPort
public InspectHostPort()
-
-
Method Details
-
hostIp
-
getHostIp
IP on the host we are bound to. \"\" if not specified (binding to all IPs).- Returns:
- hostIp
-
setHostIp
-
hostPort
-
getHostPort
Port on the host we are bound to. No special formatting - just an integer stuffed into a string.- 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 InspectHostPort
-
fromJson
Create an instance of InspectHostPort given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of InspectHostPort
- Throws:
IOException- if the JSON string is invalid with respect to InspectHostPort
-
toJson
Convert an instance of InspectHostPort to an JSON string- Returns:
- JSON string
-