![JAR search and dependency download from the Maven repository](/logo.png)
com.tencentcloudapi.dts.v20211206.models.ModifyMigrationJobRequest Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of tencentcloud-sdk-java-intl-en Show documentation
Show all versions of tencentcloud-sdk-java-intl-en Show documentation
Tencent Cloud API SDK for Java
/*
* Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.tencentcloudapi.dts.v20211206.models;
import com.tencentcloudapi.common.AbstractModel;
import com.tencentcloudapi.common.SSEResponseModel;
import com.google.gson.annotations.SerializedName;
import com.google.gson.annotations.Expose;
import java.util.HashMap;
public class ModifyMigrationJobRequest extends AbstractModel {
/**
* Task ID
*/
@SerializedName("JobId")
@Expose
private String JobId;
/**
* Running mode. Valid values: `immediate`, `timed`.
*/
@SerializedName("RunMode")
@Expose
private String RunMode;
/**
* Migration task configuration options, which describe how the task performs migration. The `RateLimitOption` option cannot be configured. To modify the speed limit settings of the task, use the `ModifyMigrateRateLimit` API after the task starts running.
*/
@SerializedName("MigrateOption")
@Expose
private MigrateOption MigrateOption;
/**
* Source instance information
*/
@SerializedName("SrcInfo")
@Expose
private DBEndpointInfo SrcInfo;
/**
* Target instance information
*/
@SerializedName("DstInfo")
@Expose
private DBEndpointInfo DstInfo;
/**
* Migration task name, which can contain up to 128 characters.
*/
@SerializedName("JobName")
@Expose
private String JobName;
/**
* Expected start time in the format of "2006-01-02 15:04:05", which is required if `RunMode` is `timed`.
*/
@SerializedName("ExpectRunTime")
@Expose
private String ExpectRunTime;
/**
* Tag information
*/
@SerializedName("Tags")
@Expose
private TagItem [] Tags;
/**
* Automatic retry time, which can be set to 5-720 minutes. 0 indicates that retry is disabled.
*/
@SerializedName("AutoRetryTimeRangeMinutes")
@Expose
private Long AutoRetryTimeRangeMinutes;
/**
* Get Task ID
* @return JobId Task ID
*/
public String getJobId() {
return this.JobId;
}
/**
* Set Task ID
* @param JobId Task ID
*/
public void setJobId(String JobId) {
this.JobId = JobId;
}
/**
* Get Running mode. Valid values: `immediate`, `timed`.
* @return RunMode Running mode. Valid values: `immediate`, `timed`.
*/
public String getRunMode() {
return this.RunMode;
}
/**
* Set Running mode. Valid values: `immediate`, `timed`.
* @param RunMode Running mode. Valid values: `immediate`, `timed`.
*/
public void setRunMode(String RunMode) {
this.RunMode = RunMode;
}
/**
* Get Migration task configuration options, which describe how the task performs migration. The `RateLimitOption` option cannot be configured. To modify the speed limit settings of the task, use the `ModifyMigrateRateLimit` API after the task starts running.
* @return MigrateOption Migration task configuration options, which describe how the task performs migration. The `RateLimitOption` option cannot be configured. To modify the speed limit settings of the task, use the `ModifyMigrateRateLimit` API after the task starts running.
*/
public MigrateOption getMigrateOption() {
return this.MigrateOption;
}
/**
* Set Migration task configuration options, which describe how the task performs migration. The `RateLimitOption` option cannot be configured. To modify the speed limit settings of the task, use the `ModifyMigrateRateLimit` API after the task starts running.
* @param MigrateOption Migration task configuration options, which describe how the task performs migration. The `RateLimitOption` option cannot be configured. To modify the speed limit settings of the task, use the `ModifyMigrateRateLimit` API after the task starts running.
*/
public void setMigrateOption(MigrateOption MigrateOption) {
this.MigrateOption = MigrateOption;
}
/**
* Get Source instance information
* @return SrcInfo Source instance information
*/
public DBEndpointInfo getSrcInfo() {
return this.SrcInfo;
}
/**
* Set Source instance information
* @param SrcInfo Source instance information
*/
public void setSrcInfo(DBEndpointInfo SrcInfo) {
this.SrcInfo = SrcInfo;
}
/**
* Get Target instance information
* @return DstInfo Target instance information
*/
public DBEndpointInfo getDstInfo() {
return this.DstInfo;
}
/**
* Set Target instance information
* @param DstInfo Target instance information
*/
public void setDstInfo(DBEndpointInfo DstInfo) {
this.DstInfo = DstInfo;
}
/**
* Get Migration task name, which can contain up to 128 characters.
* @return JobName Migration task name, which can contain up to 128 characters.
*/
public String getJobName() {
return this.JobName;
}
/**
* Set Migration task name, which can contain up to 128 characters.
* @param JobName Migration task name, which can contain up to 128 characters.
*/
public void setJobName(String JobName) {
this.JobName = JobName;
}
/**
* Get Expected start time in the format of "2006-01-02 15:04:05", which is required if `RunMode` is `timed`.
* @return ExpectRunTime Expected start time in the format of "2006-01-02 15:04:05", which is required if `RunMode` is `timed`.
*/
public String getExpectRunTime() {
return this.ExpectRunTime;
}
/**
* Set Expected start time in the format of "2006-01-02 15:04:05", which is required if `RunMode` is `timed`.
* @param ExpectRunTime Expected start time in the format of "2006-01-02 15:04:05", which is required if `RunMode` is `timed`.
*/
public void setExpectRunTime(String ExpectRunTime) {
this.ExpectRunTime = ExpectRunTime;
}
/**
* Get Tag information
* @return Tags Tag information
*/
public TagItem [] getTags() {
return this.Tags;
}
/**
* Set Tag information
* @param Tags Tag information
*/
public void setTags(TagItem [] Tags) {
this.Tags = Tags;
}
/**
* Get Automatic retry time, which can be set to 5-720 minutes. 0 indicates that retry is disabled.
* @return AutoRetryTimeRangeMinutes Automatic retry time, which can be set to 5-720 minutes. 0 indicates that retry is disabled.
*/
public Long getAutoRetryTimeRangeMinutes() {
return this.AutoRetryTimeRangeMinutes;
}
/**
* Set Automatic retry time, which can be set to 5-720 minutes. 0 indicates that retry is disabled.
* @param AutoRetryTimeRangeMinutes Automatic retry time, which can be set to 5-720 minutes. 0 indicates that retry is disabled.
*/
public void setAutoRetryTimeRangeMinutes(Long AutoRetryTimeRangeMinutes) {
this.AutoRetryTimeRangeMinutes = AutoRetryTimeRangeMinutes;
}
public ModifyMigrationJobRequest() {
}
/**
* NOTE: Any ambiguous key set via .set("AnyKey", "value") will be a shallow copy,
* and any explicit key, i.e Foo, set via .setFoo("value") will be a deep copy.
*/
public ModifyMigrationJobRequest(ModifyMigrationJobRequest source) {
if (source.JobId != null) {
this.JobId = new String(source.JobId);
}
if (source.RunMode != null) {
this.RunMode = new String(source.RunMode);
}
if (source.MigrateOption != null) {
this.MigrateOption = new MigrateOption(source.MigrateOption);
}
if (source.SrcInfo != null) {
this.SrcInfo = new DBEndpointInfo(source.SrcInfo);
}
if (source.DstInfo != null) {
this.DstInfo = new DBEndpointInfo(source.DstInfo);
}
if (source.JobName != null) {
this.JobName = new String(source.JobName);
}
if (source.ExpectRunTime != null) {
this.ExpectRunTime = new String(source.ExpectRunTime);
}
if (source.Tags != null) {
this.Tags = new TagItem[source.Tags.length];
for (int i = 0; i < source.Tags.length; i++) {
this.Tags[i] = new TagItem(source.Tags[i]);
}
}
if (source.AutoRetryTimeRangeMinutes != null) {
this.AutoRetryTimeRangeMinutes = new Long(source.AutoRetryTimeRangeMinutes);
}
}
/**
* Internal implementation, normal users should not use it.
*/
public void toMap(HashMap map, String prefix) {
this.setParamSimple(map, prefix + "JobId", this.JobId);
this.setParamSimple(map, prefix + "RunMode", this.RunMode);
this.setParamObj(map, prefix + "MigrateOption.", this.MigrateOption);
this.setParamObj(map, prefix + "SrcInfo.", this.SrcInfo);
this.setParamObj(map, prefix + "DstInfo.", this.DstInfo);
this.setParamSimple(map, prefix + "JobName", this.JobName);
this.setParamSimple(map, prefix + "ExpectRunTime", this.ExpectRunTime);
this.setParamArrayObj(map, prefix + "Tags.", this.Tags);
this.setParamSimple(map, prefix + "AutoRetryTimeRangeMinutes", this.AutoRetryTimeRangeMinutes);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy