io.fabric8.kubernetes.api.model.config.Config Maven / Gradle / Ivy
The newest version!
package io.fabric8.kubernetes.api.model.config;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import javax.annotation.Generated;
import javax.validation.Valid;
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 org.apache.commons.lang.builder.EqualsBuilder;
import org.apache.commons.lang.builder.HashCodeBuilder;
import org.apache.commons.lang.builder.ToStringBuilder;
/**
*
*
*/
@JsonInclude(JsonInclude.Include.NON_NULL)
@Generated("org.jsonschema2pojo")
@JsonPropertyOrder({
"apiVersion",
"clusters",
"contexts",
"current-context",
"extensions",
"kind",
"preferences",
"users"
})
@JsonDeserialize(using = com.fasterxml.jackson.databind.JsonDeserializer.None.class)
public class Config {
/**
*
*
*/
@JsonProperty("apiVersion")
private String apiVersion;
/**
*
*
*/
@JsonProperty("clusters")
@Valid
private List clusters = new ArrayList();
/**
*
*
*/
@JsonProperty("contexts")
@Valid
private List contexts = new ArrayList();
/**
*
*
*/
@JsonProperty("current-context")
private String currentContext;
/**
*
*
*/
@JsonProperty("extensions")
@Valid
private List extensions = new ArrayList();
/**
*
*
*/
@JsonProperty("kind")
private String kind;
/**
*
*
*/
@JsonProperty("preferences")
@Valid
private Preferences preferences;
/**
*
*
*/
@JsonProperty("users")
@Valid
private List users = new ArrayList();
@JsonIgnore
private Map additionalProperties = new HashMap();
/**
* No args constructor for use in serialization
*
*/
public Config() {
}
/**
*
* @param apiVersion
* @param users
* @param clusters
* @param currentContext
* @param contexts
* @param extensions
* @param kind
* @param preferences
*/
public Config(String apiVersion, List clusters, List contexts, String currentContext, List extensions, String kind, Preferences preferences, List users) {
this.apiVersion = apiVersion;
this.clusters = clusters;
this.contexts = contexts;
this.currentContext = currentContext;
this.extensions = extensions;
this.kind = kind;
this.preferences = preferences;
this.users = users;
}
/**
*
*
* @return
* The apiVersion
*/
@JsonProperty("apiVersion")
public String getApiVersion() {
return apiVersion;
}
/**
*
*
* @param apiVersion
* The apiVersion
*/
@JsonProperty("apiVersion")
public void setApiVersion(String apiVersion) {
this.apiVersion = apiVersion;
}
/**
*
*
* @return
* The clusters
*/
@JsonProperty("clusters")
public List getClusters() {
return clusters;
}
/**
*
*
* @param clusters
* The clusters
*/
@JsonProperty("clusters")
public void setClusters(List clusters) {
this.clusters = clusters;
}
/**
*
*
* @return
* The contexts
*/
@JsonProperty("contexts")
public List getContexts() {
return contexts;
}
/**
*
*
* @param contexts
* The contexts
*/
@JsonProperty("contexts")
public void setContexts(List contexts) {
this.contexts = contexts;
}
/**
*
*
* @return
* The currentContext
*/
@JsonProperty("current-context")
public String getCurrentContext() {
return currentContext;
}
/**
*
*
* @param currentContext
* The current-context
*/
@JsonProperty("current-context")
public void setCurrentContext(String currentContext) {
this.currentContext = currentContext;
}
/**
*
*
* @return
* The extensions
*/
@JsonProperty("extensions")
public List getExtensions() {
return extensions;
}
/**
*
*
* @param extensions
* The extensions
*/
@JsonProperty("extensions")
public void setExtensions(List extensions) {
this.extensions = extensions;
}
/**
*
*
* @return
* The kind
*/
@JsonProperty("kind")
public String getKind() {
return kind;
}
/**
*
*
* @param kind
* The kind
*/
@JsonProperty("kind")
public void setKind(String kind) {
this.kind = kind;
}
/**
*
*
* @return
* The preferences
*/
@JsonProperty("preferences")
public Preferences getPreferences() {
return preferences;
}
/**
*
*
* @param preferences
* The preferences
*/
@JsonProperty("preferences")
public void setPreferences(Preferences preferences) {
this.preferences = preferences;
}
/**
*
*
* @return
* The users
*/
@JsonProperty("users")
public List getUsers() {
return users;
}
/**
*
*
* @param users
* The users
*/
@JsonProperty("users")
public void setUsers(List users) {
this.users = users;
}
@Override
public String toString() {
return ToStringBuilder.reflectionToString(this);
}
@JsonAnyGetter
public Map getAdditionalProperties() {
return this.additionalProperties;
}
@JsonAnySetter
public void setAdditionalProperty(String name, Object value) {
this.additionalProperties.put(name, value);
}
@Override
public int hashCode() {
return new HashCodeBuilder().append(apiVersion).append(clusters).append(contexts).append(currentContext).append(extensions).append(kind).append(preferences).append(users).append(additionalProperties).toHashCode();
}
@Override
public boolean equals(Object other) {
if (other == this) {
return true;
}
if ((other instanceof Config) == false) {
return false;
}
Config rhs = ((Config) other);
return new EqualsBuilder().append(apiVersion, rhs.apiVersion).append(clusters, rhs.clusters).append(contexts, rhs.contexts).append(currentContext, rhs.currentContext).append(extensions, rhs.extensions).append(kind, rhs.kind).append(preferences, rhs.preferences).append(users, rhs.users).append(additionalProperties, rhs.additionalProperties).isEquals();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy