Class ServerBackupProperties
- java.lang.Object
-
- com.azure.resourcemanager.mysqlflexibleserver.fluent.models.ServerBackupProperties
-
public final class ServerBackupProperties extends Object
The properties of a server backup.
-
-
Constructor Summary
Constructors Constructor Description ServerBackupProperties()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
backupType()
Get the backupType property: Backup type.OffsetDateTime
completedTime()
Get the completedTime property: Backup completed time (ISO8601 format).String
source()
Get the source property: Backup source.void
validate()
Validates the instance.ServerBackupProperties
withBackupType(String backupType)
Set the backupType property: Backup type.ServerBackupProperties
withCompletedTime(OffsetDateTime completedTime)
Set the completedTime property: Backup completed time (ISO8601 format).ServerBackupProperties
withSource(String source)
Set the source property: Backup source.
-
-
-
Method Detail
-
backupType
public String backupType()
Get the backupType property: Backup type.- Returns:
- the backupType value.
-
withBackupType
public ServerBackupProperties withBackupType(String backupType)
Set the backupType property: Backup type.- Parameters:
backupType
- the backupType value to set.- Returns:
- the ServerBackupProperties object itself.
-
completedTime
public OffsetDateTime completedTime()
Get the completedTime property: Backup completed time (ISO8601 format).- Returns:
- the completedTime value.
-
withCompletedTime
public ServerBackupProperties withCompletedTime(OffsetDateTime completedTime)
Set the completedTime property: Backup completed time (ISO8601 format).- Parameters:
completedTime
- the completedTime value to set.- Returns:
- the ServerBackupProperties object itself.
-
source
public String source()
Get the source property: Backup source.- Returns:
- the source value.
-
withSource
public ServerBackupProperties withSource(String source)
Set the source property: Backup source.- Parameters:
source
- the source value to set.- Returns:
- the ServerBackupProperties object itself.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
-