Class BackupSchedule
- java.lang.Object
-
- com.azure.resourcemanager.dataprotection.models.BackupSchedule
-
public final class BackupSchedule extends Object
BackupSchedule Schedule for backup.
-
-
Constructor Summary
Constructors Constructor Description BackupSchedule()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<String>
repeatingTimeIntervals()
Get the repeatingTimeIntervals property: ISO 8601 repeating time interval format.String
timeZone()
Get the timeZone property: Time zone for a schedule.void
validate()
Validates the instance.BackupSchedule
withRepeatingTimeIntervals(List<String> repeatingTimeIntervals)
Set the repeatingTimeIntervals property: ISO 8601 repeating time interval format.BackupSchedule
withTimeZone(String timeZone)
Set the timeZone property: Time zone for a schedule.
-
-
-
Method Detail
-
repeatingTimeIntervals
public List<String> repeatingTimeIntervals()
Get the repeatingTimeIntervals property: ISO 8601 repeating time interval format.- Returns:
- the repeatingTimeIntervals value.
-
withRepeatingTimeIntervals
public BackupSchedule withRepeatingTimeIntervals(List<String> repeatingTimeIntervals)
Set the repeatingTimeIntervals property: ISO 8601 repeating time interval format.- Parameters:
repeatingTimeIntervals
- the repeatingTimeIntervals value to set.- Returns:
- the BackupSchedule object itself.
-
timeZone
public String timeZone()
Get the timeZone property: Time zone for a schedule. Example: Pacific Standard Time.- Returns:
- the timeZone value.
-
withTimeZone
public BackupSchedule withTimeZone(String timeZone)
Set the timeZone property: Time zone for a schedule. Example: Pacific Standard Time.- Parameters:
timeZone
- the timeZone value to set.- Returns:
- the BackupSchedule object itself.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
-