Class PushI18nKeysResponse

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

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", comments="Generator version: 7.23.0") public class PushI18nKeysResponse extends Object
Result of an insert-only key push.
  • Field Details

  • Constructor Details

    • PushI18nKeysResponse

      public PushI18nKeysResponse()
  • Method Details

    • added

      public PushI18nKeysResponse added(@Nonnull List<String> added)
    • addAddedItem

      public PushI18nKeysResponse addAddedItem(String addedItem)
    • getAdded

      @Nonnull public List<String> getAdded()
      Key names that were newly inserted.
      Returns:
      added
    • setAdded

      public void setAdded(@Nonnull List<String> added)
    • skipped

      public PushI18nKeysResponse skipped(@Nonnull List<String> skipped)
    • addSkippedItem

      public PushI18nKeysResponse addSkippedItem(String skippedItem)
    • getSkipped

      @Nonnull public List<String> getSkipped()
      Key names that already existed and were left untouched.
      Returns:
      skipped
    • setSkipped

      public void setSkipped(@Nonnull List<String> skipped)
    • pushedCount

      public PushI18nKeysResponse pushedCount(@Nonnull BigDecimal pushedCount)
    • getPushedCount

      @Nonnull public BigDecimal getPushedCount()
      Number of keys inserted (== `added.length`).
      Returns:
      pushedCount
    • setPushedCount

      public void setPushedCount(@Nonnull BigDecimal pushedCount)
    • skippedCount

      public PushI18nKeysResponse skippedCount(@Nonnull BigDecimal skippedCount)
    • getSkippedCount

      @Nonnull public BigDecimal getSkippedCount()
      Number of keys skipped (== `skipped.length`).
      Returns:
      skippedCount
    • setSkippedCount

      public void setSkippedCount(@Nonnull BigDecimal skippedCount)
    • chunk

      public PushI18nKeysResponse chunk(@Nullable String chunk)
    • getChunk

      @Nullable public String getChunk()
      The chunk the keys were filed under.
      Returns:
      chunk
    • setChunk

      public void setChunk(@Nullable String chunk)
    • 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 PushI18nKeysResponse
    • fromJson

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

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