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 Summary
ConstructorDescriptionCreates an instance of DataMigrationServiceInner class. -
Method Summary
Modifier and TypeMethodDescriptionetag()
Get the etag property: HTTP strong entity tag value.kind()
Get the kind property: The resource kind.Get the provisioningState property: The resource's provisioning state.Get the publicKey property: The public key of the service, used to encrypt secrets sent to the service.sku()
Get the sku property: Service SKU.void
validate()
Validates the instance.Get the virtualSubnetId property: The ID of the Microsoft.Network/virtualNetworks/subnets resource to which the service should be joined.Set the etag property: HTTP strong entity tag value.Set the kind property: The resource kind.withLocation
(String location) withPublicKey
(String publicKey) Set the publicKey property: The public key of the service, used to encrypt secrets sent to the service.withSku
(ServiceSku sku) Set the sku property: Service SKU.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 class com.azure.core.management.Resource
location, tags
Methods inherited from class com.azure.core.management.ProxyResource
id, name, type
-
Constructor Details
-
DataMigrationServiceInner
public DataMigrationServiceInner()Creates an instance of DataMigrationServiceInner class.
-
-
Method Details
-
etag
Get the etag property: HTTP strong entity tag value. Ignored if submitted.- Returns:
- the etag value.
-
withEtag
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
Get the kind property: The resource kind. Only 'vm' (the default) is supported.- Returns:
- the kind value.
-
withKind
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
Get the sku property: Service SKU.- Returns:
- the sku value.
-
withSku
Set the sku property: Service SKU.- Parameters:
sku
- the sku value to set.- Returns:
- the DataMigrationServiceInner object itself.
-
withLocation
- Overrides:
withLocation
in classcom.azure.core.management.Resource
-
withTags
- Overrides:
withTags
in classcom.azure.core.management.Resource
-
provisioningState
Get the provisioningState property: The resource's provisioning state.- Returns:
- the provisioningState value.
-
publicKey
Get the publicKey property: The public key of the service, used to encrypt secrets sent to the service.- Returns:
- the publicKey value.
-
withPublicKey
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
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
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.
-