# coding: utf-8

"""
    Aron API

    No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)  # noqa: E501

    The version of the OpenAPI document: 1.0.0
    Generated by: https://openapi-generator.tech
"""


try:
    from inspect import getfullargspec
except ImportError:
    from inspect import getargspec as getfullargspec
import pprint
import re  # noqa: F401
import six

from openapi_client.configuration import Configuration


class OrmScheduledPipelineExecution(object):
    """NOTE: This class is auto generated by OpenAPI Generator.
    Ref: https://openapi-generator.tech

    Do not edit the class manually.
    """

    """
    Attributes:
      openapi_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.
    """
    openapi_types = {
        'edges': 'OrmScheduledPipelineExecutionEdges',
        'executed_dt': 'datetime',
        'id': 'int',
        'pipeline_trigger_id': 'int',
        'scheduled_dt': 'datetime',
        'status': 'str'
    }

    attribute_map = {
        'edges': 'edges',
        'executed_dt': 'executed_dt',
        'id': 'id',
        'pipeline_trigger_id': 'pipeline_trigger_id',
        'scheduled_dt': 'scheduled_dt',
        'status': 'status'
    }

    def __init__(self, edges=None, executed_dt=None, id=None, pipeline_trigger_id=None, scheduled_dt=None, status=None, local_vars_configuration=None):  # noqa: E501
        """OrmScheduledPipelineExecution - a model defined in OpenAPI"""  # noqa: E501
        if local_vars_configuration is None:
            local_vars_configuration = Configuration.get_default_copy()
        self.local_vars_configuration = local_vars_configuration

        self._edges = None
        self._executed_dt = None
        self._id = None
        self._pipeline_trigger_id = None
        self._scheduled_dt = None
        self._status = None
        self.discriminator = None

        if edges is not None:
            self.edges = edges
        self.executed_dt = executed_dt
        if id is not None:
            self.id = id
        if pipeline_trigger_id is not None:
            self.pipeline_trigger_id = pipeline_trigger_id
        if scheduled_dt is not None:
            self.scheduled_dt = scheduled_dt
        if status is not None:
            self.status = status

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


        :return: The edges of this OrmScheduledPipelineExecution.  # noqa: E501
        :rtype: OrmScheduledPipelineExecutionEdges
        """
        return self._edges

    @edges.setter
    def edges(self, edges):
        """Sets the edges of this OrmScheduledPipelineExecution.


        :param edges: The edges of this OrmScheduledPipelineExecution.  # noqa: E501
        :type edges: OrmScheduledPipelineExecutionEdges
        """

        self._edges = edges

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


        :return: The executed_dt of this OrmScheduledPipelineExecution.  # noqa: E501
        :rtype: datetime
        """
        return self._executed_dt

    @executed_dt.setter
    def executed_dt(self, executed_dt):
        """Sets the executed_dt of this OrmScheduledPipelineExecution.


        :param executed_dt: The executed_dt of this OrmScheduledPipelineExecution.  # noqa: E501
        :type executed_dt: datetime
        """

        self._executed_dt = executed_dt

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


        :return: The id of this OrmScheduledPipelineExecution.  # noqa: E501
        :rtype: int
        """
        return self._id

    @id.setter
    def id(self, id):
        """Sets the id of this OrmScheduledPipelineExecution.


        :param id: The id of this OrmScheduledPipelineExecution.  # noqa: E501
        :type id: int
        """

        self._id = id

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


        :return: The pipeline_trigger_id of this OrmScheduledPipelineExecution.  # noqa: E501
        :rtype: int
        """
        return self._pipeline_trigger_id

    @pipeline_trigger_id.setter
    def pipeline_trigger_id(self, pipeline_trigger_id):
        """Sets the pipeline_trigger_id of this OrmScheduledPipelineExecution.


        :param pipeline_trigger_id: The pipeline_trigger_id of this OrmScheduledPipelineExecution.  # noqa: E501
        :type pipeline_trigger_id: int
        """

        self._pipeline_trigger_id = pipeline_trigger_id

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


        :return: The scheduled_dt of this OrmScheduledPipelineExecution.  # noqa: E501
        :rtype: datetime
        """
        return self._scheduled_dt

    @scheduled_dt.setter
    def scheduled_dt(self, scheduled_dt):
        """Sets the scheduled_dt of this OrmScheduledPipelineExecution.


        :param scheduled_dt: The scheduled_dt of this OrmScheduledPipelineExecution.  # noqa: E501
        :type scheduled_dt: datetime
        """

        self._scheduled_dt = scheduled_dt

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


        :return: The status of this OrmScheduledPipelineExecution.  # noqa: E501
        :rtype: str
        """
        return self._status

    @status.setter
    def status(self, status):
        """Sets the status of this OrmScheduledPipelineExecution.


        :param status: The status of this OrmScheduledPipelineExecution.  # noqa: E501
        :type status: str
        """

        self._status = status

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

        def convert(x):
            if hasattr(x, "to_dict"):
                args = getfullargspec(x.to_dict).args
                if len(args) == 1:
                    return x.to_dict()
                else:
                    return x.to_dict(serialize)
            else:
                return x

        for attr, _ in six.iteritems(self.openapi_types):
            value = getattr(self, attr)
            attr = self.attribute_map.get(attr, attr) if serialize else attr
            if isinstance(value, list):
                result[attr] = list(map(
                    lambda x: convert(x),
                    value
                ))
            elif isinstance(value, dict):
                result[attr] = dict(map(
                    lambda item: (item[0], convert(item[1])),
                    value.items()
                ))
            else:
                result[attr] = convert(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, OrmScheduledPipelineExecution):
            return False

        return self.to_dict() == other.to_dict()

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

        return self.to_dict() != other.to_dict()
