CustomPersistentDiskResource Class

  • java.lang.Object
    • com.azure.resourcemanager.appplatform.models.CustomPersistentDiskResource

Implements

public final class CustomPersistentDiskResource
implements JsonSerializable<CustomPersistentDiskResource>

Custom persistent disk resource payload.

Constructor Summary

Constructor Description
CustomPersistentDiskResource()

Creates an instance of CustomPersistentDiskResource class.

Method Summary

Modifier and Type Method and Description
CustomPersistentDiskProperties customPersistentDiskProperties()

Get the customPersistentDiskProperties property: Properties of the custom persistent disk resource payload.

static CustomPersistentDiskResource fromJson(JsonReader jsonReader)

Reads an instance of CustomPersistentDiskResource from the JsonReader.

String storageId()

Get the storageId property: The resource id of Azure Spring Apps Storage resource.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

CustomPersistentDiskResource withCustomPersistentDiskProperties(CustomPersistentDiskProperties customPersistentDiskProperties)

Set the customPersistentDiskProperties property: Properties of the custom persistent disk resource payload.

CustomPersistentDiskResource withStorageId(String storageId)

Set the storageId property: The resource id of Azure Spring Apps Storage resource.

Methods inherited from java.lang.Object

Constructor Details

CustomPersistentDiskResource

public CustomPersistentDiskResource()

Creates an instance of CustomPersistentDiskResource class.

Method Details

customPersistentDiskProperties

public CustomPersistentDiskProperties customPersistentDiskProperties()

Get the customPersistentDiskProperties property: Properties of the custom persistent disk resource payload.

Returns:

the customPersistentDiskProperties value.

fromJson

public static CustomPersistentDiskResource fromJson(JsonReader jsonReader)

Reads an instance of CustomPersistentDiskResource from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

storageId

public String storageId()

Get the storageId property: The resource id of Azure Spring Apps Storage resource.

Returns:

the storageId value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withCustomPersistentDiskProperties

public CustomPersistentDiskResource withCustomPersistentDiskProperties(CustomPersistentDiskProperties customPersistentDiskProperties)

Set the customPersistentDiskProperties property: Properties of the custom persistent disk resource payload.

Parameters:

customPersistentDiskProperties - the customPersistentDiskProperties value to set.

Returns:

the CustomPersistentDiskResource object itself.

withStorageId

public CustomPersistentDiskResource withStorageId(String storageId)

Set the storageId property: The resource id of Azure Spring Apps Storage resource.

Parameters:

storageId - the storageId value to set.

Returns:

the CustomPersistentDiskResource object itself.

Applies to