Class NfsMountEndpointProperties
java.lang.Object
com.azure.resourcemanager.storagemover.models.EndpointBaseProperties
com.azure.resourcemanager.storagemover.models.NfsMountEndpointProperties
- All Implemented Interfaces:
com.azure.json.JsonSerializable<EndpointBaseProperties>
The properties of NFS share endpoint.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of NfsMountEndpointProperties class. -
Method Summary
Modifier and TypeMethodDescriptionGet the endpointType property: The Endpoint resource type.export()Get the export property: The directory being exported from the server.static NfsMountEndpointPropertiesfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of NfsMountEndpointProperties from the JsonReader.host()Get the host property: The host name or IP address of the server exporting the file system.Get the nfsVersion property: The NFS protocol version.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withDescription(String description) Set the description property: A description for the Endpoint.withExport(String export) Set the export property: The directory being exported from the server.Set the host property: The host name or IP address of the server exporting the file system.withNfsVersion(NfsVersion nfsVersion) Set the nfsVersion property: The NFS protocol version.Methods inherited from class com.azure.resourcemanager.storagemover.models.EndpointBaseProperties
description, provisioningStateMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
NfsMountEndpointProperties
public NfsMountEndpointProperties()Creates an instance of NfsMountEndpointProperties class.
-
-
Method Details
-
endpointType
Get the endpointType property: The Endpoint resource type.- Overrides:
endpointTypein classEndpointBaseProperties- Returns:
- the endpointType value.
-
host
Get the host property: The host name or IP address of the server exporting the file system.- Returns:
- the host value.
-
withHost
Set the host property: The host name or IP address of the server exporting the file system.- Parameters:
host- the host value to set.- Returns:
- the NfsMountEndpointProperties object itself.
-
nfsVersion
Get the nfsVersion property: The NFS protocol version.- Returns:
- the nfsVersion value.
-
withNfsVersion
Set the nfsVersion property: The NFS protocol version.- Parameters:
nfsVersion- the nfsVersion value to set.- Returns:
- the NfsMountEndpointProperties object itself.
-
export
Get the export property: The directory being exported from the server.- Returns:
- the export value.
-
withExport
Set the export property: The directory being exported from the server.- Parameters:
export- the export value to set.- Returns:
- the NfsMountEndpointProperties object itself.
-
withDescription
Set the description property: A description for the Endpoint.- Overrides:
withDescriptionin classEndpointBaseProperties- Parameters:
description- the description value to set.- Returns:
- the EndpointBaseProperties object itself.
-
validate
public void validate()Validates the instance.- Overrides:
validatein classEndpointBaseProperties- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<EndpointBaseProperties>- Overrides:
toJsonin classEndpointBaseProperties- Throws:
IOException
-
fromJson
public static NfsMountEndpointProperties fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of NfsMountEndpointProperties from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of NfsMountEndpointProperties if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IllegalStateException- If the deserialized JSON object was missing any required properties.IOException- If an error occurs while reading the NfsMountEndpointProperties.
-