DataMigrationServiceProperties Class

  • java.lang.Object
    • com.azure.resourcemanager.datamigration.fluent.models.DataMigrationServiceProperties

Implements

public final class DataMigrationServiceProperties
implements JsonSerializable<DataMigrationServiceProperties>

Properties of the Azure Database Migration Service (classic) instance.

Constructor Summary

Constructor Description
DataMigrationServiceProperties()

Creates an instance of DataMigrationServiceProperties class.

Method Summary

Modifier and Type Method and Description
String autoStopDelay()

Get the autoStopDelay property: The time delay before the service is auto-stopped when idle.

Boolean deleteResourcesOnStop()

Get the deleteResourcesOnStop property: Whether service resources should be deleted when stopped.

static DataMigrationServiceProperties fromJson(JsonReader jsonReader)

Reads an instance of DataMigrationServiceProperties from the JsonReader.

ServiceProvisioningState provisioningState()

Get the provisioningState property: The resource's provisioning state.

String publicKey()

Get the publicKey property: The public key of the service, used to encrypt secrets sent to the service.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

String virtualNicId()

Get the virtualNicId property: The ID of the Microsoft.Network/networkInterfaces resource which the service have.

String virtualSubnetId()

Get the virtualSubnetId property: The ID of the Microsoft.Network/virtualNetworks/subnets resource to which the service should be joined.

DataMigrationServiceProperties withAutoStopDelay(String autoStopDelay)

Set the autoStopDelay property: The time delay before the service is auto-stopped when idle.

DataMigrationServiceProperties withDeleteResourcesOnStop(Boolean deleteResourcesOnStop)

Set the deleteResourcesOnStop property: Whether service resources should be deleted when stopped.

DataMigrationServiceProperties withPublicKey(String publicKey)

Set the publicKey property: The public key of the service, used to encrypt secrets sent to the service.

DataMigrationServiceProperties withVirtualNicId(String virtualNicId)

Set the virtualNicId property: The ID of the Microsoft.Network/networkInterfaces resource which the service have.

DataMigrationServiceProperties withVirtualSubnetId(String virtualSubnetId)

Set the virtualSubnetId property: The ID of the Microsoft.Network/virtualNetworks/subnets resource to which the service should be joined.

Methods inherited from java.lang.Object

Constructor Details

DataMigrationServiceProperties

public DataMigrationServiceProperties()

Creates an instance of DataMigrationServiceProperties class.

Method Details

autoStopDelay

public String autoStopDelay()

Get the autoStopDelay property: The time delay before the service is auto-stopped when idle.

Returns:

the autoStopDelay value.

deleteResourcesOnStop

public Boolean deleteResourcesOnStop()

Get the deleteResourcesOnStop property: Whether service resources should be deleted when stopped. (Turned on by default).

Returns:

the deleteResourcesOnStop value.

fromJson

public static DataMigrationServiceProperties fromJson(JsonReader jsonReader)

Reads an instance of DataMigrationServiceProperties from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

provisioningState

public ServiceProvisioningState provisioningState()

Get the provisioningState property: The resource's provisioning state.

Returns:

the provisioningState value.

publicKey

public String publicKey()

Get the publicKey property: The public key of the service, used to encrypt secrets sent to the service.

Returns:

the publicKey value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

virtualNicId

public String virtualNicId()

Get the virtualNicId property: The ID of the Microsoft.Network/networkInterfaces resource which the service have.

Returns:

the virtualNicId value.

virtualSubnetId

public String virtualSubnetId()

Get the virtualSubnetId property: The ID of the Microsoft.Network/virtualNetworks/subnets resource to which the service should be joined.

Returns:

the virtualSubnetId value.

withAutoStopDelay

public DataMigrationServiceProperties withAutoStopDelay(String autoStopDelay)

Set the autoStopDelay property: The time delay before the service is auto-stopped when idle.

Parameters:

autoStopDelay - the autoStopDelay value to set.

Returns:

the DataMigrationServiceProperties object itself.

withDeleteResourcesOnStop

public DataMigrationServiceProperties withDeleteResourcesOnStop(Boolean deleteResourcesOnStop)

Set the deleteResourcesOnStop property: Whether service resources should be deleted when stopped. (Turned on by default).

Parameters:

deleteResourcesOnStop - the deleteResourcesOnStop value to set.

Returns:

the DataMigrationServiceProperties object itself.

withPublicKey

public DataMigrationServiceProperties withPublicKey(String publicKey)

Set the publicKey property: The public key of the service, used to encrypt secrets sent to the service.

Parameters:

publicKey - the publicKey value to set.

Returns:

the DataMigrationServiceProperties object itself.

withVirtualNicId

public DataMigrationServiceProperties withVirtualNicId(String virtualNicId)

Set the virtualNicId property: The ID of the Microsoft.Network/networkInterfaces resource which the service have.

Parameters:

virtualNicId - the virtualNicId value to set.

Returns:

the DataMigrationServiceProperties object itself.

withVirtualSubnetId

public DataMigrationServiceProperties withVirtualSubnetId(String virtualSubnetId)

Set the virtualSubnetId property: The ID of the Microsoft.Network/virtualNetworks/subnets resource to which the service should be joined.

Parameters:

virtualSubnetId - the virtualSubnetId value to set.

Returns:

the DataMigrationServiceProperties object itself.

Applies to