Class StorageSpec
- java.lang.Object
-
- io.fabric8.openshift.api.model.monitoring.v1.StorageSpec
-
- All Implemented Interfaces:
Editable<StorageSpecBuilder>,KubernetesResource,Serializable
@Generated("io.fabric8.kubernetes.schema.generator.model.ModelGenerator") public class StorageSpec extends Object implements Editable<StorageSpecBuilder>, KubernetesResource
StorageSpec defines the configured storage for a group Prometheus servers. If no storage option is specified, then by default an [EmptyDir](https://kubernetes.io/docs/concepts/storage/volumes/#emptydir) will be used.If multiple storage options are specified, priority will be given as follows:
1. emptyDir
2. ephemeral
3. volumeClaimTemplate
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description StorageSpec()No args constructor for use in serializationStorageSpec(Boolean disableMountSubPath, EmptyDirVolumeSource emptyDir, EphemeralVolumeSource ephemeral, EmbeddedPersistentVolumeClaim volumeClaimTemplate)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StorageSpecBuilderedit()Map<String,Object>getAdditionalProperties()BooleangetDisableMountSubPath()disableMountSubPath deprecated: subPath usage will be removed in a future release.EmptyDirVolumeSourcegetEmptyDir()StorageSpec defines the configured storage for a group Prometheus servers.EphemeralVolumeSourcegetEphemeral()StorageSpec defines the configured storage for a group Prometheus servers.EmbeddedPersistentVolumeClaimgetVolumeClaimTemplate()StorageSpec defines the configured storage for a group Prometheus servers.voidsetAdditionalProperties(Map<String,Object> additionalProperties)voidsetAdditionalProperty(String name, Object value)voidsetDisableMountSubPath(Boolean disableMountSubPath)disableMountSubPath deprecated: subPath usage will be removed in a future release.voidsetEmptyDir(EmptyDirVolumeSource emptyDir)StorageSpec defines the configured storage for a group Prometheus servers.voidsetEphemeral(EphemeralVolumeSource ephemeral)StorageSpec defines the configured storage for a group Prometheus servers.voidsetVolumeClaimTemplate(EmbeddedPersistentVolumeClaim volumeClaimTemplate)StorageSpec defines the configured storage for a group Prometheus servers.StorageSpecBuildertoBuilder()
-
-
-
Constructor Detail
-
StorageSpec
public StorageSpec()
No args constructor for use in serialization
-
StorageSpec
public StorageSpec(Boolean disableMountSubPath, EmptyDirVolumeSource emptyDir, EphemeralVolumeSource ephemeral, EmbeddedPersistentVolumeClaim volumeClaimTemplate)
-
-
Method Detail
-
getDisableMountSubPath
public Boolean getDisableMountSubPath()
disableMountSubPath deprecated: subPath usage will be removed in a future release.
-
setDisableMountSubPath
public void setDisableMountSubPath(Boolean disableMountSubPath)
disableMountSubPath deprecated: subPath usage will be removed in a future release.
-
getEmptyDir
public EmptyDirVolumeSource getEmptyDir()
StorageSpec defines the configured storage for a group Prometheus servers. If no storage option is specified, then by default an [EmptyDir](https://kubernetes.io/docs/concepts/storage/volumes/#emptydir) will be used.If multiple storage options are specified, priority will be given as follows:
1. emptyDir
2. ephemeral
3. volumeClaimTemplate
-
setEmptyDir
public void setEmptyDir(EmptyDirVolumeSource emptyDir)
StorageSpec defines the configured storage for a group Prometheus servers. If no storage option is specified, then by default an [EmptyDir](https://kubernetes.io/docs/concepts/storage/volumes/#emptydir) will be used.If multiple storage options are specified, priority will be given as follows:
1. emptyDir
2. ephemeral
3. volumeClaimTemplate
-
getEphemeral
public EphemeralVolumeSource getEphemeral()
StorageSpec defines the configured storage for a group Prometheus servers. If no storage option is specified, then by default an [EmptyDir](https://kubernetes.io/docs/concepts/storage/volumes/#emptydir) will be used.If multiple storage options are specified, priority will be given as follows:
1. emptyDir
2. ephemeral
3. volumeClaimTemplate
-
setEphemeral
public void setEphemeral(EphemeralVolumeSource ephemeral)
StorageSpec defines the configured storage for a group Prometheus servers. If no storage option is specified, then by default an [EmptyDir](https://kubernetes.io/docs/concepts/storage/volumes/#emptydir) will be used.If multiple storage options are specified, priority will be given as follows:
1. emptyDir
2. ephemeral
3. volumeClaimTemplate
-
getVolumeClaimTemplate
public EmbeddedPersistentVolumeClaim getVolumeClaimTemplate()
StorageSpec defines the configured storage for a group Prometheus servers. If no storage option is specified, then by default an [EmptyDir](https://kubernetes.io/docs/concepts/storage/volumes/#emptydir) will be used.If multiple storage options are specified, priority will be given as follows:
1. emptyDir
2. ephemeral
3. volumeClaimTemplate
-
setVolumeClaimTemplate
public void setVolumeClaimTemplate(EmbeddedPersistentVolumeClaim volumeClaimTemplate)
StorageSpec defines the configured storage for a group Prometheus servers. If no storage option is specified, then by default an [EmptyDir](https://kubernetes.io/docs/concepts/storage/volumes/#emptydir) will be used.If multiple storage options are specified, priority will be given as follows:
1. emptyDir
2. ephemeral
3. volumeClaimTemplate
-
edit
public StorageSpecBuilder edit()
- Specified by:
editin interfaceEditable<StorageSpecBuilder>
-
toBuilder
public StorageSpecBuilder toBuilder()
-
-