Class BackupRequestResource
- java.lang.Object
-
- com.azure.core.management.ProxyResource
-
- com.azure.core.management.Resource
-
- com.azure.resourcemanager.recoveryservicesbackup.models.BackupRequestResource
-
public final class BackupRequestResource extends com.azure.core.management.Resource
Base class for backup request. Workload-specific backup requests are derived from this class.
-
-
Constructor Summary
Constructors Constructor Description BackupRequestResource()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
etag()
Get the etag property: Optional ETag.BackupRequest
properties()
Get the properties property: BackupRequestResource properties.void
validate()
Validates the instance.BackupRequestResource
withEtag(String etag)
Set the etag property: Optional ETag.BackupRequestResource
withLocation(String location)
BackupRequestResource
withProperties(BackupRequest properties)
Set the properties property: BackupRequestResource properties.BackupRequestResource
withTags(Map<String,String> tags)
-
-
-
Method Detail
-
properties
public BackupRequest properties()
Get the properties property: BackupRequestResource properties.- Returns:
- the properties value.
-
withProperties
public BackupRequestResource withProperties(BackupRequest properties)
Set the properties property: BackupRequestResource properties.- Parameters:
properties
- the properties value to set.- Returns:
- the BackupRequestResource object itself.
-
etag
public String etag()
Get the etag property: Optional ETag.- Returns:
- the etag value.
-
withEtag
public BackupRequestResource withEtag(String etag)
Set the etag property: Optional ETag.- Parameters:
etag
- the etag value to set.- Returns:
- the BackupRequestResource object itself.
-
withLocation
public BackupRequestResource withLocation(String location)
- Overrides:
withLocation
in classcom.azure.core.management.Resource
-
withTags
public BackupRequestResource withTags(Map<String,String> tags)
- Overrides:
withTags
in classcom.azure.core.management.Resource
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
-