io.fabric8.kubernetes.api.model.Secret Maven / Gradle / Ivy
package io.fabric8.kubernetes.api.model;
import java.util.HashMap;
import java.util.Map;
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.JsonCreator;
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.annotation.JsonValue;
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",
"data",
"kind",
"metadata",
"type"
})
public class Secret implements HasMetadata
{
/**
*
* (Required)
*
*/
@JsonProperty("apiVersion")
@NotNull
private Secret.ApiVersion apiVersion = Secret.ApiVersion.fromValue("v1beta3");
/**
* data contains the secret data. Each key must be a valid DNS_SUBDOMAIN. Each value must be a base64 encoded string
*
*/
@JsonProperty("data")
@Valid
private Map data;
/**
*
* (Required)
*
*/
@JsonProperty("kind")
@NotNull
private java.lang.String kind = "Secret";
/**
*
*
*/
@JsonProperty("metadata")
@Valid
private ObjectMeta metadata;
/**
* type facilitates programmatic handling of secret data
*
*/
@JsonProperty("type")
private java.lang.String type;
@JsonIgnore
private Map additionalProperties = new HashMap();
/**
* No args constructor for use in serialization
*
*/
public Secret() {
}
/**
*
* @param apiVersion
* @param data
* @param type
* @param kind
* @param metadata
*/
public Secret(Secret.ApiVersion apiVersion, Map data, java.lang.String kind, ObjectMeta metadata, java.lang.String type) {
this.apiVersion = apiVersion;
this.data = data;
this.kind = kind;
this.metadata = metadata;
this.type = type;
}
/**
*
* (Required)
*
* @return
* The apiVersion
*/
@JsonProperty("apiVersion")
public Secret.ApiVersion getApiVersion() {
return apiVersion;
}
/**
*
* (Required)
*
* @param apiVersion
* The apiVersion
*/
@JsonProperty("apiVersion")
public void setApiVersion(Secret.ApiVersion apiVersion) {
this.apiVersion = apiVersion;
}
/**
* data contains the secret data. Each key must be a valid DNS_SUBDOMAIN. Each value must be a base64 encoded string
*
* @return
* The data
*/
@JsonProperty("data")
public Map getData() {
return data;
}
/**
* data contains the secret data. Each key must be a valid DNS_SUBDOMAIN. Each value must be a base64 encoded string
*
* @param data
* The data
*/
@JsonProperty("data")
public void setData(Map data) {
this.data = data;
}
/**
*
* (Required)
*
* @return
* The kind
*/
@JsonProperty("kind")
public java.lang.String getKind() {
return kind;
}
/**
*
* (Required)
*
* @param kind
* The kind
*/
@JsonProperty("kind")
public void setKind(java.lang.String kind) {
this.kind = kind;
}
/**
*
*
* @return
* The metadata
*/
@JsonProperty("metadata")
public ObjectMeta getMetadata() {
return metadata;
}
/**
*
*
* @param metadata
* The metadata
*/
@JsonProperty("metadata")
public void setMetadata(ObjectMeta metadata) {
this.metadata = metadata;
}
/**
* type facilitates programmatic handling of secret data
*
* @return
* The type
*/
@JsonProperty("type")
public java.lang.String getType() {
return type;
}
/**
* type facilitates programmatic handling of secret data
*
* @param type
* The type
*/
@JsonProperty("type")
public void setType(java.lang.String type) {
this.type = type;
}
@Override
public java.lang.String toString() {
return ToStringBuilder.reflectionToString(this);
}
@JsonAnyGetter
public Map getAdditionalProperties() {
return this.additionalProperties;
}
@JsonAnySetter
public void setAdditionalProperty(java.lang.String name, Object value) {
this.additionalProperties.put(name, value);
}
@Override
public int hashCode() {
return new HashCodeBuilder().append(apiVersion).append(data).append(kind).append(metadata).append(type).append(additionalProperties).toHashCode();
}
@Override
public boolean equals(Object other) {
if (other == this) {
return true;
}
if ((other instanceof Secret) == false) {
return false;
}
Secret rhs = ((Secret) other);
return new EqualsBuilder().append(apiVersion, rhs.apiVersion).append(data, rhs.data).append(kind, rhs.kind).append(metadata, rhs.metadata).append(type, rhs.type).append(additionalProperties, rhs.additionalProperties).isEquals();
}
@Generated("org.jsonschema2pojo")
public static enum ApiVersion {
V_1_BETA_1("v1beta1"),
V_1_BETA_2("v1beta2"),
V_1_BETA_3("v1beta3");
private final java.lang.String value;
private static Map constants = new HashMap();
static {
for (Secret.ApiVersion c: values()) {
constants.put(c.value, c);
}
}
private ApiVersion(java.lang.String value) {
this.value = value;
}
@JsonValue
@Override
public java.lang.String toString() {
return this.value;
}
@JsonCreator
public static Secret.ApiVersion fromValue(java.lang.String value) {
Secret.ApiVersion constant = constants.get(value);
if (constant == null) {
throw new IllegalArgumentException(value);
} else {
return constant;
}
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy