openapi-nexus 0.1.3

OpenAPI 3.x multi-language code generator
Documentation
// Code generated by openapi-nexus. DO NOT EDIT.
//
// Petstore API — 1.0.0
// This is a sample Pet Store Server based on the OpenAPI 3.1 specification

package com.example.sdk.models;

import com.google.gson.annotations.SerializedName;

/**
 * Order model
 */
public class Order {
    private Boolean complete;
    private Long id;
    @SerializedName("pet_id")
    private Long petId;
    private Integer quantity;
    @SerializedName("ship_date")
    private String shipDate;
    private OrderStatus status;

    public Order(Boolean complete, Long id, Long petId, Integer quantity, String shipDate,
    OrderStatus status) {
        this.complete = complete;
        this.id = id;
        this.petId = petId;
        this.quantity = quantity;
        this.shipDate = shipDate;
        this.status = status;
    }

    public Boolean getComplete() {
        return this.complete;
    }

    public Long getId() {
        return this.id;
    }

    public Long getPetId() {
        return this.petId;
    }

    public Integer getQuantity() {
        return this.quantity;
    }

    public String getShipDate() {
        return this.shipDate;
    }

    public OrderStatus getStatus() {
        return this.status;
    }
}