Class PublishI18nProfileResponse

java.lang.Object
ai.shipeasy.admin.model.PublishI18nProfileResponse

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", comments="Generator version: 7.23.0") public class PublishI18nProfileResponse extends Object
Result of a profile-wide publish.
  • Field Details

  • Constructor Details

    • PublishI18nProfileResponse

      public PublishI18nProfileResponse()
  • Method Details

    • ok

      public PublishI18nProfileResponse ok(@Nonnull Boolean ok)
    • getOk

      @Nonnull public Boolean getOk()
      Always `true` on success.
      Returns:
      ok
    • setOk

      public void setOk(@Nonnull Boolean ok)
    • profileId

      public PublishI18nProfileResponse profileId(@Nonnull String profileId)
    • getProfileId

      @Nonnull public String getProfileId()
      Profile that was published.
      Returns:
      profileId
    • setProfileId

      public void setProfileId(@Nonnull String profileId)
    • chunk

      public PublishI18nProfileResponse chunk(@Nullable String chunk)
    • getChunk

      @Nullable public String getChunk()
      Audit chunk label, or `null` when none was given.
      Returns:
      chunk
    • setChunk

      public void setChunk(@Nullable String chunk)
    • publishedAt

      public PublishI18nProfileResponse publishedAt(@Nonnull String publishedAt)
    • getPublishedAt

      @Nonnull public String getPublishedAt()
      ISO-8601 timestamp of the publish.
      Returns:
      publishedAt
    • setPublishedAt

      public void setPublishedAt(@Nonnull String publishedAt)
    • version

      public PublishI18nProfileResponse version(@Nonnull String version)
    • getVersion

      @Nonnull public String getVersion()
      New KV snapshot version that was shipped.
      Returns:
      version
    • setVersion

      public void setVersion(@Nonnull String version)
    • keyCount

      public PublishI18nProfileResponse keyCount(@Nonnull BigDecimal keyCount)
    • getKeyCount

      @Nonnull public BigDecimal getKeyCount()
      Number of keys in the published snapshot.
      Returns:
      keyCount
    • setKeyCount

      public void setKeyCount(@Nonnull BigDecimal keyCount)
    • changed

      public PublishI18nProfileResponse changed(@Nonnull Boolean changed)
    • getChanged

      @Nonnull public Boolean getChanged()
      Whether the snapshot's contents actually changed since the last publish.
      Returns:
      changed
    • setChanged

      public void setChanged(@Nonnull Boolean changed)
    • purged

    • getPurged

      @Nonnull public PublishI18nProfileResponse.PurgedEnum getPurged()
      CDN purge outcome: `purged` ok, `skipped` (no creds), or `failed` (edge still stale).
      Returns:
      purged
    • setPurged

      public void setPurged(@Nonnull PublishI18nProfileResponse.PurgedEnum purged)
    • kvVerified

      public PublishI18nProfileResponse kvVerified(@Nonnull Boolean kvVerified)
    • getKvVerified

      @Nonnull public Boolean getKvVerified()
      Whether a KV read-back confirmed the new version persisted.
      Returns:
      kvVerified
    • setKvVerified

      public void setKvVerified(@Nonnull Boolean kvVerified)
    • warning

      public PublishI18nProfileResponse warning(@Nullable String warning)
    • getWarning

      @Nullable public String getWarning()
      Human-readable caveat when the publish landed but is not fully live.
      Returns:
      warning
    • setWarning

      public void setWarning(@Nullable String warning)
    • 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 PublishI18nProfileResponse
    • fromJson

      public static PublishI18nProfileResponse fromJson(String jsonString) throws IOException
      Create an instance of PublishI18nProfileResponse given an JSON string
      Parameters:
      jsonString - JSON string
      Returns:
      An instance of PublishI18nProfileResponse
      Throws:
      IOException - if the JSON string is invalid with respect to PublishI18nProfileResponse
    • toJson

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