Class ServiceCreateResponse
java.lang.Object
io.github.alersrt.pod4j.openapi.model.ServiceCreateResponse
- All Implemented Interfaces:
Serializable
@Generated("org.openapitools.codegen.languages.JavaClientCodegen")
public class ServiceCreateResponse
extends Object
implements Serializable
ServiceCreateResponse contains the information returned to a client on the creation of a new service.
- See Also:
-
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 voidvalidateJsonObject(com.google.gson.JsonObject jsonObj) Validates the JSON Object 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
-
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 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
-