Class MigrationResourceForPatch
java.lang.Object
com.azure.resourcemanager.postgresqlflexibleserver.models.MigrationResourceForPatch
Represents a migration resource for patch.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of MigrationResourceForPatch 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 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 migrationMode property: There are two types of migration modes Online and Offline.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 sourceDbServerResourceId property: ResourceId of the source database server.Get the startDataMigration property: Indicates whether the data migration should start right away.tags()Get the tags property: Application-specific metadata in the form of key-value pairs.Get the targetDbServerFullyQualifiedDomainName property: Target server fully qualified domain name or ip.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.withMigrationMode(MigrationMode migrationMode) Set the migrationMode property: There are two types of migration modes Online and Offline.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.Set the tags property: Application-specific metadata in the form of key-value pairs.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.
-
Constructor Details
-
MigrationResourceForPatch
public MigrationResourceForPatch()Creates an instance of MigrationResourceForPatch class.
-
-
Method Details
-
tags
Get the tags property: Application-specific metadata in the form of key-value pairs.- Returns:
- the tags value.
-
withTags
Set the tags property: Application-specific metadata in the form of key-value pairs.- Parameters:
tags- the tags value to set.- Returns:
- the MigrationResourceForPatch object itself.
-
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 MigrationResourceForPatch 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 MigrationResourceForPatch 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 MigrationResourceForPatch object itself.
-
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 MigrationResourceForPatch 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 MigrationResourceForPatch 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 MigrationResourceForPatch 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 MigrationResourceForPatch object itself.
-
setupLogicalReplicationOnSourceDbIfNeeded
Get the setupLogicalReplicationOnSourceDbIfNeeded property: Indicates whether to setup LogicalReplicationOnSourceDb, if needed.- Returns:
- the setupLogicalReplicationOnSourceDbIfNeeded value.
-
withSetupLogicalReplicationOnSourceDbIfNeeded
public MigrationResourceForPatch withSetupLogicalReplicationOnSourceDbIfNeeded(LogicalReplicationOnSourceDbEnum setupLogicalReplicationOnSourceDbIfNeeded) Set the setupLogicalReplicationOnSourceDbIfNeeded property: Indicates whether to setup LogicalReplicationOnSourceDb, if needed.- Parameters:
setupLogicalReplicationOnSourceDbIfNeeded- the setupLogicalReplicationOnSourceDbIfNeeded value to set.- Returns:
- the MigrationResourceForPatch 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 MigrationResourceForPatch 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 MigrationResourceForPatch object itself.
-
migrationWindowStartTimeInUtc
Get the migrationWindowStartTimeInUtc property: Start time in UTC for migration window.- Returns:
- the migrationWindowStartTimeInUtc value.
-
withMigrationWindowStartTimeInUtc
public MigrationResourceForPatch withMigrationWindowStartTimeInUtc(OffsetDateTime migrationWindowStartTimeInUtc) Set the migrationWindowStartTimeInUtc property: Start time in UTC for migration window.- Parameters:
migrationWindowStartTimeInUtc- the migrationWindowStartTimeInUtc value to set.- Returns:
- the MigrationResourceForPatch 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 MigrationResourceForPatch 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 MigrationResourceForPatch 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 MigrationResourceForPatch 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 MigrationResourceForPatch 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 MigrationResourceForPatch object itself.
-
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 MigrationResourceForPatch object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-