Interface DataMigrationService
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic interface
The entirety of the DataMigrationService definition.static interface
The DataMigrationService definition stages.static interface
The template for DataMigrationService update.static interface
The DataMigrationService update stages. -
Method Summary
Modifier and TypeMethodDescriptionCheck service health statuscom.azure.core.http.rest.Response<DataMigrationServiceStatusResponse>
checkStatusWithResponse
(com.azure.core.util.Context context) Check service health statusetag()
Gets the etag property: HTTP strong entity tag value.id()
Gets the id property: Fully qualified resource Id for the resource.Gets the inner com.azure.resourcemanager.datamigration.fluent.models.DataMigrationServiceInner object.kind()
Gets the kind property: The resource kind.location()
Gets the location property: The geo-location where the resource lives.name()
Gets the name property: The name of the resource.nestedCheckNameAvailability
(NameAvailabilityRequest parameters) Check nested resource name validity and availabilitycom.azure.core.http.rest.Response<NameAvailabilityResponse>
nestedCheckNameAvailabilityWithResponse
(NameAvailabilityRequest parameters, com.azure.core.util.Context context) Check nested resource name validity and availabilityGets the provisioningState property: The resource's provisioning state.Gets the publicKey property: The public key of the service, used to encrypt secrets sent to the service.refresh()
Refreshes the resource to sync with Azure.refresh
(com.azure.core.util.Context context) Refreshes the resource to sync with Azure.com.azure.core.management.Region
region()
Gets the region of the resource.Gets the name of the resource region.Gets the name of the resource group.sku()
Gets the sku property: Service SKU.void
start()
Start servicevoid
start
(com.azure.core.util.Context context) Start servicevoid
stop()
Stop servicevoid
stop
(com.azure.core.util.Context context) Stop servicetags()
Gets the tags property: Resource tags.type()
Gets the type property: The type of the resource.update()
Begins update for the DataMigrationService resource.Gets the virtualSubnetId property: The ID of the Microsoft.Network/virtualNetworks/subnets resource to which the service should be joined.
-
Method Details
-
id
String id()Gets the id property: Fully qualified resource Id for the resource.- Returns:
- the id value.
-
name
String name()Gets the name property: The name of the resource.- Returns:
- the name value.
-
type
String type()Gets the type property: The type of the resource.- Returns:
- the type value.
-
location
String location()Gets the location property: The geo-location where the resource lives.- Returns:
- the location value.
-
tags
Gets the tags property: Resource tags.- Returns:
- the tags value.
-
etag
String etag()Gets the etag property: HTTP strong entity tag value. Ignored if submitted.- Returns:
- the etag value.
-
kind
String kind()Gets the kind property: The resource kind. Only 'vm' (the default) is supported.- Returns:
- the kind value.
-
sku
ServiceSku sku()Gets the sku property: Service SKU.- Returns:
- the sku value.
-
provisioningState
ServiceProvisioningState provisioningState()Gets the provisioningState property: The resource's provisioning state.- Returns:
- the provisioningState value.
-
publicKey
String publicKey()Gets the publicKey property: The public key of the service, used to encrypt secrets sent to the service.- Returns:
- the publicKey value.
-
virtualSubnetId
String virtualSubnetId()Gets the virtualSubnetId property: The ID of the Microsoft.Network/virtualNetworks/subnets resource to which the service should be joined.- Returns:
- the virtualSubnetId value.
-
region
com.azure.core.management.Region region()Gets the region of the resource.- Returns:
- the region of the resource.
-
regionName
String regionName()Gets the name of the resource region.- Returns:
- the name of the resource region.
-
resourceGroupName
String resourceGroupName()Gets the name of the resource group.- Returns:
- the name of the resource group.
-
innerModel
DataMigrationServiceInner innerModel()Gets the inner com.azure.resourcemanager.datamigration.fluent.models.DataMigrationServiceInner object.- Returns:
- the inner object.
-
update
DataMigrationService.Update update()Begins update for the DataMigrationService resource.- Returns:
- the stage of resource update.
-
refresh
DataMigrationService refresh()Refreshes the resource to sync with Azure.- Returns:
- the refreshed resource.
-
refresh
Refreshes the resource to sync with Azure.- Parameters:
context
- The context to associate with this operation.- Returns:
- the refreshed resource.
-
checkStatusWithResponse
com.azure.core.http.rest.Response<DataMigrationServiceStatusResponse> checkStatusWithResponse(com.azure.core.util.Context context) Check service health statusThe services resource is the top-level resource that represents the Database Migration Service. This action performs a health check and returns the status of the service and virtual machine size.
- Parameters:
context
- The context to associate with this operation.- Returns:
- service health status along with
Response
. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
checkStatus
DataMigrationServiceStatusResponse checkStatus()Check service health statusThe services resource is the top-level resource that represents the Database Migration Service. This action performs a health check and returns the status of the service and virtual machine size.
- Returns:
- service health status.
- Throws:
com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
start
void start()Start serviceThe services resource is the top-level resource that represents the Database Migration Service. This action starts the service and the service can be used for data migration.
- Throws:
com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
start
void start(com.azure.core.util.Context context) Start serviceThe services resource is the top-level resource that represents the Database Migration Service. This action starts the service and the service can be used for data migration.
- Parameters:
context
- The context to associate with this operation.- Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
stop
void stop()Stop serviceThe services resource is the top-level resource that represents the Database Migration Service. This action stops the service and the service cannot be used for data migration. The service owner won't be billed when the service is stopped.
- Throws:
com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
stop
void stop(com.azure.core.util.Context context) Stop serviceThe services resource is the top-level resource that represents the Database Migration Service. This action stops the service and the service cannot be used for data migration. The service owner won't be billed when the service is stopped.
- Parameters:
context
- The context to associate with this operation.- Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
nestedCheckNameAvailabilityWithResponse
com.azure.core.http.rest.Response<NameAvailabilityResponse> nestedCheckNameAvailabilityWithResponse(NameAvailabilityRequest parameters, com.azure.core.util.Context context) Check nested resource name validity and availabilityThis method checks whether a proposed nested resource name is valid and available.
- Parameters:
parameters
- Requested name to validate.context
- The context to associate with this operation.- Returns:
- indicates whether a proposed resource name is available along with
Response
. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
nestedCheckNameAvailability
Check nested resource name validity and availabilityThis method checks whether a proposed nested resource name is valid and available.
- Parameters:
parameters
- Requested name to validate.- Returns:
- indicates whether a proposed resource name is available.
- Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-