Class StorageSpec
- java.lang.Object
-
- io.fabric8.openshift.api.model.monitoring.v1.StorageSpec
-
- All Implemented Interfaces:
io.fabric8.kubernetes.api.builder.Editable<StorageSpecBuilder>,io.fabric8.kubernetes.api.model.KubernetesResource,Serializable
@Generated("io.fabric8.kubernetes.schema.generator.model.ModelGenerator") public class StorageSpec extends Object implements io.fabric8.kubernetes.api.builder.Editable<StorageSpecBuilder>, io.fabric8.kubernetes.api.model.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, io.fabric8.kubernetes.api.model.EmptyDirVolumeSource emptyDir, io.fabric8.kubernetes.api.model.EphemeralVolumeSource ephemeral, EmbeddedPersistentVolumeClaim volumeClaimTemplate)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StorageSpecBuilderedit()Map<String,Object>getAdditionalProperties()BooleangetDisableMountSubPath()Deprecated: subPath usage will be removed in a future release.io.fabric8.kubernetes.api.model.EmptyDirVolumeSourcegetEmptyDir()StorageSpec defines the configured storage for a group Prometheus servers.io.fabric8.kubernetes.api.model.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)Deprecated: subPath usage will be removed in a future release.voidsetEmptyDir(io.fabric8.kubernetes.api.model.EmptyDirVolumeSource emptyDir)StorageSpec defines the configured storage for a group Prometheus servers.voidsetEphemeral(io.fabric8.kubernetes.api.model.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, io.fabric8.kubernetes.api.model.EmptyDirVolumeSource emptyDir, io.fabric8.kubernetes.api.model.EphemeralVolumeSource ephemeral, EmbeddedPersistentVolumeClaim volumeClaimTemplate)
-
-
Method Detail
-
getDisableMountSubPath
public Boolean getDisableMountSubPath()
Deprecated: subPath usage will be removed in a future release.
-
setDisableMountSubPath
public void setDisableMountSubPath(Boolean disableMountSubPath)
Deprecated: subPath usage will be removed in a future release.
-
getEmptyDir
public io.fabric8.kubernetes.api.model.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(io.fabric8.kubernetes.api.model.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 io.fabric8.kubernetes.api.model.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(io.fabric8.kubernetes.api.model.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 interfaceio.fabric8.kubernetes.api.builder.Editable<StorageSpecBuilder>
-
toBuilder
public StorageSpecBuilder toBuilder()
-
-