# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements.  See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership.  The ASF licenses this file
# to you 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.

from aliyunsdkcore.request import RpcRequest
from aliyunsdkopenanalytics_open.endpoint import endpoint_data

class AlterTableRequest(RpcRequest):

	def __init__(self):
		RpcRequest.__init__(self, 'openanalytics-open', '2020-09-28', 'AlterTable','openanalytics')
		self.set_method('POST')
		if hasattr(self, "endpoint_map"):
			setattr(self, "endpoint_map", endpoint_data.getEndpointMap())
		if hasattr(self, "endpoint_regional"):
			setattr(self, "endpoint_regional", endpoint_data.getEndpointRegional())


	def get_NewTableName(self):
		return self.get_query_params().get('NewTableName')

	def set_NewTableName(self,NewTableName):
		self.add_query_param('NewTableName',NewTableName)

	def get_Col(self):
		return self.get_query_params().get('Col')

	def set_Col(self,Col):
		self.add_query_param('Col',Col)

	def get_OldTableName(self):
		return self.get_query_params().get('OldTableName')

	def set_OldTableName(self,OldTableName):
		self.add_query_param('OldTableName',OldTableName)

	def get_OldDbName(self):
		return self.get_query_params().get('OldDbName')

	def set_OldDbName(self,OldDbName):
		self.add_query_param('OldDbName',OldDbName)

	def get_NewDbName(self):
		return self.get_query_params().get('NewDbName')

	def set_NewDbName(self,NewDbName):
		self.add_query_param('NewDbName',NewDbName)

	def get_Parameters(self):
		return self.get_query_params().get('Parameters')

	def set_Parameters(self,Parameters):
		self.add_query_param('Parameters',Parameters)