Class CustomPersistentDiskResource
java.lang.Object
com.azure.resourcemanager.appplatform.models.CustomPersistentDiskResource
- All Implemented Interfaces:
com.azure.json.JsonSerializable<CustomPersistentDiskResource>
public final class CustomPersistentDiskResource
extends Object
implements com.azure.json.JsonSerializable<CustomPersistentDiskResource>
Custom persistent disk resource payload.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of CustomPersistentDiskResource class. -
Method Summary
Modifier and TypeMethodDescriptionGet the customPersistentDiskProperties property: Properties of the custom persistent disk resource payload.static CustomPersistentDiskResourcefromJson(com.azure.json.JsonReader jsonReader) Reads an instance of CustomPersistentDiskResource from the JsonReader.Get the storageId property: The resource id of Azure Spring Apps Storage resource.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withCustomPersistentDiskProperties(CustomPersistentDiskProperties customPersistentDiskProperties) Set the customPersistentDiskProperties property: Properties of the custom persistent disk resource payload.withStorageId(String storageId) Set the storageId property: The resource id of Azure Spring Apps Storage resource.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
CustomPersistentDiskResource
public CustomPersistentDiskResource()Creates an instance of CustomPersistentDiskResource class.
-
-
Method Details
-
customPersistentDiskProperties
Get the customPersistentDiskProperties property: Properties of the custom persistent disk resource payload.- Returns:
- the customPersistentDiskProperties value.
-
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.
-
storageId
Get the storageId property: The resource id of Azure Spring Apps Storage resource.- Returns:
- the storageId value.
-
withStorageId
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.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<CustomPersistentDiskResource>- Throws:
IOException
-
fromJson
public static CustomPersistentDiskResource fromJson(com.azure.json.JsonReader jsonReader) throws IOException 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:
IllegalStateException- If the deserialized JSON object was missing any required properties.IOException- If an error occurs while reading the CustomPersistentDiskResource.
-