FileShare Class

  • java.lang.Object
    • com.azure.resourcemanager.containerinstance.models.FileShare

Implements

public final class FileShare
implements JsonSerializable<FileShare>

File shares that can be mounted on container groups.

Constructor Summary

Constructor Description
FileShare()

Creates an instance of FileShare class.

Method Summary

Modifier and Type Method and Description
static FileShare fromJson(JsonReader jsonReader)

Reads an instance of FileShare from the JsonReader.

String name()

Get the name property: The name property.

FileShareProperties properties()

Get the properties property: The properties property.

String resourceGroupName()

Get the resourceGroupName property: The resourceGroupName property.

String storageAccountName()

Get the storageAccountName property: The storageAccountName property.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

FileShare withName(String name)

Set the name property: The name property.

FileShare withProperties(FileShareProperties properties)

Set the properties property: The properties property.

FileShare withResourceGroupName(String resourceGroupName)

Set the resourceGroupName property: The resourceGroupName property.

FileShare withStorageAccountName(String storageAccountName)

Set the storageAccountName property: The storageAccountName property.

Methods inherited from java.lang.Object

Constructor Details

FileShare

public FileShare()

Creates an instance of FileShare class.

Method Details

fromJson

public static FileShare fromJson(JsonReader jsonReader)

Reads an instance of FileShare from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of FileShare 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 FileShare.

name

public String name()

Get the name property: The name property.

Returns:

the name value.

properties

public FileShareProperties properties()

Get the properties property: The properties property.

Returns:

the properties value.

resourceGroupName

public String resourceGroupName()

Get the resourceGroupName property: The resourceGroupName property.

Returns:

the resourceGroupName value.

storageAccountName

public String storageAccountName()

Get the storageAccountName property: The storageAccountName property.

Returns:

the storageAccountName value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withName

public FileShare withName(String name)

Set the name property: The name property.

Parameters:

name - the name value to set.

Returns:

the FileShare object itself.

withProperties

public FileShare withProperties(FileShareProperties properties)

Set the properties property: The properties property.

Parameters:

properties - the properties value to set.

Returns:

the FileShare object itself.

withResourceGroupName

public FileShare withResourceGroupName(String resourceGroupName)

Set the resourceGroupName property: The resourceGroupName property.

Parameters:

resourceGroupName - the resourceGroupName value to set.

Returns:

the FileShare object itself.

withStorageAccountName

public FileShare withStorageAccountName(String storageAccountName)

Set the storageAccountName property: The storageAccountName property.

Parameters:

storageAccountName - the storageAccountName value to set.

Returns:

the FileShare object itself.

Applies to