Class CreateResponse

java.lang.Object
io.github.alersrt.pod4j.openapi.model.CreateResponse

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2024-11-29T01:29:49.168634544+07:00[Asia/Barnaul]", comments="Generator version: 7.7.0") public class CreateResponse extends Object
OK response to ContainerCreate operation
  • Field Details

  • Constructor Details

    • CreateResponse

      public CreateResponse()
  • Method Details

    • 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 CreateResponse
    • fromJson

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

      public CreateResponse id(String id)
    • getId

      @Nonnull @NotNull public @NotNull String getId()
      The ID of the created container
      Returns:
      id
    • setId

      public void setId(String id)
    • warnings

      public CreateResponse warnings(List<String> warnings)
    • addWarningsItem

      public CreateResponse addWarningsItem(String warningsItem)
    • getWarnings

      @Nonnull @NotNull public @NotNull List<String> getWarnings()
      Warnings encountered when creating the container
      Returns:
      warnings
    • setWarnings

      public void setWarnings(List<String> warnings)
    • 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
    • toJson

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