Class MigrationResourceForPatch

java.lang.Object
com.azure.resourcemanager.postgresqlflexibleserver.models.MigrationResourceForPatch

public final class MigrationResourceForPatch extends Object
Represents a migration resource for patch.
  • Constructor Details

    • MigrationResourceForPatch

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

    • tags

      public Map<String,String> tags()
      Get the tags property: Application-specific metadata in the form of key-value pairs.
      Returns:
      the tags value.
    • withTags

      public MigrationResourceForPatch withTags(Map<String,String> tags)
      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

      public String sourceDbServerResourceId()
      Get the sourceDbServerResourceId property: ResourceId of the source database server.
      Returns:
      the sourceDbServerResourceId value.
    • withSourceDbServerResourceId

      public MigrationResourceForPatch withSourceDbServerResourceId(String sourceDbServerResourceId)
      Set the sourceDbServerResourceId property: ResourceId of the source database server.
      Parameters:
      sourceDbServerResourceId - the sourceDbServerResourceId value to set.
      Returns:
      the MigrationResourceForPatch object itself.
    • sourceDbServerFullyQualifiedDomainName

      public String 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

      public String 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

      public MigrationSecretParameters secretParameters()
      Get the secretParameters property: Migration secret parameters.
      Returns:
      the secretParameters value.
    • withSecretParameters

      public MigrationResourceForPatch withSecretParameters(MigrationSecretParameters secretParameters)
      Set the secretParameters property: Migration secret parameters.
      Parameters:
      secretParameters - the secretParameters value to set.
      Returns:
      the MigrationResourceForPatch object itself.
    • dbsToMigrate

      public List<String> dbsToMigrate()
      Get the dbsToMigrate property: Number of databases to migrate.
      Returns:
      the dbsToMigrate value.
    • withDbsToMigrate

      public MigrationResourceForPatch withDbsToMigrate(List<String> dbsToMigrate)
      Set the dbsToMigrate property: Number of databases to migrate.
      Parameters:
      dbsToMigrate - the dbsToMigrate value to set.
      Returns:
      the MigrationResourceForPatch object itself.
    • setupLogicalReplicationOnSourceDbIfNeeded

      public LogicalReplicationOnSourceDbEnum 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

      public OverwriteDbsInTargetEnum 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

      public OffsetDateTime 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

      public StartDataMigrationEnum startDataMigration()
      Get the startDataMigration property: Indicates whether the data migration should start right away.
      Returns:
      the startDataMigration value.
    • withStartDataMigration

      public MigrationResourceForPatch withStartDataMigration(StartDataMigrationEnum startDataMigration)
      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

      public TriggerCutoverEnum triggerCutover()
      Get the triggerCutover property: To trigger cutover for entire migration we need to send this flag as True.
      Returns:
      the triggerCutover value.
    • withTriggerCutover

      public MigrationResourceForPatch withTriggerCutover(TriggerCutoverEnum triggerCutover)
      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

      public List<String> 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

      public MigrationResourceForPatch 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.
      Parameters:
      dbsToTriggerCutoverOn - the dbsToTriggerCutoverOn value to set.
      Returns:
      the MigrationResourceForPatch object itself.
    • cancel

      public CancelEnum cancel()
      Get the cancel property: To trigger cancel for entire migration we need to send this flag as True.
      Returns:
      the cancel value.
    • withCancel

      public MigrationResourceForPatch withCancel(CancelEnum cancel)
      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

      public List<String> 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

      public MigrationResourceForPatch 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.
      Parameters:
      dbsToCancelMigrationOn - the dbsToCancelMigrationOn value to set.
      Returns:
      the MigrationResourceForPatch object itself.
    • migrationMode

      public MigrationMode migrationMode()
      Get the migrationMode property: There are two types of migration modes Online and Offline.
      Returns:
      the migrationMode value.
    • withMigrationMode

      public MigrationResourceForPatch withMigrationMode(MigrationMode migrationMode)
      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.