Class CopyLongTermRetentionBackupParametersProperties
java.lang.Object
com.azure.resourcemanager.sql.fluent.models.CopyLongTermRetentionBackupParametersProperties
- All Implemented Interfaces:
com.azure.json.JsonSerializable<CopyLongTermRetentionBackupParametersProperties>
public final class CopyLongTermRetentionBackupParametersProperties
extends Object
implements com.azure.json.JsonSerializable<CopyLongTermRetentionBackupParametersProperties>
Contains the properties to perform long term retention backup copy operation.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of CopyLongTermRetentionBackupParametersProperties class. -
Method Summary
Modifier and TypeMethodDescriptionfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of CopyLongTermRetentionBackupParametersProperties from the JsonReader.Get 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.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) 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.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
CopyLongTermRetentionBackupParametersProperties
public CopyLongTermRetentionBackupParametersProperties()Creates an instance of CopyLongTermRetentionBackupParametersProperties class.
-
-
Method Details
-
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
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
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
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
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
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.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<CopyLongTermRetentionBackupParametersProperties>- Throws:
IOException
-
fromJson
public static CopyLongTermRetentionBackupParametersProperties fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of CopyLongTermRetentionBackupParametersProperties from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of CopyLongTermRetentionBackupParametersProperties 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 CopyLongTermRetentionBackupParametersProperties.
-