io.k8s.api.core.v1.PersistentVolumeClaimTemplate Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of bl-k8s130 Show documentation
Show all versions of bl-k8s130 Show documentation
Programmatic resource management for Kubernetes
package io.k8s.api.core.v1;
import io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta;
/**
* PersistentVolumeClaimTemplate is used to produce PersistentVolumeClaim objects as part of an EphemeralVolumeSource.
*/
public class PersistentVolumeClaimTemplate {
public ObjectMeta metadata;
public PersistentVolumeClaimSpec spec;
public PersistentVolumeClaimTemplate metadata(ObjectMeta metadata) {
this.metadata = metadata;
return this;
}
public PersistentVolumeClaimTemplate spec(PersistentVolumeClaimSpec spec) {
this.spec = spec;
return this;
}
public static PersistentVolumeClaimTemplate persistentVolumeClaimTemplate() {
return new PersistentVolumeClaimTemplate();
}
}