All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.aliyuncs.dms_enterprise.model.v20181101.CreateDataArchiveOrderRequest Maven / Gradle / Ivy

Go to download

Aliyun Open API SDK for Java Copyright (C) Alibaba Cloud Computing All rights reserved. 版权所有 (C)阿里云计算有限公司 http://www.aliyun.com

The newest version!
/*
 * 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.aliyuncs.dms_enterprise.model.v20181101;

import com.aliyuncs.RpcAcsRequest;
import java.util.List;
import com.google.gson.Gson;
import com.google.gson.annotations.SerializedName;
import com.aliyuncs.http.MethodType;
import com.aliyuncs.dms_enterprise.Endpoint;

/**
 * @author auto create
 * @version 
 */
public class CreateDataArchiveOrderRequest extends RpcAcsRequest {
	   

	private Long tid;

	private Long parentId;

	private String pluginType;

	@SerializedName("param")
	private Param param;

	@SerializedName("relatedUserList")
	private List relatedUserList;

	private String comment;
	public CreateDataArchiveOrderRequest() {
		super("dms-enterprise", "2018-11-01", "CreateDataArchiveOrder", "dms-enterprise");
		setMethod(MethodType.POST);
		try {
			com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap);
			com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType);
		} catch (Exception e) {}
	}

	public Long getTid() {
		return this.tid;
	}

	public void setTid(Long tid) {
		this.tid = tid;
		if(tid != null){
			putQueryParameter("Tid", tid.toString());
		}
	}

	public Long getParentId() {
		return this.parentId;
	}

	public void setParentId(Long parentId) {
		this.parentId = parentId;
		if(parentId != null){
			putQueryParameter("ParentId", parentId.toString());
		}
	}

	public String getPluginType() {
		return this.pluginType;
	}

	public void setPluginType(String pluginType) {
		this.pluginType = pluginType;
		if(pluginType != null){
			putQueryParameter("PluginType", pluginType);
		}
	}

	public Param getParam() {
		return this.param;
	}

	public void setParam(Param param) {
		this.param = param;	
		if (param != null) {
			putQueryParameter("Param" , new Gson().toJson(param));
		}	
	}

	public List getRelatedUserList() {
		return this.relatedUserList;
	}

	public void setRelatedUserList(List relatedUserList) {
		this.relatedUserList = relatedUserList;	
		if (relatedUserList != null) {
			putQueryParameter("RelatedUserList" , new Gson().toJson(relatedUserList));
		}	
	}

	public String getComment() {
		return this.comment;
	}

	public void setComment(String comment) {
		this.comment = comment;
		if(comment != null){
			putQueryParameter("Comment", comment);
		}
	}

	public static class Param {

		@SerializedName("Variables")
		private List variables;

		@SerializedName("SourceInstanceName")
		private String sourceInstanceName;

		@SerializedName("CronStr")
		private String cronStr;

		@SerializedName("TableMapping")
		private List tableMapping;

		@SerializedName("OrderAfter")
		private List orderAfter;

		@SerializedName("TargetInstanceHost")
		private String targetInstanceHost;

		@SerializedName("TableIncludes")
		private List tableIncludes;

		@SerializedName("SourceCatalogName")
		private String sourceCatalogName;

		@SerializedName("RunMethod")
		private String runMethod;

		@SerializedName("Logic")
		private Boolean logic;

		@SerializedName("SourceSchemaName")
		private String sourceSchemaName;

		@SerializedName("ArchiveMethod")
		private String archiveMethod;

		@SerializedName("DatabaseId")
		private String databaseId;

		public List getVariables() {
			return this.variables;
		}

		public void setVariables(List variables) {
			this.variables = variables;
		}

		public String getSourceInstanceName() {
			return this.sourceInstanceName;
		}

		public void setSourceInstanceName(String sourceInstanceName) {
			this.sourceInstanceName = sourceInstanceName;
		}

		public String getCronStr() {
			return this.cronStr;
		}

		public void setCronStr(String cronStr) {
			this.cronStr = cronStr;
		}

		public List getTableMapping() {
			return this.tableMapping;
		}

		public void setTableMapping(List tableMapping) {
			this.tableMapping = tableMapping;
		}

		public List getOrderAfter() {
			return this.orderAfter;
		}

		public void setOrderAfter(List orderAfter) {
			this.orderAfter = orderAfter;
		}

		public String getTargetInstanceHost() {
			return this.targetInstanceHost;
		}

		public void setTargetInstanceHost(String targetInstanceHost) {
			this.targetInstanceHost = targetInstanceHost;
		}

		public List getTableIncludes() {
			return this.tableIncludes;
		}

		public void setTableIncludes(List tableIncludes) {
			this.tableIncludes = tableIncludes;
		}

		public String getSourceCatalogName() {
			return this.sourceCatalogName;
		}

		public void setSourceCatalogName(String sourceCatalogName) {
			this.sourceCatalogName = sourceCatalogName;
		}

		public String getRunMethod() {
			return this.runMethod;
		}

		public void setRunMethod(String runMethod) {
			this.runMethod = runMethod;
		}

		public Boolean getLogic() {
			return this.logic;
		}

		public void setLogic(Boolean logic) {
			this.logic = logic;
		}

		public String getSourceSchemaName() {
			return this.sourceSchemaName;
		}

		public void setSourceSchemaName(String sourceSchemaName) {
			this.sourceSchemaName = sourceSchemaName;
		}

		public String getArchiveMethod() {
			return this.archiveMethod;
		}

		public void setArchiveMethod(String archiveMethod) {
			this.archiveMethod = archiveMethod;
		}

		public String getDatabaseId() {
			return this.databaseId;
		}

		public void setDatabaseId(String databaseId) {
			this.databaseId = databaseId;
		}

		public static class VariablesItem {

			@SerializedName("Name")
			private String name;

			@SerializedName("Pattern")
			private String pattern;

			public String getName() {
				return this.name;
			}

			public void setName(String name) {
				this.name = name;
			}

			public String getPattern() {
				return this.pattern;
			}

			public void setPattern(String pattern) {
				this.pattern = pattern;
			}
		}

		public static class TableIncludesItem {

			@SerializedName("TableWhere")
			private String tableWhere;

			@SerializedName("TableName")
			private String tableName;

			public String getTableWhere() {
				return this.tableWhere;
			}

			public void setTableWhere(String tableWhere) {
				this.tableWhere = tableWhere;
			}

			public String getTableName() {
				return this.tableName;
			}

			public void setTableName(String tableName) {
				this.tableName = tableName;
			}
		}
	}

	@Override
	public Class getResponseClass() {
		return CreateDataArchiveOrderResponse.class;
	}

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy