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

/**
 * AppServerKafkaDestination
 */
@JsonPropertyOrder({ AppServerKafkaDestination.JSON_PROPERTY_BROKER_I_D,
    AppServerKafkaDestination.JSON_PROPERTY_TOPIC_NAME })
@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 AppServerKafkaDestination {
  public static final String JSON_PROPERTY_BROKER_I_D = "brokerID";
  private String brokerID;

  public static final String JSON_PROPERTY_TOPIC_NAME = "topicName";
  private String topicName;

  public AppServerKafkaDestination() {
  }

  public AppServerKafkaDestination brokerID(String brokerID) {

    this.brokerID = brokerID;
    return this;
  }

  /**
   * Kafka Broker ID
   * 
   * @return brokerID
   **/
  @javax.annotation.Nonnull
  @JsonProperty(JSON_PROPERTY_BROKER_I_D)
  @JsonInclude(value = JsonInclude.Include.ALWAYS)

  public String getBrokerID() {
    return brokerID;
  }

  @JsonProperty(JSON_PROPERTY_BROKER_I_D)
  @JsonInclude(value = JsonInclude.Include.ALWAYS)
  public void setBrokerID(String brokerID) {
    this.brokerID = brokerID;
  }

  public AppServerKafkaDestination topicName(String topicName) {

    this.topicName = topicName;
    return this;
  }

  /**
   * Kafka Topic name
   * 
   * @return topicName
   **/
  @javax.annotation.Nonnull
  @JsonProperty(JSON_PROPERTY_TOPIC_NAME)
  @JsonInclude(value = JsonInclude.Include.ALWAYS)

  public String getTopicName() {
    return topicName;
  }

  @JsonProperty(JSON_PROPERTY_TOPIC_NAME)
  @JsonInclude(value = JsonInclude.Include.ALWAYS)
  public void setTopicName(String topicName) {
    this.topicName = topicName;
  }

  @Override
  public boolean equals(Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    AppServerKafkaDestination appServerKafkaDestination = (AppServerKafkaDestination) o;
    return Objects.equals(this.brokerID, appServerKafkaDestination.brokerID)
            && Objects.equals(this.topicName, appServerKafkaDestination.topicName);
  }

  @Override
  public int hashCode() {
    return Objects.hash(brokerID, topicName);
  }

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

}
