Class ServiceCreateResponse

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

@Generated("org.openapitools.codegen.languages.JavaClientCodegen") public class ServiceCreateResponse extends Object implements Serializable
ServiceCreateResponse contains the information returned to a client on the creation of a new service.
See Also:
  • Field Details

  • Constructor Details

    • ServiceCreateResponse

      public ServiceCreateResponse()
  • Method Details

    • ID

      public ServiceCreateResponse ID(String ID)
    • getID

      @Nullable public String getID()
      The ID of the created service.
      Returns:
      ID
    • setID

      public void setID(String ID)
    • warnings

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

      public ServiceCreateResponse addWarningsItem(String warningsItem)
    • getWarnings

      @Nullable public List<String> getWarnings()
      Optional warning message. FIXME(thaJeztah): this should have \"omitempty\" in the generated type.
      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
    • 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 ServiceCreateResponse
    • fromJson

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

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