Package ai.shipeasy.admin.model
Class UpsertProjectResponse
java.lang.Object
ai.shipeasy.admin.model.UpsertProjectResponse
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
comments="Generator version: 7.23.0")
public class UpsertProjectResponse
extends Object
Result of `POST /api/admin/projects/upsert`.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic UpsertProjectResponseCreate an instance of UpsertProjectResponse given an JSON string`true` if this call created the project, `false` if it returned an existing one.Project domain, or `null` if unset.getId()Stable opaque project id.getName()Project name (the supplied `name`, or the domain on first create).Email of the account that owns the project.inthashCode()ownerEmail(String ownerEmail) voidsetCreated(Boolean created) voidvoidvoidvoidsetOwnerEmail(String ownerEmail) toJson()Convert an instance of UpsertProjectResponse 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_ID
- See Also:
-
SERIALIZED_NAME_NAME
- See Also:
-
SERIALIZED_NAME_DOMAIN
- See Also:
-
SERIALIZED_NAME_OWNER_EMAIL
- See Also:
-
SERIALIZED_NAME_CREATED
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
UpsertProjectResponse
public UpsertProjectResponse()
-
-
Method Details
-
id
-
getId
Stable opaque project id.- Returns:
- id
-
setId
-
name
-
getName
Project name (the supplied `name`, or the domain on first create).- Returns:
- name
-
setName
-
domain
-
getDomain
Project domain, or `null` if unset.- Returns:
- domain
-
setDomain
-
ownerEmail
-
getOwnerEmail
Email of the account that owns the project.- Returns:
- ownerEmail
-
setOwnerEmail
-
created
-
getCreated
`true` if this call created the project, `false` if it returned an existing one.- Returns:
- created
-
setCreated
-
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 UpsertProjectResponse
-
fromJson
Create an instance of UpsertProjectResponse given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of UpsertProjectResponse
- Throws:
IOException- if the JSON string is invalid with respect to UpsertProjectResponse
-
toJson
Convert an instance of UpsertProjectResponse to an JSON string- Returns:
- JSON string
-