# 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 aliyunsdknlb.endpoint import endpoint_data

class ListLoadBalancersRequest(RpcRequest):

	def __init__(self):
		RpcRequest.__init__(self, 'Nlb', '2022-04-30', 'ListLoadBalancers','nlb')
		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_LoadBalancerNamess(self): # RepeatList
		return self.get_query_params().get('LoadBalancerNames')

	def set_LoadBalancerNamess(self, LoadBalancerNames):  # RepeatList
		for depth1 in range(len(LoadBalancerNames)):
			self.add_query_param('LoadBalancerNames.' + str(depth1 + 1), LoadBalancerNames[depth1])
	def get_LoadBalancerIdss(self): # RepeatList
		return self.get_query_params().get('LoadBalancerIds')

	def set_LoadBalancerIdss(self, LoadBalancerIds):  # RepeatList
		for depth1 in range(len(LoadBalancerIds)):
			self.add_query_param('LoadBalancerIds.' + str(depth1 + 1), LoadBalancerIds[depth1])
	def get_AddressIpVersion(self): # String
		return self.get_query_params().get('AddressIpVersion')

	def set_AddressIpVersion(self, AddressIpVersion):  # String
		self.add_query_param('AddressIpVersion', AddressIpVersion)
	def get_ResourceGroupId(self): # String
		return self.get_query_params().get('ResourceGroupId')

	def set_ResourceGroupId(self, ResourceGroupId):  # String
		self.add_query_param('ResourceGroupId', ResourceGroupId)
	def get_NextToken(self): # String
		return self.get_query_params().get('NextToken')

	def set_NextToken(self, NextToken):  # String
		self.add_query_param('NextToken', NextToken)
	def METHOD_NAME(self): # String
		return self.get_query_params().get('DNSName')

	def set_DNSName(self, DNSName):  # String
		self.add_query_param('DNSName', DNSName)
	def get_AddressType(self): # String
		return self.get_query_params().get('AddressType')

	def set_AddressType(self, AddressType):  # String
		self.add_query_param('AddressType', AddressType)
	def get_Tag(self): # Array
		return self.get_query_params().get('Tag')

	def set_Tag(self, Tag):  # Array
		for index1, value1 in enumerate(Tag):
			if value1.get('Key') is not None:
				self.add_query_param('Tag.' + str(index1 + 1) + '.Key', value1.get('Key'))
			if value1.get('Value') is not None:
				self.add_query_param('Tag.' + str(index1 + 1) + '.Value', value1.get('Value'))
	def get_VpcIdss(self): # RepeatList
		return self.get_query_params().get('VpcIds')

	def set_VpcIdss(self, VpcIds):  # RepeatList
		for depth1 in range(len(VpcIds)):
			self.add_query_param('VpcIds.' + str(depth1 + 1), VpcIds[depth1])
	def get_LoadBalancerBusinessStatus(self): # String
		return self.get_query_params().get('LoadBalancerBusinessStatus')

	def set_LoadBalancerBusinessStatus(self, LoadBalancerBusinessStatus):  # String
		self.add_query_param('LoadBalancerBusinessStatus', LoadBalancerBusinessStatus)
	def get_LoadBalancerStatus(self): # String
		return self.get_query_params().get('LoadBalancerStatus')

	def set_LoadBalancerStatus(self, LoadBalancerStatus):  # String
		self.add_query_param('LoadBalancerStatus', LoadBalancerStatus)
	def get_LoadBalancerType(self): # String
		return self.get_query_params().get('LoadBalancerType')

	def set_LoadBalancerType(self, LoadBalancerType):  # String
		self.add_query_param('LoadBalancerType', LoadBalancerType)
	def get_ZoneId(self): # String
		return self.get_query_params().get('ZoneId')

	def set_ZoneId(self, ZoneId):  # String
		self.add_query_param('ZoneId', ZoneId)
	def get_MaxResults(self): # Integer
		return self.get_query_params().get('MaxResults')

	def set_MaxResults(self, MaxResults):  # Integer
		self.add_query_param('MaxResults', MaxResults)
	def get_Ipv6AddressType(self): # String
		return self.get_query_params().get('Ipv6AddressType')

	def set_Ipv6AddressType(self, Ipv6AddressType):  # String
		self.add_query_param('Ipv6AddressType', Ipv6AddressType)