Class NfsAzureFileProperties
java.lang.Object
com.azure.resourcemanager.appcontainers.models.NfsAzureFileProperties
- All Implemented Interfaces:
com.azure.json.JsonSerializable<NfsAzureFileProperties>
public final class NfsAzureFileProperties
extends Object
implements com.azure.json.JsonSerializable<NfsAzureFileProperties>
NFS Azure File Properties.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of NfsAzureFileProperties class. -
Method Summary
Modifier and TypeMethodDescriptionGet the accessMode property: Access mode for storage.static NfsAzureFileProperties
fromJson
(com.azure.json.JsonReader jsonReader) Reads an instance of NfsAzureFileProperties from the JsonReader.server()
Get the server property: Server for NFS azure file.Get the shareName property: NFS Azure file share name.com.azure.json.JsonWriter
toJson
(com.azure.json.JsonWriter jsonWriter) void
validate()
Validates the instance.withAccessMode
(AccessMode accessMode) Set the accessMode property: Access mode for storage.withServer
(String server) Set the server property: Server for NFS azure file.withShareName
(String shareName) Set the shareName property: NFS Azure file share name.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
NfsAzureFileProperties
public NfsAzureFileProperties()Creates an instance of NfsAzureFileProperties class.
-
-
Method Details
-
server
Get the server property: Server for NFS azure file. Specify the Azure storage account server address.- Returns:
- the server value.
-
withServer
Set the server property: Server for NFS azure file. Specify the Azure storage account server address.- Parameters:
server
- the server value to set.- Returns:
- the NfsAzureFileProperties object itself.
-
accessMode
Get the accessMode property: Access mode for storage.- Returns:
- the accessMode value.
-
withAccessMode
Set the accessMode property: Access mode for storage.- Parameters:
accessMode
- the accessMode value to set.- Returns:
- the NfsAzureFileProperties object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
toJson
- Specified by:
toJson
in interfacecom.azure.json.JsonSerializable<NfsAzureFileProperties>
- Throws:
IOException
-
fromJson
public static NfsAzureFileProperties fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of NfsAzureFileProperties from the JsonReader.- Parameters:
jsonReader
- The JsonReader being read.- Returns:
- An instance of NfsAzureFileProperties if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IOException
- If an error occurs while reading the NfsAzureFileProperties.
-