StorageProfile Class

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

Implements

public final class StorageProfile
implements JsonSerializable<StorageProfile>

Storage profile for storage related settings of a container group profile.

Constructor Summary

Constructor Description
StorageProfile()

Creates an instance of StorageProfile class.

Method Summary

Modifier and Type Method and Description
List<FileShare> fileShares()

Get the fileShares property: The fileShares property.

static StorageProfile fromJson(JsonReader jsonReader)

Reads an instance of StorageProfile from the JsonReader.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

StorageProfile withFileShares(List<FileShare> fileShares)

Set the fileShares property: The fileShares property.

Methods inherited from java.lang.Object

Constructor Details

StorageProfile

public StorageProfile()

Creates an instance of StorageProfile class.

Method Details

fileShares

public List<FileShare> fileShares()

Get the fileShares property: The fileShares property.

Returns:

the fileShares value.

fromJson

public static StorageProfile fromJson(JsonReader jsonReader)

Reads an instance of StorageProfile from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withFileShares

public StorageProfile withFileShares(List<FileShare> fileShares)

Set the fileShares property: The fileShares property.

Parameters:

fileShares - the fileShares value to set.

Returns:

the StorageProfile object itself.

Applies to