Class KubernetesPVRestoreCriteria
java.lang.Object
com.azure.resourcemanager.dataprotection.models.ItemLevelRestoreCriteria
com.azure.resourcemanager.dataprotection.models.KubernetesPVRestoreCriteria
Item Level kubernetes persistent volume target info for restore operation.
-
Constructor Summary
ConstructorDescriptionCreates an instance of KubernetesPVRestoreCriteria class. -
Method Summary
Modifier and TypeMethodDescriptionname()
Get the name property: Selected persistent volume claim name.Get the storageClassName property: Selected storage class name for restore operation.void
validate()
Validates the instance.Set the name property: Selected persistent volume claim name.withStorageClassName
(String storageClassName) Set the storageClassName property: Selected storage class name for restore operation.
-
Constructor Details
-
KubernetesPVRestoreCriteria
public KubernetesPVRestoreCriteria()Creates an instance of KubernetesPVRestoreCriteria class.
-
-
Method Details
-
name
Get the name property: Selected persistent volume claim name.- Returns:
- the name value.
-
withName
Set the name property: Selected persistent volume claim name.- Parameters:
name
- the name value to set.- Returns:
- the KubernetesPVRestoreCriteria object itself.
-
storageClassName
Get the storageClassName property: Selected storage class name for restore operation.- Returns:
- the storageClassName value.
-
withStorageClassName
Set the storageClassName property: Selected storage class name for restore operation.- Parameters:
storageClassName
- the storageClassName value to set.- Returns:
- the KubernetesPVRestoreCriteria object itself.
-
validate
public void validate()Validates the instance.- Overrides:
validate
in classItemLevelRestoreCriteria
- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-