/*
 * appNG REST API
 * The REST API for appNG
 *
 * OpenAPI spec version: 1.0.0
 * Contact: matthias.mueller@appng.org
 *
 * 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 org.appng.api.rest.model;

import java.util.Objects;
import java.util.Arrays;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.ArrayList;
import java.util.List;
import org.appng.api.rest.model.Option;
import java.io.Serializable;

/**
 * A set of selectable options
 */
@ApiModel(description = "A set of selectable options")
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-03-20T12:57:47.319+01:00")
public class Options implements Serializable {
  private static final long serialVersionUID = 1L;

  @JsonProperty("multiple")
  private Boolean multiple = null;

  @JsonProperty("entries")
  private List<Option> entries = null;

  public Options multiple(Boolean multiple) {
    this.multiple = multiple;
    return this;
  }

   /**
   * Whether or not this filter allows multiple options to be selected.
   * @return multiple
  **/
  @ApiModelProperty(value = "Whether or not this filter allows multiple options to be selected.")
  public Boolean isMultiple() {
    return multiple;
  }

  public void setMultiple(Boolean multiple) {
    this.multiple = multiple;
  }

  public Options entries(List<Option> entries) {
    this.entries = entries;
    return this;
  }

  public Options addEntriesItem(Option entriesItem) {
    if (this.entries == null) {
      this.entries = new ArrayList<Option>();
    }
    this.entries.add(entriesItem);
    return this;
  }

   /**
   * A list of options for this filter.
   * @return entries
  **/
  @ApiModelProperty(value = "A list of options for this filter.")
  public List<Option> getEntries() {
    return entries;
  }

  public void setEntries(List<Option> entries) {
    this.entries = entries;
  }


  @Override
  public boolean equals(java.lang.Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    Options options = (Options) o;
    return Objects.equals(this.multiple, options.multiple) &&
        Objects.equals(this.entries, options.entries);
  }

  @Override
  public int hashCode() {
    return Objects.hash(multiple, entries);
  }


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

}

