# coding: utf-8

"""
    CartoVista REST API

    No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)  # noqa: E501

    OpenAPI spec version: 2.0.0
    
    Generated by: https://github.com/swagger-api/swagger-codegen.git
"""

import pprint
import re  # noqa: F401

import six

class HarmerAndStressGen(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 = {
        'constraint_id': 'str',
        'harmer': 'PoiHarmer',
        'stress_gen': 'PoiStressGen'
    }

    attribute_map = {
        'constraint_id': 'constraintId',
        'harmer': 'harmer',
        'stress_gen': 'stressGen'
    }

    def __init__(self, constraint_id=None, harmer=None, stress_gen=None):  # noqa: E501
        """HarmerAndStressGen - a model defined in Swagger"""  # noqa: E501
        self._constraint_id = None
        self._harmer = None
        self._stress_gen = None
        self.discriminator = None
        if constraint_id is not None:
            self.constraint_id = constraint_id
        if harmer is not None:
            self.harmer = harmer
        if stress_gen is not None:
            self.stress_gen = stress_gen

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


        :return: The constraint_id of this HarmerAndStressGen.  # noqa: E501
        :rtype: str
        """
        return self._constraint_id

    @constraint_id.setter
    def constraint_id(self, constraint_id):
        """Sets the constraint_id of this HarmerAndStressGen.


        :param constraint_id: The constraint_id of this HarmerAndStressGen.  # noqa: E501
        :type: str
        """

        self._constraint_id = constraint_id

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


        :return: The harmer of this HarmerAndStressGen.  # noqa: E501
        :rtype: PoiHarmer
        """
        return self._harmer

    @harmer.setter
    def harmer(self, harmer):
        """Sets the harmer of this HarmerAndStressGen.


        :param harmer: The harmer of this HarmerAndStressGen.  # noqa: E501
        :type: PoiHarmer
        """

        self._harmer = harmer

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


        :return: The stress_gen of this HarmerAndStressGen.  # noqa: E501
        :rtype: PoiStressGen
        """
        return self._stress_gen

    @stress_gen.setter
    def stress_gen(self, stress_gen):
        """Sets the stress_gen of this HarmerAndStressGen.


        :param stress_gen: The stress_gen of this HarmerAndStressGen.  # noqa: E501
        :type: PoiStressGen
        """

        self._stress_gen = stress_gen

    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(HarmerAndStressGen, 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, HarmerAndStressGen):
            return False

        return self.__dict__ == other.__dict__

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