Class AdHocBackupRuleOptions
java.lang.Object
com.azure.resourcemanager.dataprotection.models.AdHocBackupRuleOptions
AdHocBackupRuleOptions
Adhoc backup rules.
-
Constructor Summary
ConstructorDescriptionCreates an instance of AdHocBackupRuleOptions class. -
Method Summary
Modifier and TypeMethodDescriptionruleName()
Get the ruleName property: The ruleName property.Get the triggerOption property: AdhocBackupTriggerOptionvoid
validate()
Validates the instance.withRuleName
(String ruleName) Set the ruleName property: The ruleName property.withTriggerOption
(AdhocBackupTriggerOption triggerOption) Set the triggerOption property: AdhocBackupTriggerOption
-
Constructor Details
-
AdHocBackupRuleOptions
public AdHocBackupRuleOptions()Creates an instance of AdHocBackupRuleOptions class.
-
-
Method Details
-
ruleName
Get the ruleName property: The ruleName property.- Returns:
- the ruleName value.
-
withRuleName
Set the ruleName property: The ruleName property.- Parameters:
ruleName
- the ruleName value to set.- Returns:
- the AdHocBackupRuleOptions object itself.
-
triggerOption
Get the triggerOption property: AdhocBackupTriggerOptionAdhoc backup trigger option.
- Returns:
- the triggerOption value.
-
withTriggerOption
Set the triggerOption property: AdhocBackupTriggerOptionAdhoc backup trigger option.
- Parameters:
triggerOption
- the triggerOption value to set.- Returns:
- the AdHocBackupRuleOptions object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-