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

com.aliyuncs.dataworks_public.model.v20200518.CreateDataServiceApiRequest Maven / Gradle / Ivy

/*
 * 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.dataworks_public.model.v20200518;

import com.aliyuncs.RpcAcsRequest;
import com.aliyuncs.http.MethodType;
import com.aliyuncs.dataworks_public.Endpoint;

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

	private String scriptDetails;

	private Integer requestMethod;

	private String apiDescription;

	private Integer timeout;

	private Long folderId;

	private Long resourceGroupId;

	private Long sqlMode;

	private Long tenantId;

	private Integer requestContentType;

	private String protocols;

	private Long projectId;

	private Integer responseContentType;

	private String groupId;

	private String apiPath;

	private String wizardDetails;

	private Integer apiMode;

	private Integer visibleRange;

	private String registrationDetails;

	private String apiName;
	public CreateDataServiceApiRequest() {
		super("dataworks-public", "2020-05-18", "CreateDataServiceApi");
		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 String getScriptDetails() {
		return this.scriptDetails;
	}

	public void setScriptDetails(String scriptDetails) {
		this.scriptDetails = scriptDetails;
		if(scriptDetails != null){
			putBodyParameter("ScriptDetails", scriptDetails);
		}
	}

	public Integer getRequestMethod() {
		return this.requestMethod;
	}

	public void setRequestMethod(Integer requestMethod) {
		this.requestMethod = requestMethod;
		if(requestMethod != null){
			putBodyParameter("RequestMethod", requestMethod.toString());
		}
	}

	public String getApiDescription() {
		return this.apiDescription;
	}

	public void setApiDescription(String apiDescription) {
		this.apiDescription = apiDescription;
		if(apiDescription != null){
			putBodyParameter("ApiDescription", apiDescription);
		}
	}

	public Integer getTimeout() {
		return this.timeout;
	}

	public void setTimeout(Integer timeout) {
		this.timeout = timeout;
		if(timeout != null){
			putBodyParameter("Timeout", timeout.toString());
		}
	}

	public Long getFolderId() {
		return this.folderId;
	}

	public void setFolderId(Long folderId) {
		this.folderId = folderId;
		if(folderId != null){
			putBodyParameter("FolderId", folderId.toString());
		}
	}

	public Long getResourceGroupId() {
		return this.resourceGroupId;
	}

	public void setResourceGroupId(Long resourceGroupId) {
		this.resourceGroupId = resourceGroupId;
		if(resourceGroupId != null){
			putBodyParameter("ResourceGroupId", resourceGroupId.toString());
		}
	}

	public Long getSqlMode() {
		return this.sqlMode;
	}

	public void setSqlMode(Long sqlMode) {
		this.sqlMode = sqlMode;
		if(sqlMode != null){
			putBodyParameter("SqlMode", sqlMode.toString());
		}
	}

	public Long getTenantId() {
		return this.tenantId;
	}

	public void setTenantId(Long tenantId) {
		this.tenantId = tenantId;
		if(tenantId != null){
			putBodyParameter("TenantId", tenantId.toString());
		}
	}

	public Integer getRequestContentType() {
		return this.requestContentType;
	}

	public void setRequestContentType(Integer requestContentType) {
		this.requestContentType = requestContentType;
		if(requestContentType != null){
			putBodyParameter("RequestContentType", requestContentType.toString());
		}
	}

	public String getProtocols() {
		return this.protocols;
	}

	public void setProtocols(String protocols) {
		this.protocols = protocols;
		if(protocols != null){
			putBodyParameter("Protocols", protocols);
		}
	}

	public Long getProjectId() {
		return this.projectId;
	}

	public void setProjectId(Long projectId) {
		this.projectId = projectId;
		if(projectId != null){
			putBodyParameter("ProjectId", projectId.toString());
		}
	}

	public Integer getResponseContentType() {
		return this.responseContentType;
	}

	public void setResponseContentType(Integer responseContentType) {
		this.responseContentType = responseContentType;
		if(responseContentType != null){
			putBodyParameter("ResponseContentType", responseContentType.toString());
		}
	}

	public String getGroupId() {
		return this.groupId;
	}

	public void setGroupId(String groupId) {
		this.groupId = groupId;
		if(groupId != null){
			putBodyParameter("GroupId", groupId);
		}
	}

	public String getApiPath() {
		return this.apiPath;
	}

	public void setApiPath(String apiPath) {
		this.apiPath = apiPath;
		if(apiPath != null){
			putBodyParameter("ApiPath", apiPath);
		}
	}

	public String getWizardDetails() {
		return this.wizardDetails;
	}

	public void setWizardDetails(String wizardDetails) {
		this.wizardDetails = wizardDetails;
		if(wizardDetails != null){
			putBodyParameter("WizardDetails", wizardDetails);
		}
	}

	public Integer getApiMode() {
		return this.apiMode;
	}

	public void setApiMode(Integer apiMode) {
		this.apiMode = apiMode;
		if(apiMode != null){
			putBodyParameter("ApiMode", apiMode.toString());
		}
	}

	public Integer getVisibleRange() {
		return this.visibleRange;
	}

	public void setVisibleRange(Integer visibleRange) {
		this.visibleRange = visibleRange;
		if(visibleRange != null){
			putBodyParameter("VisibleRange", visibleRange.toString());
		}
	}

	public String getRegistrationDetails() {
		return this.registrationDetails;
	}

	public void setRegistrationDetails(String registrationDetails) {
		this.registrationDetails = registrationDetails;
		if(registrationDetails != null){
			putBodyParameter("RegistrationDetails", registrationDetails);
		}
	}

	public String getApiName() {
		return this.apiName;
	}

	public void setApiName(String apiName) {
		this.apiName = apiName;
		if(apiName != null){
			putBodyParameter("ApiName", apiName);
		}
	}

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

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy