Class MigrationResourceInner
java.lang.Object
com.azure.core.management.ProxyResource
com.azure.core.management.Resource
com.azure.resourcemanager.postgresqlflexibleserver.fluent.models.MigrationResourceInner
public final class MigrationResourceInner
extends com.azure.core.management.Resource
Represents a migration resource.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of MigrationResourceInner class. -
Method Summary
Modifier and TypeMethodDescriptioncancel()Get the cancel property: To trigger cancel for entire migration we need to send this flag as True.Get the currentStatus property: Current status of migration.Get the dbsToCancelMigrationOn property: When you want to trigger cancel for specific databases send cancel flag as True and database names in this array.Get the dbsToMigrate property: Number of databases to migrate.Get the dbsToTriggerCutoverOn property: When you want to trigger cutover for specific databases send triggerCutover flag as True and database names in this array.Get the migrationId property: ID for migration, a GUID.Get the migrationMode property: There are two types of migration modes Online and Offline.Get the migrationWindowEndTimeInUtc property: End time in UTC for migration window.Get the migrationWindowStartTimeInUtc property: Start time in UTC for migration window.Get the overwriteDbsInTarget property: Indicates whether the databases on the target server can be overwritten, if already present.Get the secretParameters property: Migration secret parameters.Get the setupLogicalReplicationOnSourceDbIfNeeded property: Indicates whether to setup LogicalReplicationOnSourceDb, if needed.Get the sourceDbServerFullyQualifiedDomainName property: Source server fully qualified domain name or ip.Get the sourceDbServerMetadata property: Metadata of the source database server.Get the sourceDbServerResourceId property: ResourceId of the source database server.Get the startDataMigration property: Indicates whether the data migration should start right away.com.azure.core.management.SystemDataGet the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.Get the targetDbServerFullyQualifiedDomainName property: Target server fully qualified domain name or ip.Get the targetDbServerMetadata property: Metadata of the target database server.Get the targetDbServerResourceId property: ResourceId of the source database server.Get the triggerCutover property: To trigger cutover for entire migration we need to send this flag as True.voidvalidate()Validates the instance.withCancel(CancelEnum cancel) Set the cancel property: To trigger cancel for entire migration we need to send this flag as True.withDbsToCancelMigrationOn(List<String> dbsToCancelMigrationOn) Set the dbsToCancelMigrationOn property: When you want to trigger cancel for specific databases send cancel flag as True and database names in this array.withDbsToMigrate(List<String> dbsToMigrate) Set the dbsToMigrate property: Number of databases to migrate.withDbsToTriggerCutoverOn(List<String> dbsToTriggerCutoverOn) Set the dbsToTriggerCutoverOn property: When you want to trigger cutover for specific databases send triggerCutover flag as True and database names in this array.withLocation(String location) withMigrationMode(MigrationMode migrationMode) Set the migrationMode property: There are two types of migration modes Online and Offline.withMigrationWindowEndTimeInUtc(OffsetDateTime migrationWindowEndTimeInUtc) Set the migrationWindowEndTimeInUtc property: End time in UTC for migration window.withMigrationWindowStartTimeInUtc(OffsetDateTime migrationWindowStartTimeInUtc) Set the migrationWindowStartTimeInUtc property: Start time in UTC for migration window.withOverwriteDbsInTarget(OverwriteDbsInTargetEnum overwriteDbsInTarget) Set the overwriteDbsInTarget property: Indicates whether the databases on the target server can be overwritten, if already present.withSecretParameters(MigrationSecretParameters secretParameters) Set the secretParameters property: Migration secret parameters.withSetupLogicalReplicationOnSourceDbIfNeeded(LogicalReplicationOnSourceDbEnum setupLogicalReplicationOnSourceDbIfNeeded) Set the setupLogicalReplicationOnSourceDbIfNeeded property: Indicates whether to setup LogicalReplicationOnSourceDb, if needed.withSourceDbServerFullyQualifiedDomainName(String sourceDbServerFullyQualifiedDomainName) Set the sourceDbServerFullyQualifiedDomainName property: Source server fully qualified domain name or ip.withSourceDbServerResourceId(String sourceDbServerResourceId) Set the sourceDbServerResourceId property: ResourceId of the source database server.withStartDataMigration(StartDataMigrationEnum startDataMigration) Set the startDataMigration property: Indicates whether the data migration should start right away.withTargetDbServerFullyQualifiedDomainName(String targetDbServerFullyQualifiedDomainName) Set the targetDbServerFullyQualifiedDomainName property: Target server fully qualified domain name or ip.withTriggerCutover(TriggerCutoverEnum triggerCutover) Set the triggerCutover property: To trigger cutover for entire migration we need to send this flag as True.Methods inherited from class com.azure.core.management.Resource
location, tagsMethods inherited from class com.azure.core.management.ProxyResource
id, name, type
-
Constructor Details
-
MigrationResourceInner
public MigrationResourceInner()Creates an instance of MigrationResourceInner class.
-
-
Method Details
-
systemData
public com.azure.core.management.SystemData systemData()Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.- Returns:
- the systemData value.
-
withLocation
- Overrides:
withLocationin classcom.azure.core.management.Resource
-
withTags
- Overrides:
withTagsin classcom.azure.core.management.Resource
-
migrationId
Get the migrationId property: ID for migration, a GUID.- Returns:
- the migrationId value.
-
currentStatus
Get the currentStatus property: Current status of migration.- Returns:
- the currentStatus value.
-
migrationMode
Get the migrationMode property: There are two types of migration modes Online and Offline.- Returns:
- the migrationMode value.
-
withMigrationMode
Set the migrationMode property: There are two types of migration modes Online and Offline.- Parameters:
migrationMode- the migrationMode value to set.- Returns:
- the MigrationResourceInner object itself.
-
sourceDbServerMetadata
Get the sourceDbServerMetadata property: Metadata of the source database server.- Returns:
- the sourceDbServerMetadata value.
-
targetDbServerMetadata
Get the targetDbServerMetadata property: Metadata of the target database server.- Returns:
- the targetDbServerMetadata value.
-
sourceDbServerResourceId
Get the sourceDbServerResourceId property: ResourceId of the source database server.- Returns:
- the sourceDbServerResourceId value.
-
withSourceDbServerResourceId
Set the sourceDbServerResourceId property: ResourceId of the source database server.- Parameters:
sourceDbServerResourceId- the sourceDbServerResourceId value to set.- Returns:
- the MigrationResourceInner object itself.
-
sourceDbServerFullyQualifiedDomainName
Get the sourceDbServerFullyQualifiedDomainName property: Source server fully qualified domain name or ip. It is a optional value, if customer provide it, dms will always use it for connection.- Returns:
- the sourceDbServerFullyQualifiedDomainName value.
-
withSourceDbServerFullyQualifiedDomainName
public MigrationResourceInner withSourceDbServerFullyQualifiedDomainName(String sourceDbServerFullyQualifiedDomainName) Set the sourceDbServerFullyQualifiedDomainName property: Source server fully qualified domain name or ip. It is a optional value, if customer provide it, dms will always use it for connection.- Parameters:
sourceDbServerFullyQualifiedDomainName- the sourceDbServerFullyQualifiedDomainName value to set.- Returns:
- the MigrationResourceInner object itself.
-
targetDbServerResourceId
Get the targetDbServerResourceId property: ResourceId of the source database server.- Returns:
- the targetDbServerResourceId value.
-
targetDbServerFullyQualifiedDomainName
Get the targetDbServerFullyQualifiedDomainName property: Target server fully qualified domain name or ip. It is a optional value, if customer provide it, dms will always use it for connection.- Returns:
- the targetDbServerFullyQualifiedDomainName value.
-
withTargetDbServerFullyQualifiedDomainName
public MigrationResourceInner withTargetDbServerFullyQualifiedDomainName(String targetDbServerFullyQualifiedDomainName) Set the targetDbServerFullyQualifiedDomainName property: Target server fully qualified domain name or ip. It is a optional value, if customer provide it, dms will always use it for connection.- Parameters:
targetDbServerFullyQualifiedDomainName- the targetDbServerFullyQualifiedDomainName value to set.- Returns:
- the MigrationResourceInner object itself.
-
secretParameters
Get the secretParameters property: Migration secret parameters.- Returns:
- the secretParameters value.
-
withSecretParameters
Set the secretParameters property: Migration secret parameters.- Parameters:
secretParameters- the secretParameters value to set.- Returns:
- the MigrationResourceInner object itself.
-
dbsToMigrate
Get the dbsToMigrate property: Number of databases to migrate.- Returns:
- the dbsToMigrate value.
-
withDbsToMigrate
Set the dbsToMigrate property: Number of databases to migrate.- Parameters:
dbsToMigrate- the dbsToMigrate value to set.- Returns:
- the MigrationResourceInner object itself.
-
setupLogicalReplicationOnSourceDbIfNeeded
Get the setupLogicalReplicationOnSourceDbIfNeeded property: Indicates whether to setup LogicalReplicationOnSourceDb, if needed.- Returns:
- the setupLogicalReplicationOnSourceDbIfNeeded value.
-
withSetupLogicalReplicationOnSourceDbIfNeeded
public MigrationResourceInner withSetupLogicalReplicationOnSourceDbIfNeeded(LogicalReplicationOnSourceDbEnum setupLogicalReplicationOnSourceDbIfNeeded) Set the setupLogicalReplicationOnSourceDbIfNeeded property: Indicates whether to setup LogicalReplicationOnSourceDb, if needed.- Parameters:
setupLogicalReplicationOnSourceDbIfNeeded- the setupLogicalReplicationOnSourceDbIfNeeded value to set.- Returns:
- the MigrationResourceInner object itself.
-
overwriteDbsInTarget
Get the overwriteDbsInTarget property: Indicates whether the databases on the target server can be overwritten, if already present. If set to False, the migration workflow will wait for a confirmation, if it detects that the database already exists.- Returns:
- the overwriteDbsInTarget value.
-
withOverwriteDbsInTarget
public MigrationResourceInner withOverwriteDbsInTarget(OverwriteDbsInTargetEnum overwriteDbsInTarget) Set the overwriteDbsInTarget property: Indicates whether the databases on the target server can be overwritten, if already present. If set to False, the migration workflow will wait for a confirmation, if it detects that the database already exists.- Parameters:
overwriteDbsInTarget- the overwriteDbsInTarget value to set.- Returns:
- the MigrationResourceInner object itself.
-
migrationWindowStartTimeInUtc
Get the migrationWindowStartTimeInUtc property: Start time in UTC for migration window.- Returns:
- the migrationWindowStartTimeInUtc value.
-
withMigrationWindowStartTimeInUtc
public MigrationResourceInner withMigrationWindowStartTimeInUtc(OffsetDateTime migrationWindowStartTimeInUtc) Set the migrationWindowStartTimeInUtc property: Start time in UTC for migration window.- Parameters:
migrationWindowStartTimeInUtc- the migrationWindowStartTimeInUtc value to set.- Returns:
- the MigrationResourceInner object itself.
-
migrationWindowEndTimeInUtc
Get the migrationWindowEndTimeInUtc property: End time in UTC for migration window.- Returns:
- the migrationWindowEndTimeInUtc value.
-
withMigrationWindowEndTimeInUtc
public MigrationResourceInner withMigrationWindowEndTimeInUtc(OffsetDateTime migrationWindowEndTimeInUtc) Set the migrationWindowEndTimeInUtc property: End time in UTC for migration window.- Parameters:
migrationWindowEndTimeInUtc- the migrationWindowEndTimeInUtc value to set.- Returns:
- the MigrationResourceInner object itself.
-
startDataMigration
Get the startDataMigration property: Indicates whether the data migration should start right away.- Returns:
- the startDataMigration value.
-
withStartDataMigration
Set the startDataMigration property: Indicates whether the data migration should start right away.- Parameters:
startDataMigration- the startDataMigration value to set.- Returns:
- the MigrationResourceInner object itself.
-
triggerCutover
Get the triggerCutover property: To trigger cutover for entire migration we need to send this flag as True.- Returns:
- the triggerCutover value.
-
withTriggerCutover
Set the triggerCutover property: To trigger cutover for entire migration we need to send this flag as True.- Parameters:
triggerCutover- the triggerCutover value to set.- Returns:
- the MigrationResourceInner object itself.
-
dbsToTriggerCutoverOn
Get the dbsToTriggerCutoverOn property: When you want to trigger cutover for specific databases send triggerCutover flag as True and database names in this array.- Returns:
- the dbsToTriggerCutoverOn value.
-
withDbsToTriggerCutoverOn
Set the dbsToTriggerCutoverOn property: When you want to trigger cutover for specific databases send triggerCutover flag as True and database names in this array.- Parameters:
dbsToTriggerCutoverOn- the dbsToTriggerCutoverOn value to set.- Returns:
- the MigrationResourceInner object itself.
-
cancel
Get the cancel property: To trigger cancel for entire migration we need to send this flag as True.- Returns:
- the cancel value.
-
withCancel
Set the cancel property: To trigger cancel for entire migration we need to send this flag as True.- Parameters:
cancel- the cancel value to set.- Returns:
- the MigrationResourceInner object itself.
-
dbsToCancelMigrationOn
Get the dbsToCancelMigrationOn property: When you want to trigger cancel for specific databases send cancel flag as True and database names in this array.- Returns:
- the dbsToCancelMigrationOn value.
-
withDbsToCancelMigrationOn
Set the dbsToCancelMigrationOn property: When you want to trigger cancel for specific databases send cancel flag as True and database names in this array.- Parameters:
dbsToCancelMigrationOn- the dbsToCancelMigrationOn value to set.- Returns:
- the MigrationResourceInner object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-