مشاركة عبر


CopyLongTermRetentionBackupParameters Class

  • java.lang.Object
    • com.azure.resourcemanager.sql.models.CopyLongTermRetentionBackupParameters

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 CopyLongTermRetentionBackupParameters class.

Method Summary

Modifier and Type Method and Description
static CopyLongTermRetentionBackupParameters fromJson(JsonReader jsonReader)

Reads an instance of CopyLongTermRetentionBackupParameters from the JsonReader.

BackupStorageRedundancy targetBackupStorageRedundancy()

Get the targetBackupStorageRedundancy property: The storage redundancy type of the copied backup.

String targetDatabaseName()

Get the targetDatabaseName property: The name of the database owns the copied backup.

String targetResourceGroup()

Get the targetResourceGroup property: The resource group that owns the target server.

String targetServerFullyQualifiedDomainName()

Get the targetServerFullyQualifiedDomainName property: The fully qualified domain name of the target server.

String targetServerResourceId()

Get the targetServerResourceId property: The resource Id of the target server that owns the database.

String targetSubscriptionId()

Get the targetSubscriptionId property: The subscription that owns the target server.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

CopyLongTermRetentionBackupParameters withTargetBackupStorageRedundancy(BackupStorageRedundancy targetBackupStorageRedundancy)

Set the targetBackupStorageRedundancy property: The storage redundancy type of the copied backup.

CopyLongTermRetentionBackupParameters withTargetDatabaseName(String targetDatabaseName)

Set the targetDatabaseName property: The name of the database owns the copied backup.

CopyLongTermRetentionBackupParameters withTargetResourceGroup(String targetResourceGroup)

Set the targetResourceGroup property: The resource group that owns the target server.

CopyLongTermRetentionBackupParameters withTargetServerFullyQualifiedDomainName(String targetServerFullyQualifiedDomainName)

Set the targetServerFullyQualifiedDomainName property: The fully qualified domain name of the target server.

CopyLongTermRetentionBackupParameters withTargetServerResourceId(String targetServerResourceId)

Set the targetServerResourceId property: The resource Id of the target server that owns the database.

CopyLongTermRetentionBackupParameters withTargetSubscriptionId(String targetSubscriptionId)

Set the targetSubscriptionId property: The subscription that owns the target server.

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:

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.

targetBackupStorageRedundancy

public BackupStorageRedundancy targetBackupStorageRedundancy()

Get the targetBackupStorageRedundancy property: The storage redundancy type of the copied backup.

Returns:

the targetBackupStorageRedundancy value.

targetDatabaseName

public String targetDatabaseName()

Get the targetDatabaseName property: The name of the database owns the copied backup.

Returns:

the targetDatabaseName value.

targetResourceGroup

public String targetResourceGroup()

Get the targetResourceGroup property: The resource group that owns the target server.

Returns:

the targetResourceGroup value.

targetServerFullyQualifiedDomainName

public String targetServerFullyQualifiedDomainName()

Get the targetServerFullyQualifiedDomainName property: The fully qualified domain name of the target server.

Returns:

the targetServerFullyQualifiedDomainName value.

targetServerResourceId

public String targetServerResourceId()

Get the targetServerResourceId property: The resource Id of the target server that owns the database.

Returns:

the targetServerResourceId value.

targetSubscriptionId

public String targetSubscriptionId()

Get the targetSubscriptionId property: The subscription that owns the target server.

Returns:

the targetSubscriptionId value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

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:

targetBackupStorageRedundancy - the targetBackupStorageRedundancy value to set.

Returns:

the CopyLongTermRetentionBackupParameters object itself.

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.

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.

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.

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.

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.

Applies to