io.alauda.kubernetes.api.model.SecretVolumeSource Maven / Gradle / Ivy
package io.alauda.kubernetes.api.model;
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 io.alauda.kubernetes.api.model.Doneable;
import io.sundr.builder.annotations.Buildable;
import io.sundr.builder.annotations.Inline;
import lombok.EqualsAndHashCode;
import lombok.ToString;
/**
*
*
*/
@JsonInclude(JsonInclude.Include.NON_NULL)
@Generated("org.jsonschema2pojo")
@JsonPropertyOrder({
"apiVersion",
"kind",
"metadata",
"defaultMode",
"items",
"optional",
"secretName"
})
@JsonDeserialize(using = com.fasterxml.jackson.databind.JsonDeserializer.None.class)
@ToString
@EqualsAndHashCode
@Buildable(editableEnabled = false, validationEnabled = true, generateBuilderPackage = true, builderPackage = "io.alauda.kubernetes.api.builder", inline = @Inline(type = Doneable.class, prefix = "Doneable", value = "done"))
public class SecretVolumeSource implements KubernetesResource
{
/**
*
*
*/
@JsonProperty("defaultMode")
private Integer defaultMode;
/**
*
*
*/
@JsonProperty("items")
@JsonInclude(JsonInclude.Include.NON_EMPTY)
@Valid
private List items = new ArrayList();
/**
*
*
*/
@JsonProperty("optional")
private Boolean optional;
/**
*
*
*/
@JsonProperty("secretName")
private String secretName;
@JsonIgnore
private Map additionalProperties = new HashMap();
/**
* No args constructor for use in serialization
*
*/
public SecretVolumeSource() {
}
/**
*
* @param secretName
* @param defaultMode
* @param optional
* @param items
*/
public SecretVolumeSource(Integer defaultMode, List items, Boolean optional, String secretName) {
this.defaultMode = defaultMode;
this.items = items;
this.optional = optional;
this.secretName = secretName;
}
/**
*
*
* @return
* The defaultMode
*/
@JsonProperty("defaultMode")
public Integer getDefaultMode() {
return defaultMode;
}
/**
*
*
* @param defaultMode
* The defaultMode
*/
@JsonProperty("defaultMode")
public void setDefaultMode(Integer defaultMode) {
this.defaultMode = defaultMode;
}
/**
*
*
* @return
* The items
*/
@JsonProperty("items")
public List getItems() {
return items;
}
/**
*
*
* @param items
* The items
*/
@JsonProperty("items")
public void setItems(List items) {
this.items = items;
}
/**
*
*
* @return
* The optional
*/
@JsonProperty("optional")
public Boolean getOptional() {
return optional;
}
/**
*
*
* @param optional
* The optional
*/
@JsonProperty("optional")
public void setOptional(Boolean optional) {
this.optional = optional;
}
/**
*
*
* @return
* The secretName
*/
@JsonProperty("secretName")
public String getSecretName() {
return secretName;
}
/**
*
*
* @param secretName
* The secretName
*/
@JsonProperty("secretName")
public void setSecretName(String secretName) {
this.secretName = secretName;
}
@JsonAnyGetter
public Map getAdditionalProperties() {
return this.additionalProperties;
}
@JsonAnySetter
public void setAdditionalProperty(String name, Object value) {
this.additionalProperties.put(name, value);
}
}