'Check all input params'

def check_params(self):

    if (not str(self.timeout_interval).isdigit()):
        self.module.fail_json(msg='Error:    Timeout    interval    should    be    numerical.')
    if (self.timeout_type == 'active'):
        if ((int(self.timeout_interval) < 1) or (int(self.timeout_interval) > 60)):
            self.module.fail_json(msg='Error:    Active    interval    should    between    1    -    60    minutes.')
    if (self.timeout_type == 'inactive'):
        if ((int(self.timeout_interval) < 5) or (int(self.timeout_interval) > 600)):
            self.module.fail_json(msg='Error:    Inactive    interval    should    between    5    -    600    seconds.')
    if (self.timeout_type == 'manual'):
        if (not self.manual_slot):
            self.module.fail_json(msg='Error:    If    use    manual    timeout    mode,slot    number    is    needed.')
        if (not str(self.manual_slot).isdigit()):
            self.module.fail_json(msg='Error:    Slot    number    should    be    numerical.')
