Class CopyLongTermRetentionBackupParameters
java.lang.Object
com.azure.resourcemanager.sql.models.CopyLongTermRetentionBackupParameters
Contains the information necessary to perform long term retention backup copy operation.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of CopyLongTermRetentionBackupParameters class. -
Method Summary
Modifier and TypeMethodDescriptionGet the targetBackupStorageRedundancy property: The storage redundancy type of the copied backup.Get the targetDatabaseName property: The name of the database owns the copied backup.Get the targetResourceGroup property: The resource group that owns the target server.Get the targetServerFullyQualifiedDomainName property: The fully qualified domain name of the target server.Get the targetServerResourceId property: The resource Id of the target server that owns the database.Get the targetSubscriptionId property: The subscription that owns the target server.voidvalidate()Validates the instance.withTargetBackupStorageRedundancy(BackupStorageRedundancy targetBackupStorageRedundancy) Set the targetBackupStorageRedundancy property: The storage redundancy type of the copied backup.withTargetDatabaseName(String targetDatabaseName) Set the targetDatabaseName property: The name of the database owns the copied backup.withTargetResourceGroup(String targetResourceGroup) Set the targetResourceGroup property: The resource group that owns the target server.withTargetServerFullyQualifiedDomainName(String targetServerFullyQualifiedDomainName) Set the targetServerFullyQualifiedDomainName property: The fully qualified domain name of the target server.withTargetServerResourceId(String targetServerResourceId) Set the targetServerResourceId property: The resource Id of the target server that owns the database.withTargetSubscriptionId(String targetSubscriptionId) Set the targetSubscriptionId property: The subscription that owns the target server.
-
Constructor Details
-
CopyLongTermRetentionBackupParameters
public CopyLongTermRetentionBackupParameters()Creates an instance of CopyLongTermRetentionBackupParameters class.
-
-
Method Details
-
targetSubscriptionId
Get the targetSubscriptionId property: The subscription that owns the target server.- Returns:
- the targetSubscriptionId value.
-
withTargetSubscriptionId
Set the targetSubscriptionId property: The subscription that owns the target server.- Parameters:
targetSubscriptionId- the targetSubscriptionId value to set.- Returns:
- the CopyLongTermRetentionBackupParameters object itself.
-
targetResourceGroup
Get the targetResourceGroup property: The resource group that owns the target server.- Returns:
- the targetResourceGroup value.
-
withTargetResourceGroup
Set the targetResourceGroup property: The resource group that owns the target server.- Parameters:
targetResourceGroup- the targetResourceGroup value to set.- Returns:
- the CopyLongTermRetentionBackupParameters object itself.
-
targetServerResourceId
Get the targetServerResourceId property: The resource Id of the target server that owns the database.- Returns:
- the targetServerResourceId value.
-
withTargetServerResourceId
public CopyLongTermRetentionBackupParameters withTargetServerResourceId(String targetServerResourceId) Set the targetServerResourceId property: The resource Id of the target server that owns the database.- Parameters:
targetServerResourceId- the targetServerResourceId value to set.- Returns:
- the CopyLongTermRetentionBackupParameters object itself.
-
targetServerFullyQualifiedDomainName
Get the targetServerFullyQualifiedDomainName property: The fully qualified domain name of the target server.- Returns:
- the targetServerFullyQualifiedDomainName value.
-
withTargetServerFullyQualifiedDomainName
public CopyLongTermRetentionBackupParameters withTargetServerFullyQualifiedDomainName(String targetServerFullyQualifiedDomainName) Set the targetServerFullyQualifiedDomainName property: The fully qualified domain name of the target server.- Parameters:
targetServerFullyQualifiedDomainName- the targetServerFullyQualifiedDomainName value to set.- Returns:
- the CopyLongTermRetentionBackupParameters object itself.
-
targetDatabaseName
Get the targetDatabaseName property: The name of the database owns the copied backup.- Returns:
- the targetDatabaseName value.
-
withTargetDatabaseName
Set the targetDatabaseName property: The name of the database owns the copied backup.- Parameters:
targetDatabaseName- the targetDatabaseName value to set.- Returns:
- the CopyLongTermRetentionBackupParameters object itself.
-
targetBackupStorageRedundancy
Get the targetBackupStorageRedundancy property: The storage redundancy type of the copied backup.- Returns:
- the targetBackupStorageRedundancy value.
-
withTargetBackupStorageRedundancy
public CopyLongTermRetentionBackupParameters withTargetBackupStorageRedundancy(BackupStorageRedundancy targetBackupStorageRedundancy) Set the targetBackupStorageRedundancy property: The storage redundancy type of the copied backup.- Parameters:
targetBackupStorageRedundancy- the targetBackupStorageRedundancy value to set.- Returns:
- the CopyLongTermRetentionBackupParameters object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-