# coding: utf-8

"""
Copyright 2016 SmartBear Software

    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.

    Ref: https://github.com/swagger-api/swagger-codegen
"""

from pprint import pformat
from six import iteritems
import re


class SettingsReportsSettings(object):
    """
    NOTE: This class is auto generated by the swagger code generator program.
    Do not edit the class manually.
    """
    def __init__(self):
        """
        SettingsReportsSettings - a model defined in Swagger

        :param dict swaggerTypes: The key is attribute name
                                  and the value is attribute type.
        :param dict attributeMap: The key is attribute name
                                  and the value is json key in definition.
        """
        self.swagger_types = {
            'live_dir': 'str',
            'live_retain': 'int',
            'schedule': 'str',
            'scheduled_dir': 'str',
            'scheduled_retain': 'int'
        }

        self.attribute_map = {
            'live_dir': 'live_dir',
            'live_retain': 'live_retain',
            'schedule': 'schedule',
            'scheduled_dir': 'scheduled_dir',
            'scheduled_retain': 'scheduled_retain'
        }

        self._live_dir = None
        self._live_retain = None
        self._schedule = None
        self._scheduled_dir = None
        self._scheduled_retain = None

    @property
    def live_dir(self):
        """
        Gets the live_dir of this SettingsReportsSettings.
        The directory on /ifs where manual or live reports will be placed.

        :return: The live_dir of this SettingsReportsSettings.
        :rtype: str
        """
        return self._live_dir

    @live_dir.setter
    def live_dir(self, live_dir):
        """
        Sets the live_dir of this SettingsReportsSettings.
        The directory on /ifs where manual or live reports will be placed.

        :param live_dir: The live_dir of this SettingsReportsSettings.
        :type: str
        """
        
        self._live_dir = live_dir

    @property
    def live_retain(self):
        """
        Gets the live_retain of this SettingsReportsSettings.
        The number of manual reports to keep.

        :return: The live_retain of this SettingsReportsSettings.
        :rtype: int
        """
        return self._live_retain

    @live_retain.setter
    def live_retain(self, live_retain):
        """
        Sets the live_retain of this SettingsReportsSettings.
        The number of manual reports to keep.

        :param live_retain: The live_retain of this SettingsReportsSettings.
        :type: int
        """
        
        if not live_retain:
            raise ValueError("Invalid value for `live_retain`, must not be `None`")
        if live_retain < 1.0:
            raise ValueError("Invalid value for `live_retain`, must be a value greater than or equal to `1.0`")

        self._live_retain = live_retain

    @property
    def schedule(self):
        """
        Gets the schedule of this SettingsReportsSettings.
        The isidate schedule used to generate reports.

        :return: The schedule of this SettingsReportsSettings.
        :rtype: str
        """
        return self._schedule

    @schedule.setter
    def schedule(self, schedule):
        """
        Sets the schedule of this SettingsReportsSettings.
        The isidate schedule used to generate reports.

        :param schedule: The schedule of this SettingsReportsSettings.
        :type: str
        """
        
        self._schedule = schedule

    @property
    def scheduled_dir(self):
        """
        Gets the scheduled_dir of this SettingsReportsSettings.
        The directory on /ifs where schedule reports will be placed.

        :return: The scheduled_dir of this SettingsReportsSettings.
        :rtype: str
        """
        return self._scheduled_dir

    @scheduled_dir.setter
    def scheduled_dir(self, scheduled_dir):
        """
        Sets the scheduled_dir of this SettingsReportsSettings.
        The directory on /ifs where schedule reports will be placed.

        :param scheduled_dir: The scheduled_dir of this SettingsReportsSettings.
        :type: str
        """
        
        self._scheduled_dir = scheduled_dir

    @property
    def scheduled_retain(self):
        """
        Gets the scheduled_retain of this SettingsReportsSettings.
        The number of scheduled reports to keep.

        :return: The scheduled_retain of this SettingsReportsSettings.
        :rtype: int
        """
        return self._scheduled_retain

    @scheduled_retain.setter
    def scheduled_retain(self, scheduled_retain):
        """
        Sets the scheduled_retain of this SettingsReportsSettings.
        The number of scheduled reports to keep.

        :param scheduled_retain: The scheduled_retain of this SettingsReportsSettings.
        :type: int
        """
        
        if not scheduled_retain:
            raise ValueError("Invalid value for `scheduled_retain`, must not be `None`")
        if scheduled_retain < 1.0:
            raise ValueError("Invalid value for `scheduled_retain`, must be a value greater than or equal to `1.0`")

        self._scheduled_retain = scheduled_retain

    def to_dict(self):
        """
        Returns the model properties as a dict
        """
        result = {}

        for attr, _ in iteritems(self.swagger_types):
            value = getattr(self, attr)
            if isinstance(value, list):
                result[attr] = list(map(
                    lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
                    value
                ))
            elif hasattr(value, "to_dict"):
                result[attr] = value.to_dict()
            elif isinstance(value, dict):
                result[attr] = dict(map(
                    lambda item: (item[0], item[1].to_dict())
                    if hasattr(item[1], "to_dict") else item,
                    value.items()
                ))
            else:
                result[attr] = value

        return result

    def to_str(self):
        """
        Returns the string representation of the model
        """
        return pformat(self.to_dict())

    def __repr__(self):
        """
        For `print` and `pprint`
        """
        return self.to_str()

    def __eq__(self, other):
        """
        Returns true if both objects are equal
        """
        return self.__dict__ == other.__dict__

    def __ne__(self, other):
        """
        Returns true if both objects are not equal
        """
        return not self == other

