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 NFSVolumeSourceBuilder
edit()
Map<String,Object>
getAdditionalProperties()
String
getPath()
path that is exported by the NFS server.Boolean
getReadOnly()
readOnly here will force the NFS export to be mounted with read-only permissions.String
getServer()
server is the hostname or IP address of the NFS server.void
setAdditionalProperties(Map<String,Object> additionalProperties)
void
setAdditionalProperty(String name, Object value)
void
setPath(String path)
path that is exported by the NFS server.void
setReadOnly(Boolean readOnly)
readOnly here will force the NFS export to be mounted with read-only permissions.void
setServer(String server)
server is the hostname or IP address of the NFS server.NFSVolumeSourceBuilder
toBuilder()
-
-
-
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:
edit
in interfaceio.fabric8.kubernetes.api.builder.Editable<NFSVolumeSourceBuilder>
-
toBuilder
public NFSVolumeSourceBuilder toBuilder()
-
-