Share via


TargetLocation Class

  • java.lang.Object
    • com.azure.resourcemanager.datamigration.models.TargetLocation

Implements

public final class TargetLocation
implements JsonSerializable<TargetLocation>

Target Location details for optional copy of backups.

Constructor Summary

Constructor Description
TargetLocation()

Creates an instance of TargetLocation class.

Method Summary

Modifier and Type Method and Description
String accountKey()

Get the accountKey property: Storage Account Key.

static TargetLocation fromJson(JsonReader jsonReader)

Reads an instance of TargetLocation from the JsonReader.

String storageAccountResourceId()

Get the storageAccountResourceId property: Resource Id of the storage account copying backups.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

TargetLocation withAccountKey(String accountKey)

Set the accountKey property: Storage Account Key.

TargetLocation withStorageAccountResourceId(String storageAccountResourceId)

Set the storageAccountResourceId property: Resource Id of the storage account copying backups.

Methods inherited from java.lang.Object

Constructor Details

TargetLocation

public TargetLocation()

Creates an instance of TargetLocation class.

Method Details

accountKey

public String accountKey()

Get the accountKey property: Storage Account Key.

Returns:

the accountKey value.

fromJson

public static TargetLocation fromJson(JsonReader jsonReader)

Reads an instance of TargetLocation from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of TargetLocation 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 TargetLocation.

storageAccountResourceId

public String storageAccountResourceId()

Get the storageAccountResourceId property: Resource Id of the storage account copying backups.

Returns:

the storageAccountResourceId value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withAccountKey

public TargetLocation withAccountKey(String accountKey)

Set the accountKey property: Storage Account Key.

Parameters:

accountKey - the accountKey value to set.

Returns:

the TargetLocation object itself.

withStorageAccountResourceId

public TargetLocation withStorageAccountResourceId(String storageAccountResourceId)

Set the storageAccountResourceId property: Resource Id of the storage account copying backups.

Parameters:

storageAccountResourceId - the storageAccountResourceId value to set.

Returns:

the TargetLocation object itself.

Applies to