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

/**
 * BsBriefUpFrame
 */
@JsonPropertyOrder({ BsBriefUpFrame.JSON_PROPERTY_HISTORY, BsBriefUpFrame.JSON_PROPERTY_LAST,
    BsBriefUpFrame.JSON_PROPERTY_MIN_R_C })
@JsonTypeName("BsBrief_upFrame")
@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 BsBriefUpFrame {
  public static final String JSON_PROPERTY_HISTORY = "history";
  private BsUpFrameHistory history;

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

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

  public BsBriefUpFrame() {
  }

  public BsBriefUpFrame history(BsUpFrameHistory history) {

    this.history = history;
    return this;
  }

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

  public BsUpFrameHistory getHistory() {
    return history;
  }

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

  public BsBriefUpFrame last(BsUpFrameLast last) {

    this.last = last;
    return this;
  }

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

  public BsUpFrameLast getLast() {
    return last;
  }

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

  public BsBriefUpFrame minRC(BsBriefUpFrameMinRC 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 BsBriefUpFrameMinRC getMinRC() {
    return minRC;
  }

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

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

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

  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class BsBriefUpFrame {\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    ");
  }

}
