text: # 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
  class CreateScalingGroupRequest(RpcRequest):
  
  	def __init__(self):
  		RpcRequest.__init__(self, 'Ess', '2014-08-28', 'CreateScalingGroup','ess')
  
  	def get_MultiAZPolicy(self):
  		return self.get_query_params().get('MultiAZPolicy')
  
  	def set_MultiAZPolicy(self,MultiAZPolicy):
  		self.add_query_param('MultiAZPolicy',MultiAZPolicy)
  
  	def get_DBInstanceIds(self):
  		return self.get_query_params().get('DBInstanceIds')
  
  	def set_DBInstanceIds(self,DBInstanceIds):
  		self.add_query_param('DBInstanceIds',DBInstanceIds)
  
  	def get_LoadBalancerIds(self):
  		return self.get_query_params().get('LoadBalancerIds')
  
  	def set_LoadBalancerIds(self,LoadBalancerIds):
  		self.add_query_param('LoadBalancerIds',LoadBalancerIds)
  
  	def get_HealthCheckType(self):
  		return self.get_query_params().get('HealthCheckType')
  
  	def set_HealthCheckType(self,HealthCheckType):
  		self.add_query_param('HealthCheckType',HealthCheckType)
  
  	def get_ResourceOwnerAccount(self):
  		return self.get_query_params().get('ResourceOwnerAccount')
  
  	def set_ResourceOwnerAccount(self,ResourceOwnerAccount):
  		self.add_query_param('ResourceOwnerAccount',ResourceOwnerAccount)
  
  	def get_ScalingGroupName(self):
  		return self.get_query_params().get('ScalingGroupName')
  
  	def set_ScalingGroupName(self,ScalingGroupName):
  		self.add_query_param('ScalingGroupName',ScalingGroupName)
  
  	def get_VSwitchIds(self):
  		return self.get_query_params().get('VSwitchIds')
  
  	def set_VSwitchIds(self,VSwitchIds):
  		for i in range(len(VSwitchIds)):	
  			if VSwitchIds[i] is not None:
  				self.add_query_param('VSwitchIds.' + str(i + 1) , VSwitchIds[i]);
  
  	def get_OwnerAccount(self):
  		return self.get_query_params().get('OwnerAccount')
  
  	def set_OwnerAccount(self,OwnerAccount):
  		self.add_query_param('OwnerAccount',OwnerAccount)
  
  	def get_MinSize(self):
  		return self.get_query_params().get('MinSize')
  
  	def set_MinSize(self,MinSize):
  		self.add_query_param('MinSize',MinSize)
  
  	def get_OwnerId(self):
  		return self.get_query_params().get('OwnerId')
  
  	def set_OwnerId(self,OwnerId):
  		self.add_query_param('OwnerId',OwnerId)
  
  	def get_VSwitchId(self):
  		return self.get_query_params().get('VSwitchId')
  
  	def set_VSwitchId(self,VSwitchId):
  		self.add_query_param('VSwitchId',VSwitchId)
  
  	def get_MaxSize(self):
  		return self.get_query_params().get('MaxSize')
  
  	def set_MaxSize(self,MaxSize):
  		self.add_query_param('MaxSize',MaxSize)
  
  	def get_LifecycleHooks(self):
  		return self.get_query_params().get('LifecycleHooks')
  
  	def set_LifecycleHooks(self,LifecycleHooks):
  		for i in range(len(LifecycleHooks)):	
  			if LifecycleHooks[i].get('LifecycleHookName') is not None:
  				self.add_query_param('LifecycleHook.' + str(i + 1) + '.LifecycleHookName' , LifecycleHooks[i].get('LifecycleHookName'))
  			if LifecycleHooks[i].get('LifecycleTransition') is not None:
  				self.add_query_param('LifecycleHook.' + str(i + 1) + '.LifecycleTransition' , LifecycleHooks[i].get('LifecycleTransition'))
  			if LifecycleHooks[i].get('DefaultResult') is not None:
  				self.add_query_param('LifecycleHook.' + str(i + 1) + '.DefaultResult' , LifecycleHooks[i].get('DefaultResult'))
  			if LifecycleHooks[i].get('HeartbeatTimeout') is not None:
  				self.add_query_param('LifecycleHook.' + str(i + 1) + '.HeartbeatTimeout' , LifecycleHooks[i].get('HeartbeatTimeout'))
  			if LifecycleHooks[i].get('NotificationMetadata') is not None:
  				self.add_query_param('LifecycleHook.' + str(i + 1) + '.NotificationMetadata' , LifecycleHooks[i].get('NotificationMetadata'))
  			if LifecycleHooks[i].get('NotificationArn') is not None:
  				self.add_query_param('LifecycleHook.' + str(i + 1) + '.NotificationArn' , LifecycleHooks[i].get('NotificationArn'))
  
  
  	def get_DefaultCooldown(self):
  		return self.get_query_params().get('DefaultCooldown')
  
  	def set_DefaultCooldown(self,DefaultCooldown):
  		self.add_query_param('DefaultCooldown',DefaultCooldown)
  
  	def get_RemovalPolicy1(self):
  		return self.get_query_params().get('RemovalPolicy.1')
  
  	def set_RemovalPolicy1(self,RemovalPolicy1):
  		self.add_query_param('RemovalPolicy.1',RemovalPolicy1)
  
  	def get_RemovalPolicy2(self):
  		return self.get_query_params().get('RemovalPolicy.2')
  
  	def set_RemovalPolicy2(self,RemovalPolicy2):
  		self.add_query_param('RemovalPolicy.2',RemovalPolicy2)
  