All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.volcengine.waf.model.UpdateHostGroupRequest Maven / Gradle / Ivy

There is a newer version: 0.1.143
Show newest version
/*
 * waf
 * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
 *
 * OpenAPI spec version: common-version
 * 
 *
 * NOTE: This class is auto generated by the swagger code generator program.
 * https://github.com/swagger-api/swagger-codegen.git
 * Do not edit the class manually.
 */

package com.volcengine.waf.model;

import java.util.Objects;
import java.util.Arrays;
import com.google.gson.TypeAdapter;
import com.google.gson.annotations.JsonAdapter;
import com.google.gson.annotations.SerializedName;
import com.google.gson.stream.JsonReader;
import com.google.gson.stream.JsonWriter;
import io.swagger.v3.oas.annotations.media.Schema;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
import javax.validation.constraints.*;
import javax.validation.Valid;
/**
 * UpdateHostGroupRequest
 */



public class UpdateHostGroupRequest {
  @SerializedName("Action")
  private String action = null;

  @SerializedName("Description")
  private String description = null;

  @SerializedName("HostGroupID")
  private Integer hostGroupID = null;

  @SerializedName("HostList")
  private List hostList = null;

  @SerializedName("Name")
  private String name = null;

  @SerializedName("ProjectName")
  private String projectName = null;

  public UpdateHostGroupRequest action(String action) {
    this.action = action;
    return this;
  }

   /**
   * Get action
   * @return action
  **/
  @Schema(description = "")
  public String getAction() {
    return action;
  }

  public void setAction(String action) {
    this.action = action;
  }

  public UpdateHostGroupRequest description(String description) {
    this.description = description;
    return this;
  }

   /**
   * Get description
   * @return description
  **/
  @Schema(description = "")
  public String getDescription() {
    return description;
  }

  public void setDescription(String description) {
    this.description = description;
  }

  public UpdateHostGroupRequest hostGroupID(Integer hostGroupID) {
    this.hostGroupID = hostGroupID;
    return this;
  }

   /**
   * Get hostGroupID
   * @return hostGroupID
  **/
  @NotNull
  @Schema(required = true, description = "")
  public Integer getHostGroupID() {
    return hostGroupID;
  }

  public void setHostGroupID(Integer hostGroupID) {
    this.hostGroupID = hostGroupID;
  }

  public UpdateHostGroupRequest hostList(List hostList) {
    this.hostList = hostList;
    return this;
  }

  public UpdateHostGroupRequest addHostListItem(String hostListItem) {
    if (this.hostList == null) {
      this.hostList = new ArrayList();
    }
    this.hostList.add(hostListItem);
    return this;
  }

   /**
   * Get hostList
   * @return hostList
  **/
  @Schema(description = "")
  public List getHostList() {
    return hostList;
  }

  public void setHostList(List hostList) {
    this.hostList = hostList;
  }

  public UpdateHostGroupRequest name(String name) {
    this.name = name;
    return this;
  }

   /**
   * Get name
   * @return name
  **/
  @Schema(description = "")
  public String getName() {
    return name;
  }

  public void setName(String name) {
    this.name = name;
  }

  public UpdateHostGroupRequest projectName(String projectName) {
    this.projectName = projectName;
    return this;
  }

   /**
   * Get projectName
   * @return projectName
  **/
  @Schema(description = "")
  public String getProjectName() {
    return projectName;
  }

  public void setProjectName(String projectName) {
    this.projectName = projectName;
  }


  @Override
  public boolean equals(java.lang.Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    UpdateHostGroupRequest updateHostGroupRequest = (UpdateHostGroupRequest) o;
    return Objects.equals(this.action, updateHostGroupRequest.action) &&
        Objects.equals(this.description, updateHostGroupRequest.description) &&
        Objects.equals(this.hostGroupID, updateHostGroupRequest.hostGroupID) &&
        Objects.equals(this.hostList, updateHostGroupRequest.hostList) &&
        Objects.equals(this.name, updateHostGroupRequest.name) &&
        Objects.equals(this.projectName, updateHostGroupRequest.projectName);
  }

  @Override
  public int hashCode() {
    return Objects.hash(action, description, hostGroupID, hostList, name, projectName);
  }


  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class UpdateHostGroupRequest {\n");
    
    sb.append("    action: ").append(toIndentedString(action)).append("\n");
    sb.append("    description: ").append(toIndentedString(description)).append("\n");
    sb.append("    hostGroupID: ").append(toIndentedString(hostGroupID)).append("\n");
    sb.append("    hostList: ").append(toIndentedString(hostList)).append("\n");
    sb.append("    name: ").append(toIndentedString(name)).append("\n");
    sb.append("    projectName: ").append(toIndentedString(projectName)).append("\n");
    sb.append("}");
    return sb.toString();
  }

  /**
   * Convert the given object to string with each line indented by 4 spaces
   * (except the first line).
   */
  private String toIndentedString(java.lang.Object o) {
    if (o == null) {
      return "null";
    }
    return o.toString().replace("\n", "\n    ");
  }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy