All Downloads are FREE. Search and download functionalities are using the official Maven repository.

pet.store.path.FindPets200Response Maven / Gradle / Ivy

There is a newer version: 0.1.22
Show newest version
package pet.store.path;

import com.fasterxml.jackson.annotation.JsonAutoDetect;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonInclude.Include;
import com.fasterxml.jackson.annotation.JsonValue;
import com.github.davidmoten.guavamini.Maps;

import jakarta.annotation.Generated;

import java.lang.Object;
import java.lang.Override;
import java.lang.String;
import java.util.List;
import java.util.Map;
import java.util.Objects;

import org.davidmoten.oa3.codegen.runtime.Preconditions;
import org.davidmoten.oa3.codegen.util.Util;

import pet.store.Globals;
import pet.store.schema.Pet;

@JsonInclude(Include.NON_ABSENT)
@JsonAutoDetect(
        fieldVisibility = JsonAutoDetect.Visibility.ANY,
        creatorVisibility = JsonAutoDetect.Visibility.ANY,
        setterVisibility = JsonAutoDetect.Visibility.ANY)
@Generated(value = "com.github.davidmoten:openapi-codegen-runtime:0.1.13")
public final class FindPets200Response {

    @JsonValue
    private final List value;

    @JsonCreator
    public FindPets200Response(
            List value) {
        if (Globals.config().validateInConstructor().test(FindPets200Response.class)) {
            Preconditions.checkNotNull(value, "value");
        }
        this.value = value;
    }

    public List value() {
        return value;
    }

    Map _internal_properties() {
        return Maps
                .put("findPets200ResponseItem", (Object) value)
                .build();
    }

    public static FindPets200Response of(List value) {
        return new FindPets200Response(value);
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) {
            return true;
        }
        if (o == null || getClass() != o.getClass()) {
            return false;
        }
        FindPets200Response other = (FindPets200Response) o;
        return 
            Objects.equals(this.value, other.value);
    }

    @Override
    public int hashCode() {
        return Objects.hash(value);
    }

    @Override
    public String toString() {
        return Util.toString(FindPets200Response.class, "value", value);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy