Class ServiceInfo

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

@Generated("org.openapitools.codegen.languages.JavaClientCodegen") public class ServiceInfo extends Object implements Serializable
ServiceInfo represents service parameters with the list of service's tasks
See Also:
  • Field Details

  • Constructor Details

    • ServiceInfo

      public ServiceInfo()
  • Method Details

    • localLBIndex

      public ServiceInfo localLBIndex(Long localLBIndex)
    • getLocalLBIndex

      @Nullable public Long getLocalLBIndex()
      Get localLBIndex
      Returns:
      localLBIndex
    • setLocalLBIndex

      public void setLocalLBIndex(Long localLBIndex)
    • ports

      public ServiceInfo ports(List<String> ports)
    • addPortsItem

      public ServiceInfo addPortsItem(String portsItem)
    • getPorts

      @Nullable public List<String> getPorts()
      Get ports
      Returns:
      ports
    • setPorts

      public void setPorts(List<String> ports)
    • tasks

      public ServiceInfo tasks(List<Task> tasks)
    • addTasksItem

      public ServiceInfo addTasksItem(Task tasksItem)
    • getTasks

      @Nullable @Valid public @Valid List<Task> getTasks()
      Get tasks
      Returns:
      tasks
    • setTasks

      public void setTasks(List<Task> tasks)
    • VIP

      public ServiceInfo VIP(String VIP)
    • getVIP

      @Nullable public String getVIP()
      Get VIP
      Returns:
      VIP
    • setVIP

      public void setVIP(String VIP)
    • 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 ServiceInfo
    • fromJson

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

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