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

org.swaggertools.demo.model.Cat Maven / Gradle / Ivy

There is a newer version: 0.5.6
Show newest version
package org.swaggertools.demo.model;

import com.fasterxml.jackson.annotation.JsonProperty;

public class Cat extends Pet {
    @JsonProperty("huntingSkill")
    private HuntingSkillEnum huntingSkill = HuntingSkillEnum.LAZY;

    public HuntingSkillEnum getHuntingSkill() {
        return huntingSkill;
    }

    public void setHuntingSkill(HuntingSkillEnum huntingSkill) {
        this.huntingSkill = huntingSkill;
    }

    public enum HuntingSkillEnum {
        @JsonProperty("clueless")
        CLUELESS,

        @JsonProperty("lazy")
        LAZY,

        @JsonProperty("adventurous")
        ADVENTUROUS,

        @JsonProperty("aggressive")
        AGGRESSIVE
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy