Class SetI18nLabelResponse

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

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", comments="Generator version: 7.23.0") public class SetI18nLabelResponse extends Object
Result of a one-shot set-and-publish.
  • Field Details

  • Constructor Details

    • SetI18nLabelResponse

      public SetI18nLabelResponse()
  • Method Details

    • ok

      public SetI18nLabelResponse ok(@Nonnull Boolean ok)
    • getOk

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

      public void setOk(@Nonnull Boolean ok)
    • profile

      public SetI18nLabelResponse profile(@Nonnull String profile)
    • getProfile

      @Nonnull public String getProfile()
      Name of the profile that was published.
      Returns:
      profile
    • setProfile

      public void setProfile(@Nonnull String profile)
    • profileId

      public SetI18nLabelResponse profileId(@Nonnull String profileId)
    • getProfileId

      @Nonnull public String getProfileId()
      Id of the profile that was published.
      Returns:
      profileId
    • setProfileId

      public void setProfileId(@Nonnull String profileId)
    • key

      public SetI18nLabelResponse key(@Nonnull String key)
    • getKey

      @Nonnull public String getKey()
      The key that was set.
      Returns:
      key
    • setKey

      public void setKey(@Nonnull String key)
    • value

      public SetI18nLabelResponse value(@Nonnull String value)
    • getValue

      @Nonnull public String getValue()
      The value that was stored.
      Returns:
      value
    • setValue

      public void setValue(@Nonnull String value)
    • publishedAt

      public SetI18nLabelResponse 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 SetI18nLabelResponse 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 SetI18nLabelResponse 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 SetI18nLabelResponse 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

      public SetI18nLabelResponse purged(@Nonnull SetI18nLabelResponse.PurgedEnum purged)
    • getPurged

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

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

      public SetI18nLabelResponse 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 SetI18nLabelResponse 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 SetI18nLabelResponse
    • fromJson

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

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