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`.
  • Field Details

  • Constructor Details

    • UpsertProjectResponse

      public UpsertProjectResponse()
  • Method Details

    • id

      public UpsertProjectResponse id(@Nonnull String id)
    • getId

      @Nonnull public String getId()
      Stable opaque project id.
      Returns:
      id
    • setId

      public void setId(@Nonnull String id)
    • name

      public UpsertProjectResponse name(@Nonnull String name)
    • getName

      @Nonnull public String getName()
      Project name (the supplied `name`, or the domain on first create).
      Returns:
      name
    • setName

      public void setName(@Nonnull String name)
    • domain

      public UpsertProjectResponse domain(@Nullable String domain)
    • getDomain

      @Nullable public String getDomain()
      Project domain, or `null` if unset.
      Returns:
      domain
    • setDomain

      public void setDomain(@Nullable String domain)
    • ownerEmail

      public UpsertProjectResponse ownerEmail(@Nonnull String ownerEmail)
    • getOwnerEmail

      @Nonnull public String getOwnerEmail()
      Email of the account that owns the project.
      Returns:
      ownerEmail
    • setOwnerEmail

      public void setOwnerEmail(@Nonnull String ownerEmail)
    • created

      public UpsertProjectResponse created(@Nonnull Boolean created)
    • getCreated

      @Nonnull public Boolean getCreated()
      `true` if this call created the project, `false` if it returned an existing one.
      Returns:
      created
    • setCreated

      public void setCreated(@Nonnull Boolean created)
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • validateJsonElement

      public static void validateJsonElement(com.google.gson.JsonElement jsonElement) throws IOException
      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

      public static UpsertProjectResponse fromJson(String jsonString) throws IOException
      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

      public String toJson()
      Convert an instance of UpsertProjectResponse to an JSON string
      Returns:
      JSON string