public static class CreateDataArchiveOrderRequest.CreateDataArchiveOrderRequestParam
extends com.aliyun.tea.TeaModel
| 限定符和类型 | 字段和说明 |
|---|---|
String |
archiveMethod
The archiving destination to which you want to archive data.
|
String |
cronStr
A crontab expression that specifies the scheduling cycle of the data archiving task.
|
String |
databaseId
The database ID.
|
Boolean |
logic
Specifies whether the database is a logical database.
|
List<String> |
orderAfter
The post behaviors.
|
String |
runMethod
The method that is used to run the data archiving task.
|
String |
sourceCatalogName
The catalog of the source database.
|
String |
sourceInstanceName
The name of the source instance.
|
String |
sourceSchemaName
The schema name of the source database.
|
List<CreateDataArchiveOrderRequest.CreateDataArchiveOrderRequestParamTableIncludes> |
tableIncludes
The collection of tables to be archived.
|
List<String> |
tableMapping
The table names mapped to the destination database.
|
String |
targetInstanceHost
The host of the destination instance.
|
List<CreateDataArchiveOrderRequest.CreateDataArchiveOrderRequestParamVariables> |
variables
The configuration of archiving variables.
|
| 构造器和说明 |
|---|
CreateDataArchiveOrderRequestParam() |
@NameInMap(value="ArchiveMethod") public String archiveMethod
The archiving destination to which you want to archive data. Valid values:
If you set ArchiveMethod to a value other than inner_oss, you must register the corresponding destination database with Data Management (DMS) before you create the data archiving ticket. After the database is registered with DMS, the database is displayed in the Instances Connected section of the DMS console.
This parameter is required.
example:mysql
@NameInMap(value="CronStr") public String cronStr
A crontab expression that specifies the scheduling cycle of the data archiving task. For more information, see the Crontab expressions section of the "Create shadow tables for synchronization" topic. You must specify this parameter if you set RunMethod to schedule.
example:00 05 11 * * ?
@NameInMap(value="DatabaseId") public String databaseId
The database ID. If the database is a self-managed database or a third-party cloud database, you can call the GetDatabase operation to query the database ID. If the database is an Alibaba Cloud database, ignore this parameter.
example:1***
@NameInMap(value="Logic") public Boolean logic
Specifies whether the database is a logical database.
example:false
@NameInMap(value="RunMethod") public String runMethod
The method that is used to run the data archiving task. Valid values:
This parameter is required.
example:now
@NameInMap(value="SourceCatalogName") public String sourceCatalogName
The catalog of the source database. Valid values:
This parameter is required.
example:def
@NameInMap(value="SourceInstanceName") public String sourceInstanceName
The name of the source instance. If the database instance is a self-managed database or a third-party cloud database, you can call the GetInstance operation to query the instance ID.
This parameter is required.
example:pc-bp1*******
@NameInMap(value="SourceSchemaName") public String sourceSchemaName
The schema name of the source database. The schema name of the source database is the same as that of the destination database. If the source database is a MySQL database, this parameter specifies the name of the source database. If the source database is a PostgreSQL database, this parameter specifies the schema name of the source database.
This parameter is required.
example:schema_test
@NameInMap(value="TableIncludes") public List<CreateDataArchiveOrderRequest.CreateDataArchiveOrderRequestParamTableIncludes> tableIncludes
The collection of tables to be archived.
This parameter is required.
@NameInMap(value="TableMapping") public List<String> tableMapping
The table names mapped to the destination database. This parameter is not required and the default value is used.
@NameInMap(value="TargetInstanceHost") public String targetInstanceHost
The host of the destination instance. If the destination instance can be accessed over an internal network or the Internet, preferentially set the value to the internal endpoint of the destination instance.
This parameter is required.
example:am-bp1*********.ads.aliyuncs.com
@NameInMap(value="Variables") public List<CreateDataArchiveOrderRequest.CreateDataArchiveOrderRequestParamVariables> variables
The configuration of archiving variables. You can use a time variable as a filter condition for archiving data. Each variable has two attributes: name and pattern.
public static CreateDataArchiveOrderRequest.CreateDataArchiveOrderRequestParam build(Map<String,?> map) throws Exception
Exceptionpublic CreateDataArchiveOrderRequest.CreateDataArchiveOrderRequestParam setArchiveMethod(String archiveMethod)
public String getArchiveMethod()
public CreateDataArchiveOrderRequest.CreateDataArchiveOrderRequestParam setCronStr(String cronStr)
public String getCronStr()
public CreateDataArchiveOrderRequest.CreateDataArchiveOrderRequestParam setDatabaseId(String databaseId)
public String getDatabaseId()
public CreateDataArchiveOrderRequest.CreateDataArchiveOrderRequestParam setLogic(Boolean logic)
public Boolean getLogic()
public CreateDataArchiveOrderRequest.CreateDataArchiveOrderRequestParam setOrderAfter(List<String> orderAfter)
public CreateDataArchiveOrderRequest.CreateDataArchiveOrderRequestParam setRunMethod(String runMethod)
public String getRunMethod()
public CreateDataArchiveOrderRequest.CreateDataArchiveOrderRequestParam setSourceCatalogName(String sourceCatalogName)
public String getSourceCatalogName()
public CreateDataArchiveOrderRequest.CreateDataArchiveOrderRequestParam setSourceInstanceName(String sourceInstanceName)
public String getSourceInstanceName()
public CreateDataArchiveOrderRequest.CreateDataArchiveOrderRequestParam setSourceSchemaName(String sourceSchemaName)
public String getSourceSchemaName()
public CreateDataArchiveOrderRequest.CreateDataArchiveOrderRequestParam setTableIncludes(List<CreateDataArchiveOrderRequest.CreateDataArchiveOrderRequestParamTableIncludes> tableIncludes)
public List<CreateDataArchiveOrderRequest.CreateDataArchiveOrderRequestParamTableIncludes> getTableIncludes()
public CreateDataArchiveOrderRequest.CreateDataArchiveOrderRequestParam setTableMapping(List<String> tableMapping)
public CreateDataArchiveOrderRequest.CreateDataArchiveOrderRequestParam setTargetInstanceHost(String targetInstanceHost)
public String getTargetInstanceHost()
public CreateDataArchiveOrderRequest.CreateDataArchiveOrderRequestParam setVariables(List<CreateDataArchiveOrderRequest.CreateDataArchiveOrderRequestParamVariables> variables)
public List<CreateDataArchiveOrderRequest.CreateDataArchiveOrderRequestParamVariables> getVariables()
Copyright © 2025. All rights reserved.