# coding: utf-8

"""
    Robust Intelligence REST API

    API methods for Robust Intelligence. Users must authenticate using the `rime-api-key` header.  # noqa: E501

    OpenAPI spec version: 1.0
    Contact: dev@robustintelligence.com
    Generated by: https://github.com/swagger-api/swagger-codegen.git
"""

import pprint
import re  # noqa: F401

import six

class SchedulesScheduleScheduleIdUuidBody(object):
    """NOTE: This class is auto generated by the swagger code generator program.

    Do not edit the class manually.
    """
    """
    Attributes:
      swagger_types (dict): The key is attribute name
                            and the value is attribute type.
      attribute_map (dict): The key is attribute name
                            and the value is json key in definition.
    """
    swagger_types = {
        'schedule_id': 'object',
        'project_id': 'RimeUUID',
        'test_run_config': 'TestrunTestRunConfig',
        'frequency_cron_expr': 'str'
    }

    attribute_map = {
        'schedule_id': 'scheduleId',
        'project_id': 'projectId',
        'test_run_config': 'testRunConfig',
        'frequency_cron_expr': 'frequencyCronExpr'
    }

    def __init__(self, schedule_id=None, project_id=None, test_run_config=None, frequency_cron_expr=None):  # noqa: E501
        """SchedulesScheduleScheduleIdUuidBody - a model defined in Swagger"""  # noqa: E501
        self._schedule_id = None
        self._project_id = None
        self._test_run_config = None
        self._frequency_cron_expr = None
        self.discriminator = None
        if schedule_id is not None:
            self.schedule_id = schedule_id
        if project_id is not None:
            self.project_id = project_id
        if test_run_config is not None:
            self.test_run_config = test_run_config
        if frequency_cron_expr is not None:
            self.frequency_cron_expr = frequency_cron_expr

    @property
    def schedule_id(self):
        """Gets the schedule_id of this SchedulesScheduleScheduleIdUuidBody.  # noqa: E501

        Unique ID of an object in RIME.  # noqa: E501

        :return: The schedule_id of this SchedulesScheduleScheduleIdUuidBody.  # noqa: E501
        :rtype: object
        """
        return self._schedule_id

    @schedule_id.setter
    def schedule_id(self, schedule_id):
        """Sets the schedule_id of this SchedulesScheduleScheduleIdUuidBody.

        Unique ID of an object in RIME.  # noqa: E501

        :param schedule_id: The schedule_id of this SchedulesScheduleScheduleIdUuidBody.  # noqa: E501
        :type: object
        """

        self._schedule_id = schedule_id

    @property
    def project_id(self):
        """Gets the project_id of this SchedulesScheduleScheduleIdUuidBody.  # noqa: E501


        :return: The project_id of this SchedulesScheduleScheduleIdUuidBody.  # noqa: E501
        :rtype: RimeUUID
        """
        return self._project_id

    @project_id.setter
    def project_id(self, project_id):
        """Sets the project_id of this SchedulesScheduleScheduleIdUuidBody.


        :param project_id: The project_id of this SchedulesScheduleScheduleIdUuidBody.  # noqa: E501
        :type: RimeUUID
        """

        self._project_id = project_id

    @property
    def test_run_config(self):
        """Gets the test_run_config of this SchedulesScheduleScheduleIdUuidBody.  # noqa: E501


        :return: The test_run_config of this SchedulesScheduleScheduleIdUuidBody.  # noqa: E501
        :rtype: TestrunTestRunConfig
        """
        return self._test_run_config

    @test_run_config.setter
    def test_run_config(self, test_run_config):
        """Sets the test_run_config of this SchedulesScheduleScheduleIdUuidBody.


        :param test_run_config: The test_run_config of this SchedulesScheduleScheduleIdUuidBody.  # noqa: E501
        :type: TestrunTestRunConfig
        """

        self._test_run_config = test_run_config

    @property
    def frequency_cron_expr(self):
        """Gets the frequency_cron_expr of this SchedulesScheduleScheduleIdUuidBody.  # noqa: E501

        Cron expression used to determine how often to run the schedule. Accepts \"@hourly\", \"@daily\", \"@weekly\", and \"@monthly\".  # noqa: E501

        :return: The frequency_cron_expr of this SchedulesScheduleScheduleIdUuidBody.  # noqa: E501
        :rtype: str
        """
        return self._frequency_cron_expr

    @frequency_cron_expr.setter
    def frequency_cron_expr(self, frequency_cron_expr):
        """Sets the frequency_cron_expr of this SchedulesScheduleScheduleIdUuidBody.

        Cron expression used to determine how often to run the schedule. Accepts \"@hourly\", \"@daily\", \"@weekly\", and \"@monthly\".  # noqa: E501

        :param frequency_cron_expr: The frequency_cron_expr of this SchedulesScheduleScheduleIdUuidBody.  # noqa: E501
        :type: str
        """

        self._frequency_cron_expr = frequency_cron_expr

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

        for attr, _ in six.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
        if issubclass(SchedulesScheduleScheduleIdUuidBody, dict):
            for key, value in self.items():
                result[key] = value

        return result

    def to_str(self):
        """Returns the string representation of the model"""
        return pprint.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"""
        if not isinstance(other, SchedulesScheduleScheduleIdUuidBody):
            return False

        return self.__dict__ == other.__dict__

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