Class ServiceInfo
java.lang.Object
io.github.alersrt.pod4j.openapi.model.ServiceInfo
@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 ServiceInfo
extends Object
ServiceInfo represents service parameters with the list of service's tasks
-
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 voidvalidateJsonElement(com.google.gson.JsonElement jsonElement) Validates the JSON Element 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
-
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 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
-