Interface DataMigrationService


public interface DataMigrationService
An immutable client-side representation of DataMigrationService.
  • 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

      Map<String,String> 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

      Gets the inner com.azure.resourcemanager.datamigration.fluent.models.DataMigrationServiceInner object.
      Returns:
      the inner object.
    • update

      Begins update for the DataMigrationService resource.
      Returns:
      the stage of resource update.
    • refresh

      Refreshes the resource to sync with Azure.
      Returns:
      the refreshed resource.
    • refresh

      DataMigrationService refresh(com.azure.core.util.Context context)
      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 status

      The 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

      Check service health status

      The 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 service

      The 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 service

      The 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 service

      The 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 service

      The 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 availability

      This 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

      NameAvailabilityResponse nestedCheckNameAvailability(NameAvailabilityRequest parameters)
      Check nested resource name validity and availability

      This 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.