/*
 * Cloudera Manager API
 * <h1>Cloudera Manager API v50</h1>       <p>Introduced in Cloudera Manager 7.8.1</p>       <p><a href=\"http://www.cloudera.com/documentation.html\">Cloudera Product Documentation</a></p>
 *
 * OpenAPI spec version: 7.8.1
 * 
 *
 * 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.cloudera.api.swagger.model;

import java.util.Objects;
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.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.IOException;

/**
 * Arguments to run ping test.
 */
@ApiModel(description = "Arguments to run ping test.")
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2022-11-17T16:38:34.097Z")
public class ApiPerfInspectorPingArgs {
  @SerializedName("pingTimeoutSecs")
  private java.math.BigDecimal pingTimeoutSecs = null;

  @SerializedName("pingCount")
  private java.math.BigDecimal pingCount = null;

  @SerializedName("pingPacketSizeBytes")
  private java.math.BigDecimal pingPacketSizeBytes = null;

  public ApiPerfInspectorPingArgs pingTimeoutSecs(java.math.BigDecimal pingTimeoutSecs) {
    this.pingTimeoutSecs = pingTimeoutSecs;
    return this;
  }

   /**
   * Timeout in seconds for the ping request to each target host. If not specified, defaults to 10 seconds. Must be a value between 1 and 3600 seconds, inclusive.
   * @return pingTimeoutSecs
  **/
  @ApiModelProperty(example = "10", value = "Timeout in seconds for the ping request to each target host. If not specified, defaults to 10 seconds. Must be a value between 1 and 3600 seconds, inclusive.")
  public java.math.BigDecimal getPingTimeoutSecs() {
    return pingTimeoutSecs;
  }

  public void setPingTimeoutSecs(java.math.BigDecimal pingTimeoutSecs) {
    this.pingTimeoutSecs = pingTimeoutSecs;
  }

  public ApiPerfInspectorPingArgs pingCount(java.math.BigDecimal pingCount) {
    this.pingCount = pingCount;
    return this;
  }

   /**
   * Number of iterations of the ping request to each target host. If not specified, defaults to 10 count.
   * @return pingCount
  **/
  @ApiModelProperty(example = "10", value = "Number of iterations of the ping request to each target host. If not specified, defaults to 10 count.")
  public java.math.BigDecimal getPingCount() {
    return pingCount;
  }

  public void setPingCount(java.math.BigDecimal pingCount) {
    this.pingCount = pingCount;
  }

  public ApiPerfInspectorPingArgs pingPacketSizeBytes(java.math.BigDecimal pingPacketSizeBytes) {
    this.pingPacketSizeBytes = pingPacketSizeBytes;
    return this;
  }

   /**
   * Packet size in bytes for each ping request. If not specified, defaults to 56 bytes. Must be a value between 1 and 65507 bytes, inclusive.
   * @return pingPacketSizeBytes
  **/
  @ApiModelProperty(example = "56", value = "Packet size in bytes for each ping request. If not specified, defaults to 56 bytes. Must be a value between 1 and 65507 bytes, inclusive.")
  public java.math.BigDecimal getPingPacketSizeBytes() {
    return pingPacketSizeBytes;
  }

  public void setPingPacketSizeBytes(java.math.BigDecimal pingPacketSizeBytes) {
    this.pingPacketSizeBytes = pingPacketSizeBytes;
  }


  @Override
  public boolean equals(java.lang.Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    ApiPerfInspectorPingArgs apiPerfInspectorPingArgs = (ApiPerfInspectorPingArgs) o;
    return Objects.equals(this.pingTimeoutSecs, apiPerfInspectorPingArgs.pingTimeoutSecs) &&
        Objects.equals(this.pingCount, apiPerfInspectorPingArgs.pingCount) &&
        Objects.equals(this.pingPacketSizeBytes, apiPerfInspectorPingArgs.pingPacketSizeBytes);
  }

  @Override
  public int hashCode() {
    return Objects.hash(pingTimeoutSecs, pingCount, pingPacketSizeBytes);
  }


  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class ApiPerfInspectorPingArgs {\n");
    
    sb.append("    pingTimeoutSecs: ").append(toIndentedString(pingTimeoutSecs)).append("\n");
    sb.append("    pingCount: ").append(toIndentedString(pingCount)).append("\n");
    sb.append("    pingPacketSizeBytes: ").append(toIndentedString(pingPacketSizeBytes)).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    ");
  }
  
}

