Class ServiceInfo
java.lang.Object
io.github.alersrt.pod4j.openapi.model.ServiceInfo
- All Implemented Interfaces:
Serializable
@Generated("org.openapitools.codegen.languages.JavaClientCodegen")
public class ServiceInfo
extends Object
implements Serializable
ServiceInfo represents service parameters with the list of service's tasks
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddPortsItem(String portsItem) addTasksItem(Task tasksItem) booleanstatic ServiceInfoCreate an instance of ServiceInfo given an JSON stringGet localLBIndexgetPorts()Get portsgetTasks()Get tasksgetVIP()Get VIPinthashCode()localLBIndex(Long localLBIndex) voidsetLocalLBIndex(Long localLBIndex) voidvoidvoidtoJson()Convert an instance of ServiceInfo 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_LOCAL_L_B_INDEX
- See Also:
-
SERIALIZED_NAME_PORTS
- See Also:
-
SERIALIZED_NAME_TASKS
- See Also:
-
SERIALIZED_NAME_V_I_P
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
ServiceInfo
public ServiceInfo()
-
-
Method Details
-
localLBIndex
-
getLocalLBIndex
Get localLBIndex- Returns:
- localLBIndex
-
setLocalLBIndex
-
ports
-
addPortsItem
-
getPorts
Get ports- Returns:
- ports
-
setPorts
-
tasks
-
addTasksItem
-
getTasks
Get tasks- Returns:
- tasks
-
setTasks
-
VIP
-
getVIP
Get VIP- Returns:
- VIP
-
setVIP
-
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 ServiceInfo
-
fromJson
Create an instance of ServiceInfo given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of ServiceInfo
- Throws:
IOException- if the JSON string is invalid with respect to ServiceInfo
-
toJson
Convert an instance of ServiceInfo to an JSON string- Returns:
- JSON string
-