com.restbusters.rest.payload.model.Parameter Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of qreasp Show documentation
Show all versions of qreasp Show documentation
Automation and Release API and intergration support; supports REST APIs and external systems.
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;
}
}