NGroupCGPropertyVolume Class

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

Implements

public final class NGroupCGPropertyVolume
implements JsonSerializable<NGroupCGPropertyVolume>

Contains information about the volumes that can be mounted by Containers in the Container Groups.

Constructor Summary

Constructor Description
NGroupCGPropertyVolume()

Creates an instance of NGroupCGPropertyVolume class.

Method Summary

Modifier and Type Method and Description
AzureFileVolume azureFile()

Get the azureFile property: The Azure File volume.

static NGroupCGPropertyVolume fromJson(JsonReader jsonReader)

Reads an instance of NGroupCGPropertyVolume from the JsonReader.

String name()

Get the name property: The name of the volume.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

NGroupCGPropertyVolume withAzureFile(AzureFileVolume azureFile)

Set the azureFile property: The Azure File volume.

NGroupCGPropertyVolume withName(String name)

Set the name property: The name of the volume.

Methods inherited from java.lang.Object

Constructor Details

NGroupCGPropertyVolume

public NGroupCGPropertyVolume()

Creates an instance of NGroupCGPropertyVolume class.

Method Details

azureFile

public AzureFileVolume azureFile()

Get the azureFile property: The Azure File volume.

Returns:

the azureFile value.

fromJson

public static NGroupCGPropertyVolume fromJson(JsonReader jsonReader)

Reads an instance of NGroupCGPropertyVolume from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of NGroupCGPropertyVolume if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If the deserialized JSON object was missing any required properties.

name

public String name()

Get the name property: The name of the volume.

Returns:

the name value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withAzureFile

public NGroupCGPropertyVolume withAzureFile(AzureFileVolume azureFile)

Set the azureFile property: The Azure File volume.

Parameters:

azureFile - the azureFile value to set.

Returns:

the NGroupCGPropertyVolume object itself.

withName

public NGroupCGPropertyVolume withName(String name)

Set the name property: The name of the volume.

Parameters:

name - the name value to set.

Returns:

the NGroupCGPropertyVolume object itself.

Applies to