Class DataMigrationServiceInner

java.lang.Object
com.azure.core.management.ProxyResource
com.azure.core.management.Resource
com.azure.resourcemanager.datamigration.fluent.models.DataMigrationServiceInner

public final class DataMigrationServiceInner extends com.azure.core.management.Resource
A Database Migration Service resource.
  • Constructor Details

    • DataMigrationServiceInner

      public DataMigrationServiceInner()
      Creates an instance of DataMigrationServiceInner class.
  • Method Details

    • etag

      public String etag()
      Get the etag property: HTTP strong entity tag value. Ignored if submitted.
      Returns:
      the etag value.
    • 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.
    • kind

      public String kind()
      Get the kind property: The resource kind. Only 'vm' (the default) is supported.
      Returns:
      the kind value.
    • 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.
    • sku

      public ServiceSku sku()
      Get the sku property: Service SKU.
      Returns:
      the sku value.
    • withSku

      public DataMigrationServiceInner withSku(ServiceSku sku)
      Set the sku property: Service SKU.
      Parameters:
      sku - the sku value to set.
      Returns:
      the DataMigrationServiceInner object itself.
    • withLocation

      public DataMigrationServiceInner withLocation(String location)
      Overrides:
      withLocation in class com.azure.core.management.Resource
    • withTags

      public DataMigrationServiceInner withTags(Map<String,String> tags)
      Overrides:
      withTags in class com.azure.core.management.Resource
    • 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.
    • 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.
    • 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.
    • 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.
    • validate

      public void validate()
      Validates the instance.
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.