/*
 * 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;

/**
 * References a command executed on a peer cluster by a local command step.
 */
@ApiModel(description = "References a command executed on a peer cluster by a local command step.")
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2022-11-17T16:38:34.097Z")
public class ApiRemoteCommand {
  @SerializedName("id")
  private java.math.BigDecimal id = null;

  @SerializedName("peerName")
  private String peerName = null;

  public ApiRemoteCommand id(java.math.BigDecimal id) {
    this.id = id;
    return this;
  }

   /**
   * Id of the remotely executed command.
   * @return id
  **/
  @ApiModelProperty(value = "Id of the remotely executed command.")
  public java.math.BigDecimal getId() {
    return id;
  }

  public void setId(java.math.BigDecimal id) {
    this.id = id;
  }

  public ApiRemoteCommand peerName(String peerName) {
    this.peerName = peerName;
    return this;
  }

   /**
   * The local peer name of the remote peer cluster.
   * @return peerName
  **/
  @ApiModelProperty(value = "The local peer name of the remote peer cluster.")
  public String getPeerName() {
    return peerName;
  }

  public void setPeerName(String peerName) {
    this.peerName = peerName;
  }


  @Override
  public boolean equals(java.lang.Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    ApiRemoteCommand apiRemoteCommand = (ApiRemoteCommand) o;
    return Objects.equals(this.id, apiRemoteCommand.id) &&
        Objects.equals(this.peerName, apiRemoteCommand.peerName);
  }

  @Override
  public int hashCode() {
    return Objects.hash(id, peerName);
  }


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

