Class ServiceCreateResponse
java.lang.Object
io.github.alersrt.pod4j.openapi.model.ServiceCreateResponse
@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 ServiceCreateResponse
extends Object
ServiceCreateResponse contains the information returned to a client on the creation of a new
service.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddWarningsItem(String warningsItem) booleanstatic ServiceCreateResponseCreate an instance of ServiceCreateResponse given an JSON stringgetID()The ID of the created service.Optional warning message.inthashCode()voidvoidsetWarnings(List<String> warnings) toJson()Convert an instance of ServiceCreateResponse 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_D
- See Also:
-
SERIALIZED_NAME_WARNINGS
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
ServiceCreateResponse
public ServiceCreateResponse()
-
-
Method Details
-
ID
-
getID
The ID of the created service.- Returns:
- ID
-
setID
-
warnings
-
addWarningsItem
-
getWarnings
Optional warning message. FIXME(thaJeztah): this should have \"omitempty\" in the generated type.- Returns:
- warnings
-
setWarnings
-
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 ServiceCreateResponse
-
fromJson
Create an instance of ServiceCreateResponse given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of ServiceCreateResponse
- Throws:
IOException- if the JSON string is invalid with respect to ServiceCreateResponse
-
toJson
Convert an instance of ServiceCreateResponse to an JSON string- Returns:
- JSON string
-