Class Port
java.lang.Object
io.github.alersrt.pod4j.openapi.model.Port
@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 Port
extends Object
Port An open port on a container
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic PortCreate an instance of Port given an JSON stringgetIP()Host IP address that the container's port is mapped toPort on the containerPort exposed on the hostgetType()typeinthashCode()privatePort(Integer privatePort) publicPort(Integer publicPort) voidvoidsetPrivatePort(Integer privatePort) voidsetPublicPort(Integer publicPort) voidtoJson()Convert an instance of Port 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_I_P
- See Also:
-
SERIALIZED_NAME_PRIVATE_PORT
- See Also:
-
SERIALIZED_NAME_PUBLIC_PORT
- See Also:
-
SERIALIZED_NAME_TYPE
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
Port
public Port()
-
-
Method Details
-
IP
-
getIP
Host IP address that the container's port is mapped to- Returns:
- IP
-
setIP
-
privatePort
-
getPrivatePort
Port on the container- Returns:
- privatePort
-
setPrivatePort
-
publicPort
-
getPublicPort
Port exposed on the host- Returns:
- publicPort
-
setPublicPort
-
type
-
getType
type- Returns:
- type
-
setType
-
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 Port
-
fromJson
Create an instance of Port given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of Port
- Throws:
IOException- if the JSON string is invalid with respect to Port
-
toJson
Convert an instance of Port to an JSON string- Returns:
- JSON string
-