Package ai.shipeasy.admin.model
Class SaveConfigDraftRequest
java.lang.Object
ai.shipeasy.admin.model.SaveConfigDraftRequest
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
comments="Generator version: 7.23.0")
public class SaveConfigDraftRequest
extends Object
Body for `PUT /api/admin/configs/{id}/drafts`. Stages a value for a single env without publishing.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic SaveConfigDraftRequestCreate an instance of SaveConfigDraftRequest given an JSON stringgetEnv()Get envgetValue()Get valueinthashCode()voidvoidtoJson()Convert an instance of SaveConfigDraftRequest 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_ENV
- See Also:
-
SERIALIZED_NAME_VALUE
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
SaveConfigDraftRequest
public SaveConfigDraftRequest()
-
-
Method Details
-
env
-
getEnv
Get env- Returns:
- env
-
setEnv
-
value
-
getValue
Get value- Returns:
- value
-
setValue
-
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 SaveConfigDraftRequest
-
fromJson
Create an instance of SaveConfigDraftRequest given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of SaveConfigDraftRequest
- Throws:
IOException- if the JSON string is invalid with respect to SaveConfigDraftRequest
-
toJson
Convert an instance of SaveConfigDraftRequest to an JSON string- Returns:
- JSON string
-