CopyLongTermRetentionBackupParameters Class
- java.
lang. Object - com.
azure. resourcemanager. sql. models. CopyLongTermRetentionBackupParameters
- com.
Implements
public final class CopyLongTermRetentionBackupParameters
implements JsonSerializable<CopyLongTermRetentionBackupParameters>
Contains the information necessary to perform long term retention backup copy operation.
Constructor Summary
| Constructor | Description |
|---|---|
| CopyLongTermRetentionBackupParameters() |
Creates an instance of Copy |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
static
Copy |
fromJson(JsonReader jsonReader)
Reads an instance of Copy |
|
Backup |
targetBackupStorageRedundancy()
Get the target |
| String |
targetDatabaseName()
Get the target |
| String |
targetResourceGroup()
Get the target |
| String |
targetServerFullyQualifiedDomainName()
Get the target |
| String |
targetServerResourceId()
Get the target |
| String |
targetSubscriptionId()
Get the target |
|
Json |
toJson(JsonWriter jsonWriter) |
| void |
validate()
Validates the instance. |
|
Copy |
withTargetBackupStorageRedundancy(BackupStorageRedundancy targetBackupStorageRedundancy)
Set the target |
|
Copy |
withTargetDatabaseName(String targetDatabaseName)
Set the target |
|
Copy |
withTargetResourceGroup(String targetResourceGroup)
Set the target |
|
Copy |
withTargetServerFullyQualifiedDomainName(String targetServerFullyQualifiedDomainName)
Set the target |
|
Copy |
withTargetServerResourceId(String targetServerResourceId)
Set the target |
|
Copy |
withTargetSubscriptionId(String targetSubscriptionId)
Set the target |
Methods inherited from java.lang.Object
Constructor Details
CopyLongTermRetentionBackupParameters
public CopyLongTermRetentionBackupParameters()
Creates an instance of CopyLongTermRetentionBackupParameters class.
Method Details
fromJson
public static CopyLongTermRetentionBackupParameters fromJson(JsonReader jsonReader)
Reads an instance of CopyLongTermRetentionBackupParameters from the JsonReader.
Parameters:
Returns:
Throws:
targetBackupStorageRedundancy
public BackupStorageRedundancy targetBackupStorageRedundancy()
Get the targetBackupStorageRedundancy property: The storage redundancy type of the copied backup.
Returns:
targetDatabaseName
public String targetDatabaseName()
Get the targetDatabaseName property: The name of the database owns the copied backup.
Returns:
targetResourceGroup
public String targetResourceGroup()
Get the targetResourceGroup property: The resource group that owns the target server.
Returns:
targetServerFullyQualifiedDomainName
public String targetServerFullyQualifiedDomainName()
Get the targetServerFullyQualifiedDomainName property: The fully qualified domain name of the target server.
Returns:
targetServerResourceId
public String targetServerResourceId()
Get the targetServerResourceId property: The resource Id of the target server that owns the database.
Returns:
targetSubscriptionId
public String targetSubscriptionId()
Get the targetSubscriptionId property: The subscription that owns the target server.
Returns:
toJson
validate
public void validate()
Validates the instance.
withTargetBackupStorageRedundancy
public CopyLongTermRetentionBackupParameters withTargetBackupStorageRedundancy(BackupStorageRedundancy targetBackupStorageRedundancy)
Set the targetBackupStorageRedundancy property: The storage redundancy type of the copied backup.
Parameters:
Returns:
withTargetDatabaseName
public CopyLongTermRetentionBackupParameters withTargetDatabaseName(String targetDatabaseName)
Set the targetDatabaseName property: The name of the database owns the copied backup.
Parameters:
Returns:
withTargetResourceGroup
public CopyLongTermRetentionBackupParameters withTargetResourceGroup(String targetResourceGroup)
Set the targetResourceGroup property: The resource group that owns the target server.
Parameters:
Returns:
withTargetServerFullyQualifiedDomainName
public CopyLongTermRetentionBackupParameters withTargetServerFullyQualifiedDomainName(String targetServerFullyQualifiedDomainName)
Set the targetServerFullyQualifiedDomainName property: The fully qualified domain name of the target server.
Parameters:
Returns:
withTargetServerResourceId
public CopyLongTermRetentionBackupParameters withTargetServerResourceId(String targetServerResourceId)
Set the targetServerResourceId property: The resource Id of the target server that owns the database.
Parameters:
Returns:
withTargetSubscriptionId
public CopyLongTermRetentionBackupParameters withTargetSubscriptionId(String targetSubscriptionId)
Set the targetSubscriptionId property: The subscription that owns the target server.
Parameters:
Returns: