Package ai.shipeasy.admin.model
Class PublishConfigDraftRequest
java.lang.Object
ai.shipeasy.admin.model.PublishConfigDraftRequest
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
comments="Generator version: 7.23.0")
public class PublishConfigDraftRequest
extends Object
Body for `POST /api/admin/configs/{id}/publish` and `DELETE /api/admin/configs/{id}/drafts`. Names the target env.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic PublishConfigDraftRequestCreate an instance of PublishConfigDraftRequest given an JSON stringgetEnv()Get envinthashCode()voidtoJson()Convert an instance of PublishConfigDraftRequest 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:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
PublishConfigDraftRequest
public PublishConfigDraftRequest()
-
-
Method Details
-
env
-
getEnv
Get env- Returns:
- env
-
setEnv
-
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 PublishConfigDraftRequest
-
fromJson
Create an instance of PublishConfigDraftRequest given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of PublishConfigDraftRequest
- Throws:
IOException- if the JSON string is invalid with respect to PublishConfigDraftRequest
-
toJson
Convert an instance of PublishConfigDraftRequest to an JSON string- Returns:
- JSON string
-