Class V1NFSVolumeSource
java.lang.Object
io.kubernetes.client.openapi.models.V1NFSVolumeSource
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2024-02-02T17:56:12.287571Z[Etc/UTC]")
public class V1NFSVolumeSource
extends Object
Represents an NFS mount that lasts the lifetime of a pod. NFS volumes do not support ownership management or SELinux relabeling.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
static V1NFSVolumeSource
Create an instance of V1NFSVolumeSource given an JSON stringgetPath()
path that is exported by the NFS server.readOnly here will force the NFS export to be mounted with read-only permissions.server is the hostname or IP address of the NFS server.int
hashCode()
void
void
setReadOnly
(Boolean readOnly) void
toJson()
Convert an instance of V1NFSVolumeSource to an JSON stringtoString()
static void
validateJsonObject
(com.google.gson.JsonObject jsonObj) Validates the JSON Object and throws an exception if issues found
-
Field Details
-
SERIALIZED_NAME_PATH
- See Also:
-
SERIALIZED_NAME_READ_ONLY
- See Also:
-
SERIALIZED_NAME_SERVER
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
V1NFSVolumeSource
public V1NFSVolumeSource()
-
-
Method Details
-
path
-
getPath
path that is exported by the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs- Returns:
- path
-
setPath
-
readOnly
-
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- Returns:
- readOnly
-
setReadOnly
-
server
-
getServer
server is the hostname or IP address of the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs- Returns:
- server
-
setServer
-
equals
-
hashCode
public int hashCode() -
toString
-
validateJsonObject
Validates the JSON Object and throws an exception if issues found- Parameters:
jsonObj
- JSON Object- Throws:
IOException
- if the JSON Object is invalid with respect to V1NFSVolumeSource
-
fromJson
Create an instance of V1NFSVolumeSource given an JSON string- Parameters:
jsonString
- JSON string- Returns:
- An instance of V1NFSVolumeSource
- Throws:
IOException
- if the JSON string is invalid with respect to V1NFSVolumeSource
-
toJson
Convert an instance of V1NFSVolumeSource to an JSON string- Returns:
- JSON string
-