Class CreateResponse
java.lang.Object
io.github.alersrt.pod4j.openapi.model.CreateResponse
- All Implemented Interfaces:
Serializable
@Generated("org.openapitools.codegen.languages.JavaClientCodegen")
public class CreateResponse
extends Object
implements Serializable
OK response to ContainerCreate operation
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddWarningsItem(String warningsItem) booleanstatic CreateResponseCreate an instance of CreateResponse given an JSON string@NotNull StringgetId()The ID of the created containerWarnings encountered when creating the containerinthashCode()voidvoidsetWarnings(List<String> warnings) toJson()Convert an instance of CreateResponse 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_ID
- See Also:
-
SERIALIZED_NAME_WARNINGS
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
CreateResponse
public CreateResponse()
-
-
Method Details
-
id
-
getId
The ID of the created container- Returns:
- id
-
setId
-
warnings
-
addWarningsItem
-
getWarnings
Warnings encountered when creating the container- 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 CreateResponse
-
fromJson
Create an instance of CreateResponse given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of CreateResponse
- Throws:
IOException- if the JSON string is invalid with respect to CreateResponse
-
toJson
Convert an instance of CreateResponse to an JSON string- Returns:
- JSON string
-