/*
 * OpenAPI Petstore
 * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
 *
 * The version of the OpenAPI document: 1.0.0
 * 
 *
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
 * https://openapi-generator.tech
 * Do not edit the class manually.
 */

package org.openapitools.model;

import java.util.Objects;
import java.util.Arrays;
import com.fasterxml.jackson.annotation.*;

import javax.validation.constraints.*;
import javax.validation.Valid;
import io.micronaut.core.annotation.*;
import javax.annotation.Generated;

/**
 * ReadOnlyFirst
 */
@JsonPropertyOrder({
  ReadOnlyFirst.JSON_PROPERTY_BAR,
  ReadOnlyFirst.JSON_PROPERTY_BAZ
})
@JsonTypeName("ReadOnlyFirst")
@Generated(value="org.openapitools.codegen.languages.JavaMicronautClientCodegen", comments = "Generator version: 7.7.0-SNAPSHOT")
@Introspected
public class ReadOnlyFirst {
    public static final String JSON_PROPERTY_BAR = "bar";
    private String bar;

    public static final String JSON_PROPERTY_BAZ = "baz";
    private String baz;

    public ReadOnlyFirst() {
    }
    /**
     * Get bar
     * @return bar
     **/
    @Nullable
    @JsonProperty(JSON_PROPERTY_BAR)
    @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
    public String getBar() {
        return bar;
    }

    public ReadOnlyFirst baz(String baz) {
        this.baz = baz;
        return this;
    }

    /**
     * Get baz
     * @return baz
     **/
    @Nullable
    @JsonProperty(JSON_PROPERTY_BAZ)
    @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
    public String getBaz() {
        return baz;
    }

    @JsonProperty(JSON_PROPERTY_BAZ)
    @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
    public void setBaz(String baz) {
        this.baz = baz;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) {
            return true;
        }
        if (o == null || getClass() != o.getClass()) {
            return false;
        }
        ReadOnlyFirst readOnlyFirst = (ReadOnlyFirst) o;
        return Objects.equals(this.bar, readOnlyFirst.bar) &&
            Objects.equals(this.baz, readOnlyFirst.baz);
    }

    @Override
    public int hashCode() {
        return Objects.hash(bar, baz);
    }

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

}

