/*
 * ThingPark things management Networks API
 * REST interface for networks management. 
 *
 * The version of the OpenAPI document: 7.3
 * 
 *
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
 * https://openapi-generator.tech
 * Do not edit the class manually.
 */

package lora.ns.actility.api.model.basestation;

import java.util.Objects;

import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
import com.fasterxml.jackson.annotation.JsonTypeName;

/**
 * BsBriefDwFrame
 */
@JsonPropertyOrder({ BsBriefDwFrame.JSON_PROPERTY_HISTORY, BsBriefDwFrame.JSON_PROPERTY_LAST,
    BsBriefDwFrame.JSON_PROPERTY_MIN_R_C })
@JsonTypeName("BsBrief_dwFrame")
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-05-31T16:08:44.630492043+02:00[Europe/Paris]", comments = "Generator version: 7.6.0")
public class BsBriefDwFrame {
  public static final String JSON_PROPERTY_HISTORY = "history";
  private BsDwFrameHistory history;

  public static final String JSON_PROPERTY_LAST = "last";
  private BsDwFrameLast last;

  public static final String JSON_PROPERTY_MIN_R_C = "minRC";
  private BsBriefDwFrameMinRC minRC;

  public BsBriefDwFrame() {
  }

  public BsBriefDwFrame history(BsDwFrameHistory history) {

    this.history = history;
    return this;
  }

  /**
   * Get history
   * 
   * @return history
   **/
  @javax.annotation.Nullable
  @JsonProperty(JSON_PROPERTY_HISTORY)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)

  public BsDwFrameHistory getHistory() {
    return history;
  }

  @JsonProperty(JSON_PROPERTY_HISTORY)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
  public void setHistory(BsDwFrameHistory history) {
    this.history = history;
  }

  public BsBriefDwFrame last(BsDwFrameLast last) {

    this.last = last;
    return this;
  }

  /**
   * Get last
   * 
   * @return last
   **/
  @javax.annotation.Nullable
  @JsonProperty(JSON_PROPERTY_LAST)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)

  public BsDwFrameLast getLast() {
    return last;
  }

  @JsonProperty(JSON_PROPERTY_LAST)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
  public void setLast(BsDwFrameLast last) {
    this.last = last;
  }

  public BsBriefDwFrame minRC(BsBriefDwFrameMinRC minRC) {

    this.minRC = minRC;
    return this;
  }

  /**
   * Get minRC
   * 
   * @return minRC
   **/
  @javax.annotation.Nullable
  @JsonProperty(JSON_PROPERTY_MIN_R_C)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)

  public BsBriefDwFrameMinRC getMinRC() {
    return minRC;
  }

  @JsonProperty(JSON_PROPERTY_MIN_R_C)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
  public void setMinRC(BsBriefDwFrameMinRC minRC) {
    this.minRC = minRC;
  }

  @Override
  public boolean equals(Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    BsBriefDwFrame bsBriefDwFrame = (BsBriefDwFrame) o;
    return Objects.equals(this.history, bsBriefDwFrame.history) && Objects.equals(this.last, bsBriefDwFrame.last)
            && Objects.equals(this.minRC, bsBriefDwFrame.minRC);
  }

  @Override
  public int hashCode() {
    return Objects.hash(history, last, minRC);
  }

  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class BsBriefDwFrame {\n");
    sb.append("    history: ").append(toIndentedString(history)).append("\n");
    sb.append("    last: ").append(toIndentedString(last)).append("\n");
    sb.append("    minRC: ").append(toIndentedString(minRC)).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(Object o) {
    if (o == null) {
      return "null";
    }
    return o.toString().replace("\n", "\n    ");
  }

}
