Class ServiceInfo

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

@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 ServiceInfo extends Object
ServiceInfo represents service parameters with the list of service's tasks
  • Field Details

  • Constructor Details

    • ServiceInfo

      public ServiceInfo()
  • 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 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
    • 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<@Valid Task> tasks)
    • addTasksItem

      public ServiceInfo addTasksItem(Task tasksItem)
    • getTasks

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

      public void setTasks(List<@Valid 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
    • toJson

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