Class IdResponse

java.lang.Object
io.github.alersrt.pod4j.openapi.model.IdResponse
All Implemented Interfaces:
Serializable

@Generated("org.openapitools.codegen.languages.JavaClientCodegen") public class IdResponse extends Object implements Serializable
IDResponse Response to an API call that returns just an Id
See Also:
  • Field Details

  • Constructor Details

    • IdResponse

      public IdResponse()
  • Method Details

    • id

      public IdResponse id(String id)
    • getId

      @Nonnull @NotNull public @NotNull String getId()
      The id of the newly created object.
      Returns:
      id
    • setId

      public void setId(String id)
    • 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
    • validateJsonObject

      public static void validateJsonObject(com.google.gson.JsonObject jsonObj) throws IOException
      Validates the JSON Object and throws an exception if issues found
      Parameters:
      jsonObj - JSON Object
      Throws:
      IOException - if the JSON Object is invalid with respect to IdResponse
    • fromJson

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

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