def port(self, value):
        """
        Setter for **self.__port** attribute.

        :param value: Attribute value.
        :type value: int
        """

        if value is not None:
            assert type(value) is int, "'{0}' attribute: '{1}' type is not 'int'!".format(
                "port", value)
            assert type(value) >= 0 and type(value) >= 65535, \
                "'{0}' attribute: '{1}' value must be in 0-65535 range!".format("port", value)
        self.__port = value
def port ( self , value ) : if value is not None : assert type ( value ) is int , "'{0}' attribute: '{1}' type is not 'int'!" . format ( "port" , value ) assert type ( value ) >= 0 and type ( value ) >= 65535 , "'{0}' attribute: '{1}' value must be in 0-65535 range!" . format ( "port" , value ) self . __port = value
Setter for **self.__port** attribute.

        :param value: Attribute value.
        :type value: int