Class InspectHostPort
java.lang.Object
io.github.alersrt.pod4j.openapi.model.InspectHostPort
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2024-11-19T11:19:05.435500352+07:00[Asia/Barnaul]",
comments="Generator version: 7.7.0")
public class InspectHostPort
extends Object
InspectHostPort provides information on a port on the host that a container's port is bound
to.
-
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 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
-
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
-
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 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
-