@last_name.setter
def last_name(self, last_name):
    'Sets the last_name of this Name2.\n\n\n        :param last_name: The last_name of this Name2.  # noqa: E501\n        :type: str\n        '
    if ((last_name is not None) and (len(last_name) > 40)):
        raise ValueError('Invalid value for `last_name`, length must be less than or equal to `40`')
    if ((last_name is not None) and (len(last_name) < 1)):
        raise ValueError('Invalid value for `last_name`, length must be greater than or equal to `1`')
    self._last_name = last_name
Sets the last_name of this Name2.


:param last_name: The last_name of this Name2.  # noqa: E501
:type: str
@last_name.setter
def last_name(self, last_name):
    'Sets the last_name of this Name2.\n\n\n        :param last_name: The last_name of this Name2.  # noqa: E501\n        :type: str\n        '
    if ((last_name is not None) and (len(last_name) > 40)):
        raise ValueError('Invalid value for `last_name`, length must be less than or equal to `40`')
    if ((last_name is not None) and (len(last_name) < 1)):
        raise ValueError('Invalid value for `last_name`, length must be greater than or equal to `1`')
    self._last_name = last_name