/*
 * ThingPark things management Devices API
 * REST interface for Devices 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.appserver;

import java.util.Objects;

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

/**
 * Only applicable to **ThingPark Enterprise**.
 */
@JsonPropertyOrder({ AppServerKafkaNotification.JSON_PROPERTY_BASE_STATION_ALARMS,
    AppServerKafkaNotification.JSON_PROPERTY_DEVICE_ALARMS })
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-05-29T11:38:36.048437806+02:00[Europe/Paris]", comments = "Generator version: 7.6.0")
public class AppServerKafkaNotification {
  public static final String JSON_PROPERTY_BASE_STATION_ALARMS = "baseStationAlarms";
  private Boolean baseStationAlarms = false;

  public static final String JSON_PROPERTY_DEVICE_ALARMS = "deviceAlarms";
  private Boolean deviceAlarms = false;

  public AppServerKafkaNotification() {
  }

  public AppServerKafkaNotification baseStationAlarms(Boolean baseStationAlarms) {

    this.baseStationAlarms = baseStationAlarms;
    return this;
  }

  /**
   * TRUE if the alarms of associated base stations are produced in the associated
   * Kafka topic
   * 
   * @return baseStationAlarms
   **/
  @javax.annotation.Nonnull
  @JsonProperty(JSON_PROPERTY_BASE_STATION_ALARMS)
  @JsonInclude(value = JsonInclude.Include.ALWAYS)

  public Boolean getBaseStationAlarms() {
    return baseStationAlarms;
  }

  @JsonProperty(JSON_PROPERTY_BASE_STATION_ALARMS)
  @JsonInclude(value = JsonInclude.Include.ALWAYS)
  public void setBaseStationAlarms(Boolean baseStationAlarms) {
    this.baseStationAlarms = baseStationAlarms;
  }

  public AppServerKafkaNotification deviceAlarms(Boolean deviceAlarms) {

    this.deviceAlarms = deviceAlarms;
    return this;
  }

  /**
   * TRUE if the alarms of associated devices are produced in the associated Kafka
   * topic
   * 
   * @return deviceAlarms
   **/
  @javax.annotation.Nonnull
  @JsonProperty(JSON_PROPERTY_DEVICE_ALARMS)
  @JsonInclude(value = JsonInclude.Include.ALWAYS)

  public Boolean getDeviceAlarms() {
    return deviceAlarms;
  }

  @JsonProperty(JSON_PROPERTY_DEVICE_ALARMS)
  @JsonInclude(value = JsonInclude.Include.ALWAYS)
  public void setDeviceAlarms(Boolean deviceAlarms) {
    this.deviceAlarms = deviceAlarms;
  }

  @Override
  public boolean equals(Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    AppServerKafkaNotification appServerKafkaNotification = (AppServerKafkaNotification) o;
    return Objects.equals(this.baseStationAlarms, appServerKafkaNotification.baseStationAlarms)
            && Objects.equals(this.deviceAlarms, appServerKafkaNotification.deviceAlarms);
  }

  @Override
  public int hashCode() {
    return Objects.hash(baseStationAlarms, deviceAlarms);
  }

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

}
