io.fabric8.swagger.model.ModelsProperty Maven / Gradle / Ivy
package io.fabric8.swagger.model;
import java.util.HashMap;
import java.util.LinkedHashSet;
import java.util.Map;
import java.util.Set;
import javax.annotation.Generated;
import javax.validation.Valid;
import javax.validation.constraints.NotNull;
import com.fasterxml.jackson.annotation.JsonAnyGetter;
import com.fasterxml.jackson.annotation.JsonAnySetter;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import lombok.EqualsAndHashCode;
import lombok.ToString;
@JsonInclude(JsonInclude.Include.NON_NULL)
@Generated("org.jsonschema2pojo")
@JsonPropertyOrder({
"id",
"description",
"properties",
"subTypes",
"discriminator"
})
@ToString
@EqualsAndHashCode
public class ModelsProperty {
/**
*
* (Required)
*
*/
@JsonProperty("id")
@NotNull
private String id;
@JsonProperty("description")
private String description;
/**
*
* (Required)
*
*/
@JsonProperty("properties")
@Valid
@NotNull
private Properties properties;
@JsonProperty("subTypes")
@JsonDeserialize(as = java.util.LinkedHashSet.class)
@Valid
private Set subTypes = new LinkedHashSet();
@JsonProperty("discriminator")
private String discriminator;
@JsonIgnore
private Map additionalProperties = new HashMap();
/**
*
* (Required)
*
* @return
* The id
*/
@JsonProperty("id")
public String getId() {
return id;
}
/**
*
* (Required)
*
* @param id
* The id
*/
@JsonProperty("id")
public void setId(String id) {
this.id = id;
}
/**
*
* @return
* The description
*/
@JsonProperty("description")
public String getDescription() {
return description;
}
/**
*
* @param description
* The description
*/
@JsonProperty("description")
public void setDescription(String description) {
this.description = description;
}
/**
*
* (Required)
*
* @return
* The properties
*/
@JsonProperty("properties")
public Properties getProperties() {
return properties;
}
/**
*
* (Required)
*
* @param properties
* The properties
*/
@JsonProperty("properties")
public void setProperties(Properties properties) {
this.properties = properties;
}
/**
*
* @return
* The subTypes
*/
@JsonProperty("subTypes")
public Set getSubTypes() {
return subTypes;
}
/**
*
* @param subTypes
* The subTypes
*/
@JsonProperty("subTypes")
public void setSubTypes(Set subTypes) {
this.subTypes = subTypes;
}
/**
*
* @return
* The discriminator
*/
@JsonProperty("discriminator")
public String getDiscriminator() {
return discriminator;
}
/**
*
* @param discriminator
* The discriminator
*/
@JsonProperty("discriminator")
public void setDiscriminator(String discriminator) {
this.discriminator = discriminator;
}
@JsonAnyGetter
public Map getAdditionalProperties() {
return this.additionalProperties;
}
@JsonAnySetter
public void setAdditionalProperty(String name, Object value) {
this.additionalProperties.put(name, value);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy