Class CustomCopyOption
java.lang.Object
com.azure.resourcemanager.dataprotection.models.CopyOption
com.azure.resourcemanager.dataprotection.models.CustomCopyOption
CustomCopyOption
Duration based custom options to copy.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionduration()
Get the duration property: Data copied after given timespan.void
validate()
Validates the instance.withDuration
(String duration) Set the duration property: Data copied after given timespan.
-
Constructor Details
-
CustomCopyOption
public CustomCopyOption()Creates an instance of CustomCopyOption class.
-
-
Method Details
-
duration
Get the duration property: Data copied after given timespan.- Returns:
- the duration value.
-
withDuration
Set the duration property: Data copied after given timespan.- Parameters:
duration
- the duration value to set.- Returns:
- the CustomCopyOption object itself.
-
validate
public void validate()Validates the instance.- Overrides:
validate
in classCopyOption
- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-