Package io.fabric8.kubernetes.api.model
Class NFSVolumeSource
- java.lang.Object
-
- io.fabric8.kubernetes.api.model.NFSVolumeSource
-
- All Implemented Interfaces:
io.fabric8.kubernetes.api.builder.Editable<NFSVolumeSourceBuilder>,KubernetesResource,Serializable
@Generated("io.fabric8.kubernetes.schema.generator.model.ModelGenerator") public class NFSVolumeSource extends Object implements io.fabric8.kubernetes.api.builder.Editable<NFSVolumeSourceBuilder>, KubernetesResource
Represents an NFS mount that lasts the lifetime of a pod. NFS volumes do not support ownership management or SELinux relabeling.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description NFSVolumeSource()No args constructor for use in serializationNFSVolumeSource(String path, Boolean readOnly, String server)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description NFSVolumeSourceBuilderedit()Map<String,Object>getAdditionalProperties()StringgetPath()path that is exported by the NFS server.BooleangetReadOnly()readOnly here will force the NFS export to be mounted with read-only permissions.StringgetServer()server is the hostname or IP address of the NFS server.voidsetAdditionalProperties(Map<String,Object> additionalProperties)voidsetAdditionalProperty(String name, Object value)voidsetPath(String path)path that is exported by the NFS server.voidsetReadOnly(Boolean readOnly)readOnly here will force the NFS export to be mounted with read-only permissions.voidsetServer(String server)server is the hostname or IP address of the NFS server.NFSVolumeSourceBuildertoBuilder()
-
-
-
Method Detail
-
getPath
public String getPath()
path that is exported by the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs
-
setPath
public void setPath(String path)
path that is exported by the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs
-
getReadOnly
public Boolean getReadOnly()
readOnly here will force the NFS export to be mounted with read-only permissions. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs
-
setReadOnly
public void setReadOnly(Boolean readOnly)
readOnly here will force the NFS export to be mounted with read-only permissions. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs
-
getServer
public String getServer()
server is the hostname or IP address of the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs
-
setServer
public void setServer(String server)
server is the hostname or IP address of the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs
-
edit
public NFSVolumeSourceBuilder edit()
- Specified by:
editin interfaceio.fabric8.kubernetes.api.builder.Editable<NFSVolumeSourceBuilder>
-
toBuilder
public NFSVolumeSourceBuilder toBuilder()
-
-