Class Task
java.lang.Object
io.github.alersrt.pod4j.openapi.model.Task
@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 Task
extends Object
Task carries the information about one backend task
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionendpointID(String endpointID) endpointIP(String endpointIP) booleanstatic TaskCreate an instance of Task given an JSON stringGet endpointIDGet endpointIPgetInfo()Get infogetName()Get nameinthashCode()putInfoItem(String key, String infoItem) voidsetEndpointID(String endpointID) voidsetEndpointIP(String endpointIP) voidvoidtoJson()Convert an instance of Task 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_ENDPOINT_I_D
- See Also:
-
SERIALIZED_NAME_ENDPOINT_I_P
- See Also:
-
SERIALIZED_NAME_INFO
- See Also:
-
SERIALIZED_NAME_NAME
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
Task
public Task()
-
-
Method Details
-
endpointID
-
getEndpointID
Get endpointID- Returns:
- endpointID
-
setEndpointID
-
endpointIP
-
getEndpointIP
Get endpointIP- Returns:
- endpointIP
-
setEndpointIP
-
info
-
putInfoItem
-
getInfo
Get info- Returns:
- info
-
setInfo
-
name
-
getName
Get name- Returns:
- name
-
setName
-
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 Task
-
fromJson
Create an instance of Task given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of Task
- Throws:
IOException- if the JSON string is invalid with respect to Task
-
toJson
Convert an instance of Task to an JSON string- Returns:
- JSON string
-