Class Port
java.lang.Object
io.github.alersrt.pod4j.openapi.model.Port
- All Implemented Interfaces:
Serializable
@Generated("org.openapitools.codegen.languages.JavaClientCodegen")
public class Port
extends Object
implements Serializable
Port An open port on a container
- See Also:
-
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 to@NotNull IntegerPort on the containerPort exposed on the host@NotNull StringgetType()typeinthashCode()privatePort(Integer privatePort) publicPort(Integer publicPort) voidvoidsetPrivatePort(Integer privatePort) voidsetPublicPort(Integer publicPort) voidtoJson()Convert an instance of Port 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_PRIVATE_PORT
- See Also:
-
SERIALIZED_NAME_TYPE
- See Also:
-
SERIALIZED_NAME_I_P
- See Also:
-
SERIALIZED_NAME_PUBLIC_PORT
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
Port
public Port()
-
-
Method Details
-
privatePort
-
getPrivatePort
Port on the container- Returns:
- privatePort
-
setPrivatePort
-
type
-
getType
type- Returns:
- type
-
setType
-
IP
-
getIP
Host IP address that the container's port is mapped to- Returns:
- IP
-
setIP
-
publicPort
-
getPublicPort
Port exposed on the host- Returns:
- publicPort
-
setPublicPort
-
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 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
-