Please wait. This can take some minutes ...
Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance.
Project price only 1 $
You can buy this project and download/modify it how often you want.
io.alauda.kubernetes.api.model.PodSpec 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",
"activeDeadlineSeconds",
"affinity",
"automountServiceAccountToken",
"containers",
"dnsPolicy",
"hostAliases",
"hostIPC",
"hostNetwork",
"hostPID",
"hostname",
"imagePullSecrets",
"initContainers",
"nodeName",
"nodeSelector",
"restartPolicy",
"schedulerName",
"securityContext",
"serviceAccount",
"serviceAccountName",
"subdomain",
"terminationGracePeriodSeconds",
"tolerations",
"volumes"
})
@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 PodSpec implements KubernetesResource
{
/**
*
*
*/
@JsonProperty("activeDeadlineSeconds")
private Long activeDeadlineSeconds;
/**
*
*
*/
@JsonProperty("affinity")
@Valid
private Affinity affinity;
/**
*
*
*/
@JsonProperty("automountServiceAccountToken")
private Boolean automountServiceAccountToken;
/**
*
*
*/
@JsonProperty("containers")
@Valid
private List containers = new ArrayList();
/**
*
*
*/
@JsonProperty("dnsPolicy")
private java.lang.String dnsPolicy;
/**
*
*
*/
@JsonProperty("hostAliases")
@JsonInclude(JsonInclude.Include.NON_EMPTY)
@Valid
private List hostAliases = new ArrayList();
/**
*
*
*/
@JsonProperty("hostIPC")
private Boolean hostIPC;
/**
*
*
*/
@JsonProperty("hostNetwork")
private Boolean hostNetwork;
/**
*
*
*/
@JsonProperty("hostPID")
private Boolean hostPID;
/**
*
*
*/
@JsonProperty("hostname")
private java.lang.String hostname;
/**
*
*
*/
@JsonProperty("imagePullSecrets")
@JsonInclude(JsonInclude.Include.NON_EMPTY)
@Valid
private List imagePullSecrets = new ArrayList();
/**
*
*
*/
@JsonProperty("initContainers")
@JsonInclude(JsonInclude.Include.NON_EMPTY)
@Valid
private List initContainers = new ArrayList();
/**
*
*
*/
@JsonProperty("nodeName")
private java.lang.String nodeName;
/**
*
*
*/
@JsonProperty("nodeSelector")
@Valid
private Map nodeSelector;
/**
*
*
*/
@JsonProperty("restartPolicy")
private java.lang.String restartPolicy;
/**
*
*
*/
@JsonProperty("schedulerName")
private java.lang.String schedulerName;
/**
*
*
*/
@JsonProperty("securityContext")
@Valid
private PodSecurityContext securityContext;
/**
*
*
*/
@JsonProperty("serviceAccount")
private java.lang.String serviceAccount;
/**
*
*
*/
@JsonProperty("serviceAccountName")
private java.lang.String serviceAccountName;
/**
*
*
*/
@JsonProperty("subdomain")
private java.lang.String subdomain;
/**
*
*
*/
@JsonProperty("terminationGracePeriodSeconds")
private Long terminationGracePeriodSeconds;
/**
*
*
*/
@JsonProperty("tolerations")
@JsonInclude(JsonInclude.Include.NON_EMPTY)
@Valid
private List tolerations = new ArrayList();
/**
*
*
*/
@JsonProperty("volumes")
@JsonInclude(JsonInclude.Include.NON_EMPTY)
@Valid
private List volumes = new ArrayList();
@JsonIgnore
private Map additionalProperties = new HashMap();
/**
* No args constructor for use in serialization
*
*/
public PodSpec() {
}
/**
*
* @param dnsPolicy
* @param nodeName
* @param terminationGracePeriodSeconds
* @param hostNetwork
* @param serviceAccountName
* @param imagePullSecrets
* @param hostIPC
* @param volumes
* @param hostAliases
* @param serviceAccount
* @param securityContext
* @param restartPolicy
* @param nodeSelector
* @param hostname
* @param tolerations
* @param automountServiceAccountToken
* @param subdomain
* @param containers
* @param schedulerName
* @param activeDeadlineSeconds
* @param initContainers
* @param affinity
* @param hostPID
*/
public PodSpec(Long activeDeadlineSeconds, Affinity affinity, Boolean automountServiceAccountToken, List containers, java.lang.String dnsPolicy, List hostAliases, Boolean hostIPC, Boolean hostNetwork, Boolean hostPID, java.lang.String hostname, List imagePullSecrets, List initContainers, java.lang.String nodeName, Map nodeSelector, java.lang.String restartPolicy, java.lang.String schedulerName, PodSecurityContext securityContext, java.lang.String serviceAccount, java.lang.String serviceAccountName, java.lang.String subdomain, Long terminationGracePeriodSeconds, List tolerations, List volumes) {
this.activeDeadlineSeconds = activeDeadlineSeconds;
this.affinity = affinity;
this.automountServiceAccountToken = automountServiceAccountToken;
this.containers = containers;
this.dnsPolicy = dnsPolicy;
this.hostAliases = hostAliases;
this.hostIPC = hostIPC;
this.hostNetwork = hostNetwork;
this.hostPID = hostPID;
this.hostname = hostname;
this.imagePullSecrets = imagePullSecrets;
this.initContainers = initContainers;
this.nodeName = nodeName;
this.nodeSelector = nodeSelector;
this.restartPolicy = restartPolicy;
this.schedulerName = schedulerName;
this.securityContext = securityContext;
this.serviceAccount = serviceAccount;
this.serviceAccountName = serviceAccountName;
this.subdomain = subdomain;
this.terminationGracePeriodSeconds = terminationGracePeriodSeconds;
this.tolerations = tolerations;
this.volumes = volumes;
}
/**
*
*
* @return
* The activeDeadlineSeconds
*/
@JsonProperty("activeDeadlineSeconds")
public Long getActiveDeadlineSeconds() {
return activeDeadlineSeconds;
}
/**
*
*
* @param activeDeadlineSeconds
* The activeDeadlineSeconds
*/
@JsonProperty("activeDeadlineSeconds")
public void setActiveDeadlineSeconds(Long activeDeadlineSeconds) {
this.activeDeadlineSeconds = activeDeadlineSeconds;
}
/**
*
*
* @return
* The affinity
*/
@JsonProperty("affinity")
public Affinity getAffinity() {
return affinity;
}
/**
*
*
* @param affinity
* The affinity
*/
@JsonProperty("affinity")
public void setAffinity(Affinity affinity) {
this.affinity = affinity;
}
/**
*
*
* @return
* The automountServiceAccountToken
*/
@JsonProperty("automountServiceAccountToken")
public Boolean getAutomountServiceAccountToken() {
return automountServiceAccountToken;
}
/**
*
*
* @param automountServiceAccountToken
* The automountServiceAccountToken
*/
@JsonProperty("automountServiceAccountToken")
public void setAutomountServiceAccountToken(Boolean automountServiceAccountToken) {
this.automountServiceAccountToken = automountServiceAccountToken;
}
/**
*
*
* @return
* The containers
*/
@JsonProperty("containers")
public List getContainers() {
return containers;
}
/**
*
*
* @param containers
* The containers
*/
@JsonProperty("containers")
public void setContainers(List containers) {
this.containers = containers;
}
/**
*
*
* @return
* The dnsPolicy
*/
@JsonProperty("dnsPolicy")
public java.lang.String getDnsPolicy() {
return dnsPolicy;
}
/**
*
*
* @param dnsPolicy
* The dnsPolicy
*/
@JsonProperty("dnsPolicy")
public void setDnsPolicy(java.lang.String dnsPolicy) {
this.dnsPolicy = dnsPolicy;
}
/**
*
*
* @return
* The hostAliases
*/
@JsonProperty("hostAliases")
public List getHostAliases() {
return hostAliases;
}
/**
*
*
* @param hostAliases
* The hostAliases
*/
@JsonProperty("hostAliases")
public void setHostAliases(List hostAliases) {
this.hostAliases = hostAliases;
}
/**
*
*
* @return
* The hostIPC
*/
@JsonProperty("hostIPC")
public Boolean getHostIPC() {
return hostIPC;
}
/**
*
*
* @param hostIPC
* The hostIPC
*/
@JsonProperty("hostIPC")
public void setHostIPC(Boolean hostIPC) {
this.hostIPC = hostIPC;
}
/**
*
*
* @return
* The hostNetwork
*/
@JsonProperty("hostNetwork")
public Boolean getHostNetwork() {
return hostNetwork;
}
/**
*
*
* @param hostNetwork
* The hostNetwork
*/
@JsonProperty("hostNetwork")
public void setHostNetwork(Boolean hostNetwork) {
this.hostNetwork = hostNetwork;
}
/**
*
*
* @return
* The hostPID
*/
@JsonProperty("hostPID")
public Boolean getHostPID() {
return hostPID;
}
/**
*
*
* @param hostPID
* The hostPID
*/
@JsonProperty("hostPID")
public void setHostPID(Boolean hostPID) {
this.hostPID = hostPID;
}
/**
*
*
* @return
* The hostname
*/
@JsonProperty("hostname")
public java.lang.String getHostname() {
return hostname;
}
/**
*
*
* @param hostname
* The hostname
*/
@JsonProperty("hostname")
public void setHostname(java.lang.String hostname) {
this.hostname = hostname;
}
/**
*
*
* @return
* The imagePullSecrets
*/
@JsonProperty("imagePullSecrets")
public List getImagePullSecrets() {
return imagePullSecrets;
}
/**
*
*
* @param imagePullSecrets
* The imagePullSecrets
*/
@JsonProperty("imagePullSecrets")
public void setImagePullSecrets(List imagePullSecrets) {
this.imagePullSecrets = imagePullSecrets;
}
/**
*
*
* @return
* The initContainers
*/
@JsonProperty("initContainers")
public List getInitContainers() {
return initContainers;
}
/**
*
*
* @param initContainers
* The initContainers
*/
@JsonProperty("initContainers")
public void setInitContainers(List initContainers) {
this.initContainers = initContainers;
}
/**
*
*
* @return
* The nodeName
*/
@JsonProperty("nodeName")
public java.lang.String getNodeName() {
return nodeName;
}
/**
*
*
* @param nodeName
* The nodeName
*/
@JsonProperty("nodeName")
public void setNodeName(java.lang.String nodeName) {
this.nodeName = nodeName;
}
/**
*
*
* @return
* The nodeSelector
*/
@JsonProperty("nodeSelector")
public Map getNodeSelector() {
return nodeSelector;
}
/**
*
*
* @param nodeSelector
* The nodeSelector
*/
@JsonProperty("nodeSelector")
public void setNodeSelector(Map nodeSelector) {
this.nodeSelector = nodeSelector;
}
/**
*
*
* @return
* The restartPolicy
*/
@JsonProperty("restartPolicy")
public java.lang.String getRestartPolicy() {
return restartPolicy;
}
/**
*
*
* @param restartPolicy
* The restartPolicy
*/
@JsonProperty("restartPolicy")
public void setRestartPolicy(java.lang.String restartPolicy) {
this.restartPolicy = restartPolicy;
}
/**
*
*
* @return
* The schedulerName
*/
@JsonProperty("schedulerName")
public java.lang.String getSchedulerName() {
return schedulerName;
}
/**
*
*
* @param schedulerName
* The schedulerName
*/
@JsonProperty("schedulerName")
public void setSchedulerName(java.lang.String schedulerName) {
this.schedulerName = schedulerName;
}
/**
*
*
* @return
* The securityContext
*/
@JsonProperty("securityContext")
public PodSecurityContext getSecurityContext() {
return securityContext;
}
/**
*
*
* @param securityContext
* The securityContext
*/
@JsonProperty("securityContext")
public void setSecurityContext(PodSecurityContext securityContext) {
this.securityContext = securityContext;
}
/**
*
*
* @return
* The serviceAccount
*/
@JsonProperty("serviceAccount")
public java.lang.String getServiceAccount() {
return serviceAccount;
}
/**
*
*
* @param serviceAccount
* The serviceAccount
*/
@JsonProperty("serviceAccount")
public void setServiceAccount(java.lang.String serviceAccount) {
this.serviceAccount = serviceAccount;
}
/**
*
*
* @return
* The serviceAccountName
*/
@JsonProperty("serviceAccountName")
public java.lang.String getServiceAccountName() {
return serviceAccountName;
}
/**
*
*
* @param serviceAccountName
* The serviceAccountName
*/
@JsonProperty("serviceAccountName")
public void setServiceAccountName(java.lang.String serviceAccountName) {
this.serviceAccountName = serviceAccountName;
}
/**
*
*
* @return
* The subdomain
*/
@JsonProperty("subdomain")
public java.lang.String getSubdomain() {
return subdomain;
}
/**
*
*
* @param subdomain
* The subdomain
*/
@JsonProperty("subdomain")
public void setSubdomain(java.lang.String subdomain) {
this.subdomain = subdomain;
}
/**
*
*
* @return
* The terminationGracePeriodSeconds
*/
@JsonProperty("terminationGracePeriodSeconds")
public Long getTerminationGracePeriodSeconds() {
return terminationGracePeriodSeconds;
}
/**
*
*
* @param terminationGracePeriodSeconds
* The terminationGracePeriodSeconds
*/
@JsonProperty("terminationGracePeriodSeconds")
public void setTerminationGracePeriodSeconds(Long terminationGracePeriodSeconds) {
this.terminationGracePeriodSeconds = terminationGracePeriodSeconds;
}
/**
*
*
* @return
* The tolerations
*/
@JsonProperty("tolerations")
public List getTolerations() {
return tolerations;
}
/**
*
*
* @param tolerations
* The tolerations
*/
@JsonProperty("tolerations")
public void setTolerations(List tolerations) {
this.tolerations = tolerations;
}
/**
*
*
* @return
* The volumes
*/
@JsonProperty("volumes")
public List getVolumes() {
return volumes;
}
/**
*
*
* @param volumes
* The volumes
*/
@JsonProperty("volumes")
public void setVolumes(List volumes) {
this.volumes = volumes;
}
@JsonAnyGetter
public Map getAdditionalProperties() {
return this.additionalProperties;
}
@JsonAnySetter
public void setAdditionalProperty(java.lang.String name, Object value) {
this.additionalProperties.put(name, value);
}
}