Class CopyLongTermRetentionBackupParameters

java.lang.Object
com.azure.resourcemanager.sql.models.CopyLongTermRetentionBackupParameters
All Implemented Interfaces:
com.azure.json.JsonSerializable<CopyLongTermRetentionBackupParameters>

public final class CopyLongTermRetentionBackupParameters extends Object implements com.azure.json.JsonSerializable<CopyLongTermRetentionBackupParameters>
Contains the information necessary to perform long term retention backup copy operation.
  • Constructor Details

    • CopyLongTermRetentionBackupParameters

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

    • targetSubscriptionId

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

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

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

      public CopyLongTermRetentionBackupParameters withTargetResourceGroup(String targetResourceGroup)
      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

      public String 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

      public String 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

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

      public CopyLongTermRetentionBackupParameters 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 CopyLongTermRetentionBackupParameters object itself.
    • targetBackupStorageRedundancy

      public BackupStorageRedundancy 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.
    • toJson

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.azure.json.JsonSerializable<CopyLongTermRetentionBackupParameters>
      Throws:
      IOException
    • fromJson

      public static CopyLongTermRetentionBackupParameters fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of CopyLongTermRetentionBackupParameters from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of CopyLongTermRetentionBackupParameters if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
      Throws:
      IOException - If an error occurs while reading the CopyLongTermRetentionBackupParameters.