Package ai.shipeasy.admin.model
Class UpsertProjectRequest
java.lang.Object
ai.shipeasy.admin.model.UpsertProjectRequest
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
comments="Generator version: 7.23.0")
public class UpsertProjectRequest
extends Object
Body for `POST /api/admin/projects/upsert`. Only `domain` is required; the owner is resolved from the caller's session.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic UpsertProjectRequestCreate an instance of UpsertProjectRequest given an JSON stringLowercase bare hostname (e.g.getName()Human-readable project name.inthashCode()voidvoidtoJson()Convert an instance of UpsertProjectRequest 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_DOMAIN
- See Also:
-
SERIALIZED_NAME_NAME
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
UpsertProjectRequest
public UpsertProjectRequest()
-
-
Method Details
-
domain
-
getDomain
Lowercase bare hostname (e.g. `acme.com`, `app.acme.com`, `*.acme.com`), or `*` to allow any origin. Full URLs with `https://` are not accepted. The project is keyed by `(owner_email, domain)`, so a second call with the same domain returns the existing project.- Returns:
- domain
-
setDomain
-
name
-
getName
Human-readable project name. Defaults to the domain on first create.- Returns:
- name
-
setName
-
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 UpsertProjectRequest
-
fromJson
Create an instance of UpsertProjectRequest given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of UpsertProjectRequest
- Throws:
IOException- if the JSON string is invalid with respect to UpsertProjectRequest
-
toJson
Convert an instance of UpsertProjectRequest to an JSON string- Returns:
- JSON string
-