package io.delphiplatform.api.v3.model;

import com.fasterxml.jackson.annotation.JsonProperty;

import org.openapitools.jackson.nullable.JsonNullable;

import java.util.Objects;

/**
 * Gender
 */
public class Gender {

    @JsonProperty("female")
    private Long female;

    @JsonProperty("male")
    private Long male;

    @JsonProperty("unknown")
    private Long unknown;

    @JsonProperty("neutral")
    private Long neutral;

    public Gender female(Long female) {
        this.female = female;
        return this;
    }

    /**
     * Value for a demographics field. If we are missing data for the field, show it as ``null`` instead of ``0``, to
     * allow client to interpolate for missing data points.
     *
     * @return female
     */
    public Long getFemale() {
        return female;
    }

    public void setFemale(Long female) {
        this.female = female;
    }

    public Gender male(Long male) {
        this.male = male;
        return this;
    }

    /**
     * Value for a demographics field. If we are missing data for the field, show it as ``null`` instead of ``0``, to
     * allow client to interpolate for missing data points.
     *
     * @return male
     */
    public Long getMale() {
        return male;
    }

    public void setMale(Long male) {
        this.male = male;
    }

    public Gender unknown(Long unknown) {
        this.unknown = unknown;
        return this;
    }

    /**
     * Value for a demographics field. If we are missing data for the field, show it as ``null`` instead of ``0``, to
     * allow client to interpolate for missing data points.
     *
     * @return unknown
     */
    public Long getUnknown() {
        return unknown;
    }

    public void setUnknown(Long unknown) {
        this.unknown = unknown;
    }

    public Gender neutral(Long neutral) {
        this.neutral = neutral;
        return this;
    }

    /**
     * Value for a demographics field. If we are missing data for the field, show it as ``null`` instead of ``0``, to
     * allow client to interpolate for missing data points.
     *
     * @return neutral
     */
    public Long getNeutral() {
        return neutral;
    }

    public void setNeutral(Long neutral) {
        this.neutral = neutral;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) {
            return true;
        }
        if (o == null || getClass() != o.getClass()) {
            return false;
        }
        Gender gender = (Gender) o;
        return Objects.equals(this.female, gender.female) &&
            Objects.equals(this.male, gender.male) &&
            Objects.equals(this.unknown, gender.unknown) &&
            Objects.equals(this.neutral, gender.neutral);
    }

    @Override
    public int hashCode() {
        return Objects.hash(female, male, unknown, neutral);
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append("class Gender {\n");

        sb.append("    female: ").append(toIndentedString(female)).append("\n");
        sb.append("    male: ").append(toIndentedString(male)).append("\n");
        sb.append("    unknown: ").append(toIndentedString(unknown)).append("\n");
        sb.append("    neutral: ").append(toIndentedString(neutral)).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    ");
    }
}
