def custom_init_params(self, custom_init_params):
        """Sets the custom_init_params of this LinkedSourceDefinition.

        

        :param custom_init_params: The custom_init_params of this LinkedSourceDefinition.
        :type custom_init_params: List[VirtualSourceDefinitionCustomInitParams]
        """
        # Validating the attribute custom_init_params and then saving it.
        expected_type = util.convert_type(
            'List[VirtualSourceDefinitionCustomInitParams]')
        element_type = util.get_contained_type(
            'List[VirtualSourceDefinitionCustomInitParams]')
        type_error = GeneratedClassesTypeError.type_error(
            LinkedSourceDefinition, 'custom_init_params', custom_init_params,
            expected_type, False, element_type)
        if type_error:
            raise type_error
        self._custom_init_params = custom_init_params
    def __init__(self,
                 username='',
                 mount_path='',
                 dbid='',
                 custom_init_params_file='',
                 custom_init_params=None,
                 rman_channels=None,
                 dbctrlbkppiece='',
                 password='',
                 instance_name='',
                 dbrmanbkploc='',
                 validate=True):
        """LinkedSourceDefinition - a model defined in Swagger. The type of some of these
        attributes can be defined as a List[ERRORUNKNOWN]. This just means they
        are a list of any type.

            :param username: The username of this LinkedSourceDefinition.
            :type username: str
            :param mount_path: The mount_path of this LinkedSourceDefinition.
            :type mount_path: str
            :param dbid: The dbid of this LinkedSourceDefinition.
            :type dbid: str
            :param custom_init_params_file: The custom_init_params_file of this LinkedSourceDefinition.
            :type custom_init_params_file: str
            :param custom_init_params: The custom_init_params of this LinkedSourceDefinition.
            :type custom_init_params: List[VirtualSourceDefinitionCustomInitParams]
            :param rman_channels: The rman_channels of this LinkedSourceDefinition.
            :type rman_channels: int
            :param dbctrlbkppiece: The dbctrlbkppiece of this LinkedSourceDefinition.
            :type dbctrlbkppiece: str
            :param password: The password of this LinkedSourceDefinition.
            :type password: str
            :param instance_name: The instance_name of this LinkedSourceDefinition.
            :type instance_name: str
            :param dbrmanbkploc: The dbrmanbkploc of this LinkedSourceDefinition.
            :type dbrmanbkploc: str
            :param validate: If the validation should be done during init. This
            should only be called internally when calling from_dict.
            :type validate: bool
        """
        self.swagger_types = {
            'username':
            str,
            'mount_path':
            str,
            'dbid':
            str,
            'custom_init_params_file':
            str,
            'custom_init_params':
            util.convert_type('List[VirtualSourceDefinitionCustomInitParams]'),
            'rman_channels':
            int,
            'dbctrlbkppiece':
            str,
            'password':
            str,
            'instance_name':
            str,
            'dbrmanbkploc':
            str
        }

        self.attribute_map = {
            'username': '******',
            'mount_path': 'mountPath',
            'dbid': 'dbid',
            'custom_init_params_file': 'customInitParamsFile',
            'custom_init_params': 'customInitParams',
            'rman_channels': 'rmanChannels',
            'dbctrlbkppiece': 'dbctrlbkppiece',
            'password': '******',
            'instance_name': 'instanceName',
            'dbrmanbkploc': 'dbrmanbkploc'
        }

        # Validating the attribute username and then saving it.
        if validate and username is None:
            raise GeneratedClassesError(
                "The required parameter 'username' must not be 'None'.")
        type_error = GeneratedClassesTypeError.type_error(
            LinkedSourceDefinition, 'username', username, str, True)
        if validate and type_error:
            raise type_error
        self._username = username

        # Validating the attribute mount_path and then saving it.
        if validate and mount_path is None:
            raise GeneratedClassesError(
                "The required parameter 'mount_path' must not be 'None'.")
        type_error = GeneratedClassesTypeError.type_error(
            LinkedSourceDefinition, 'mount_path', mount_path, str, True)
        if validate and type_error:
            raise type_error
        self._mount_path = mount_path

        # Validating the attribute dbid and then saving it.
        if validate and dbid is None:
            raise GeneratedClassesError(
                "The required parameter 'dbid' must not be 'None'.")
        type_error = GeneratedClassesTypeError.type_error(
            LinkedSourceDefinition, 'dbid', dbid, str, True)
        if validate and type_error:
            raise type_error
        if (dbid is not None and not re.search('^$|^[0-9]*$', dbid)):
            raise GeneratedClassesError(
                "Invalid value for 'dbid', was '{}' but must follow the"
                " pattern '^$|^[0-9]*$'.".format(dbid))
        self._dbid = dbid

        # Validating the attribute custom_init_params_file and then saving it.
        type_error = GeneratedClassesTypeError.type_error(
            LinkedSourceDefinition, 'custom_init_params_file',
            custom_init_params_file, str, False)
        if validate and type_error:
            raise type_error
        self._custom_init_params_file = custom_init_params_file

        # Validating the attribute custom_init_params and then saving it.
        expected_type = util.convert_type(
            'List[VirtualSourceDefinitionCustomInitParams]')
        element_type = util.get_contained_type(
            'List[VirtualSourceDefinitionCustomInitParams]')
        type_error = GeneratedClassesTypeError.type_error(
            LinkedSourceDefinition, 'custom_init_params', custom_init_params,
            expected_type, False, element_type)
        if validate and type_error:
            raise type_error
        self._custom_init_params = custom_init_params

        # Validating the attribute rman_channels and then saving it.
        type_error = GeneratedClassesTypeError.type_error(
            LinkedSourceDefinition, 'rman_channels', rman_channels, int, False)
        if validate and type_error:
            raise type_error
        self._rman_channels = rman_channels

        # Validating the attribute dbctrlbkppiece and then saving it.
        if validate and dbctrlbkppiece is None:
            raise GeneratedClassesError(
                "The required parameter 'dbctrlbkppiece' must not be 'None'.")
        type_error = GeneratedClassesTypeError.type_error(
            LinkedSourceDefinition, 'dbctrlbkppiece', dbctrlbkppiece, str,
            True)
        if validate and type_error:
            raise type_error
        if (dbctrlbkppiece is not None
                and not re.search('^$|^[^\\s]*$', dbctrlbkppiece)):
            raise GeneratedClassesError(
                "Invalid value for 'dbctrlbkppiece', was '{}' but must follow the"
                " pattern '^$|^[^\\s]*$'.".format(dbctrlbkppiece))
        self._dbctrlbkppiece = dbctrlbkppiece

        # Validating the attribute password and then saving it.
        if validate and password is None:
            raise GeneratedClassesError(
                "The required parameter 'password' must not be 'None'.")
        type_error = GeneratedClassesTypeError.type_error(
            LinkedSourceDefinition, 'password', password, str, True)
        if validate and type_error:
            raise type_error
        self._password = password

        # Validating the attribute instance_name and then saving it.
        if validate and instance_name is None:
            raise GeneratedClassesError(
                "The required parameter 'instance_name' must not be 'None'.")
        type_error = GeneratedClassesTypeError.type_error(
            LinkedSourceDefinition, 'instance_name', instance_name, str, True)
        if validate and type_error:
            raise type_error
        self._instance_name = instance_name

        # Validating the attribute dbrmanbkploc and then saving it.
        if validate and dbrmanbkploc is None:
            raise GeneratedClassesError(
                "The required parameter 'dbrmanbkploc' must not be 'None'.")
        type_error = GeneratedClassesTypeError.type_error(
            LinkedSourceDefinition, 'dbrmanbkploc', dbrmanbkploc, str, True)
        if validate and type_error:
            raise type_error
        if (dbrmanbkploc is not None
                and not re.search('^$|^[^\\s]*$', dbrmanbkploc)):
            raise GeneratedClassesError(
                "Invalid value for 'dbrmanbkploc', was '{}' but must follow the"
                " pattern '^$|^[^\\s]*$'.".format(dbrmanbkploc))
        self._dbrmanbkploc = dbrmanbkploc