#
# Copyright (c) 2008-2015 Citrix Systems, Inc.
#
#   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.
#

from nssrc.com.citrix.netscaler.nitro.resource.base.base_resource import base_resource
from nssrc.com.citrix.netscaler.nitro.resource.base.base_resource import base_response
from nssrc.com.citrix.netscaler.nitro.service.options import options
from nssrc.com.citrix.netscaler.nitro.exception.nitro_exception import nitro_exception

from nssrc.com.citrix.netscaler.nitro.util.nitro_util import nitro_util

class rnat(base_resource) :
	""" Configuration for RNAT configured route resource. """
	def __init__(self) :
		self._network = ""
		self._netmask = ""
		self._aclname = ""
		self._redirectport = False
		self._natip = ""
		self._td = 0
		self._natip2 = ""
		self._srcippersistency = ""
		self.___count = 0

	@property
	def network(self) :
		ur"""The network address defined for the RNAT entry.<br/>Minimum length =  1.
		"""
		try :
			return self._network
		except Exception as e:
			raise e

	@network.setter
	def network(self, network) :
		ur"""The network address defined for the RNAT entry.<br/>Minimum length =  1
		"""
		try :
			self._network = network
		except Exception as e:
			raise e

	@property
	def netmask(self) :
		ur"""The subnet mask for the network address.<br/>Minimum length =  1.
		"""
		try :
			return self._netmask
		except Exception as e:
			raise e

	@netmask.setter
	def netmask(self, netmask) :
		ur"""The subnet mask for the network address.<br/>Minimum length =  1
		"""
		try :
			self._netmask = netmask
		except Exception as e:
			raise e

	@property
	def aclname(self) :
		ur"""An extended ACL defined for the RNAT entry.<br/>Minimum length =  1.
		"""
		try :
			return self._aclname
		except Exception as e:
			raise e

	@aclname.setter
	def aclname(self, aclname) :
		ur"""An extended ACL defined for the RNAT entry.<br/>Minimum length =  1
		"""
		try :
			self._aclname = aclname
		except Exception as e:
			raise e

	@property
	def redirectport(self) :
		ur"""The port number to which the packets are redirected.
		"""
		try :
			return self._redirectport
		except Exception as e:
			raise e

	@redirectport.setter
	def redirectport(self, redirectport) :
		ur"""The port number to which the packets are redirected.
		"""
		try :
			self._redirectport = redirectport
		except Exception as e:
			raise e

	@property
	def natip(self) :
		ur"""The NAT IP address defined for the RNAT entry. .<br/>Minimum length =  1.
		"""
		try :
			return self._natip
		except Exception as e:
			raise e

	@natip.setter
	def natip(self, natip) :
		ur"""The NAT IP address defined for the RNAT entry. .<br/>Minimum length =  1
		"""
		try :
			self._natip = natip
		except Exception as e:
			raise e