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

com.restbusters.rest.payload.model.Parameter Maven / Gradle / Ivy

Go to download

Automation and Release API and intergration support; supports REST APIs and external systems.

There is a newer version: 0.0.53
Show newest version

package com.restbusters.rest.payload.model;

import com.fasterxml.jackson.annotation.*;
import lombok.Getter;
import lombok.Setter;

import java.util.HashMap;
import java.util.Map;

@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonPropertyOrder({
    "name",
    "description",
    "optional"
})
@Setter
@Getter
public class Parameter {

    @JsonProperty("name")
    public String name;
    @JsonProperty("description")
    public String description;
    @JsonProperty("optional")
    public Boolean optional;
    @JsonIgnore
    private Map additionalProperties = new HashMap();

    public Parameter withName(String name) {
        this.name = name;
        return this;
    }

    public Parameter withDescription(String description) {
        this.description = description;
        return this;
    }

    public Parameter withOptional(Boolean optional) {
        this.optional = optional;
        return this;
    }

    @JsonAnyGetter
    public Map getAdditionalProperties() {
        return this.additionalProperties;
    }

    @JsonAnySetter
    public void setAdditionalProperty(String name, Object value) {
        this.additionalProperties.put(name, value);
    }

    public Parameter withAdditionalProperty(String name, Object value) {
        this.additionalProperties.put(name, value);
        return this;
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy