Share via


DataMigrationServiceInner Class

public final class DataMigrationServiceInner
extends Resource

An Azure Database Migration Service (classic) resource.

Constructor Summary

Constructor Description
DataMigrationServiceInner()

Creates an instance of DataMigrationServiceInner 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.

String etag()

Get the etag property: HTTP strong entity tag value.

static DataMigrationServiceInner fromJson(JsonReader jsonReader)

Reads an instance of DataMigrationServiceInner from the JsonReader.

String id()

Get the id property: Fully qualified resource Id for the resource.

String kind()

Get the kind property: The resource kind.

String name()

Get the name property: The name of the resource.

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.

ServiceSku sku()

Get the sku property: Service SKU.

SystemData systemData()

Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.

JsonWriter toJson(JsonWriter jsonWriter)
String type()

Get the type property: The type of the resource.

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.

DataMigrationServiceInner withAutoStopDelay(String autoStopDelay)

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

DataMigrationServiceInner withDeleteResourcesOnStop(Boolean deleteResourcesOnStop)

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

DataMigrationServiceInner withEtag(String etag)

Set the etag property: HTTP strong entity tag value.

DataMigrationServiceInner withKind(String kind)

Set the kind property: The resource kind.

DataMigrationServiceInner withLocation(String location)
DataMigrationServiceInner withPublicKey(String publicKey)

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

DataMigrationServiceInner withSku(ServiceSku sku)

Set the sku property: Service SKU.

DataMigrationServiceInner withTags(Map<String,String> tags)
DataMigrationServiceInner withVirtualNicId(String virtualNicId)

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

DataMigrationServiceInner 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 ProxyResource

Methods inherited from Resource

Methods inherited from java.lang.Object

Constructor Details

DataMigrationServiceInner

public DataMigrationServiceInner()

Creates an instance of DataMigrationServiceInner 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.

etag

public String etag()

Get the etag property: HTTP strong entity tag value. Ignored if submitted.

Returns:

the etag value.

fromJson

public static DataMigrationServiceInner fromJson(JsonReader jsonReader)

Reads an instance of DataMigrationServiceInner from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of DataMigrationServiceInner if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If the deserialized JSON object was missing any required properties.

id

public String id()

Get the id property: Fully qualified resource Id for the resource.

Overrides:

DataMigrationServiceInner.id()

Returns:

the id value.

kind

public String kind()

Get the kind property: The resource kind. Only 'vm' (the default) is supported.

Returns:

the kind value.

name

public String name()

Get the name property: The name of the resource.

Overrides:

DataMigrationServiceInner.name()

Returns:

the name value.

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.

sku

public ServiceSku sku()

Get the sku property: Service SKU.

Returns:

the sku value.

systemData

public SystemData systemData()

Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.

Returns:

the systemData value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

DataMigrationServiceInner.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public String type()

Get the type property: The type of the resource.

Overrides:

DataMigrationServiceInner.type()

Returns:

the type value.

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 DataMigrationServiceInner 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 DataMigrationServiceInner object itself.

withDeleteResourcesOnStop

public DataMigrationServiceInner 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 DataMigrationServiceInner object itself.

withEtag

public DataMigrationServiceInner withEtag(String etag)

Set the etag property: HTTP strong entity tag value. Ignored if submitted.

Parameters:

etag - the etag value to set.

Returns:

the DataMigrationServiceInner object itself.

withKind

public DataMigrationServiceInner withKind(String kind)

Set the kind property: The resource kind. Only 'vm' (the default) is supported.

Parameters:

kind - the kind value to set.

Returns:

the DataMigrationServiceInner object itself.

withLocation

public DataMigrationServiceInner withLocation(String location)

Overrides:

DataMigrationServiceInner.withLocation(String location)

Parameters:

location

withPublicKey

public DataMigrationServiceInner 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 DataMigrationServiceInner object itself.

withSku

public DataMigrationServiceInner withSku(ServiceSku sku)

Set the sku property: Service SKU.

Parameters:

sku - the sku value to set.

Returns:

the DataMigrationServiceInner object itself.

withTags

public DataMigrationServiceInner withTags(Map<String,String> tags)

Overrides:

DataMigrationServiceInner.withTags(Map<String,String> tags)

Parameters:

tags

withVirtualNicId

public DataMigrationServiceInner 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 DataMigrationServiceInner object itself.

withVirtualSubnetId

public DataMigrationServiceInner 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 DataMigrationServiceInner object itself.

Applies to