Class CopyLongTermRetentionBackupParametersProperties

java.lang.Object
com.azure.resourcemanager.sql.fluent.models.CopyLongTermRetentionBackupParametersProperties

public final class CopyLongTermRetentionBackupParametersProperties extends Object
Contains the properties to perform long term retention backup copy operation.
  • Constructor Details

    • CopyLongTermRetentionBackupParametersProperties

      public CopyLongTermRetentionBackupParametersProperties()
      Creates an instance of CopyLongTermRetentionBackupParametersProperties class.
  • Method Details

    • targetSubscriptionId

      public String targetSubscriptionId()
      Get the targetSubscriptionId property: The subscription that owns the target server.
      Returns:
      the targetSubscriptionId value.
    • withTargetSubscriptionId

      public CopyLongTermRetentionBackupParametersProperties withTargetSubscriptionId(String targetSubscriptionId)
      Set the targetSubscriptionId property: The subscription that owns the target server.
      Parameters:
      targetSubscriptionId - the targetSubscriptionId value to set.
      Returns:
      the CopyLongTermRetentionBackupParametersProperties object itself.
    • targetResourceGroup

      public String targetResourceGroup()
      Get the targetResourceGroup property: The resource group that owns the target server.
      Returns:
      the targetResourceGroup value.
    • withTargetResourceGroup

      public CopyLongTermRetentionBackupParametersProperties withTargetResourceGroup(String targetResourceGroup)
      Set the targetResourceGroup property: The resource group that owns the target server.
      Parameters:
      targetResourceGroup - the targetResourceGroup value to set.
      Returns:
      the CopyLongTermRetentionBackupParametersProperties object itself.
    • targetServerResourceId

      public String targetServerResourceId()
      Get the targetServerResourceId property: The resource Id of the target server that owns the database.
      Returns:
      the targetServerResourceId value.
    • withTargetServerResourceId

      public CopyLongTermRetentionBackupParametersProperties 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 CopyLongTermRetentionBackupParametersProperties object itself.
    • targetServerFullyQualifiedDomainName

      public String targetServerFullyQualifiedDomainName()
      Get the targetServerFullyQualifiedDomainName property: The fully qualified domain name of the target server.
      Returns:
      the targetServerFullyQualifiedDomainName value.
    • withTargetServerFullyQualifiedDomainName

      public CopyLongTermRetentionBackupParametersProperties 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 CopyLongTermRetentionBackupParametersProperties object itself.
    • targetDatabaseName

      public String targetDatabaseName()
      Get the targetDatabaseName property: The name of the database owns the copied backup.
      Returns:
      the targetDatabaseName value.
    • withTargetDatabaseName

      public CopyLongTermRetentionBackupParametersProperties withTargetDatabaseName(String targetDatabaseName)
      Set the targetDatabaseName property: The name of the database owns the copied backup.
      Parameters:
      targetDatabaseName - the targetDatabaseName value to set.
      Returns:
      the CopyLongTermRetentionBackupParametersProperties object itself.
    • targetBackupStorageRedundancy

      public BackupStorageRedundancy targetBackupStorageRedundancy()
      Get the targetBackupStorageRedundancy property: The storage redundancy type of the copied backup.
      Returns:
      the targetBackupStorageRedundancy value.
    • withTargetBackupStorageRedundancy

      public CopyLongTermRetentionBackupParametersProperties withTargetBackupStorageRedundancy(BackupStorageRedundancy targetBackupStorageRedundancy)
      Set the targetBackupStorageRedundancy property: The storage redundancy type of the copied backup.
      Parameters:
      targetBackupStorageRedundancy - the targetBackupStorageRedundancy value to set.
      Returns:
      the CopyLongTermRetentionBackupParametersProperties object itself.
    • validate

      public void validate()
      Validates the instance.
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.