# coding: utf-8

"""
    Ed-Fi Operational Data Store API

    The Ed-Fi ODS / API enables applications to read and write education data stored in an Ed-Fi ODS through a secure REST interface.  ***  > *Note: Consumers of ODS / API information should sanitize all data for display and storage. The ODS / API provides reasonable safeguards against cross-site scripting attacks and other malicious content, but the platform does not and cannot guarantee that the data it contains is free of all potentially harmful content.*  ***   # noqa: E501

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


import pprint
import re  # noqa: F401

import six

from swagger_client.configuration import Configuration


class TpdmTeacherCandidateStudentGrowthMeasureEducationOrganizationAssociation(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 = {
        'id': 'str',
        'education_organization_reference': 'EdFiEducationOrganizationReference',
        'teacher_candidate_student_growth_measure_reference': 'TpdmTeacherCandidateStudentGrowthMeasureReference',
        'begin_date': 'date',
        'end_date': 'date',
        'etag': 'str'
    }

    attribute_map = {
        'id': 'id',
        'education_organization_reference': 'educationOrganizationReference',
        'teacher_candidate_student_growth_measure_reference': 'teacherCandidateStudentGrowthMeasureReference',
        'begin_date': 'beginDate',
        'end_date': 'endDate',
        'etag': '_etag'
    }

    def __init__(self, id=None, education_organization_reference=None, teacher_candidate_student_growth_measure_reference=None, begin_date=None, end_date=None, etag=None, _configuration=None):  # noqa: E501
        """TpdmTeacherCandidateStudentGrowthMeasureEducationOrganizationAssociation - a model defined in Swagger"""  # noqa: E501
        if _configuration is None:
            _configuration = Configuration()
        self._configuration = _configuration

        self._id = None
        self._education_organization_reference = None
        self._teacher_candidate_student_growth_measure_reference = None
        self._begin_date = None
        self._end_date = None
        self._etag = None
        self.discriminator = None

        if id is not None:
            self.id = id
        self.education_organization_reference = education_organization_reference
        self.teacher_candidate_student_growth_measure_reference = teacher_candidate_student_growth_measure_reference
        if begin_date is not None:
            self.begin_date = begin_date
        if end_date is not None:
            self.end_date = end_date
        if etag is not None:
            self.etag = etag

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

          # noqa: E501

        :return: The id of this TpdmTeacherCandidateStudentGrowthMeasureEducationOrganizationAssociation.  # noqa: E501
        :rtype: str
        """
        return self._id

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

          # noqa: E501

        :param id: The id of this TpdmTeacherCandidateStudentGrowthMeasureEducationOrganizationAssociation.  # noqa: E501
        :type: str
        """

        self._id = id

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


        :return: The education_organization_reference of this TpdmTeacherCandidateStudentGrowthMeasureEducationOrganizationAssociation.  # noqa: E501
        :rtype: EdFiEducationOrganizationReference
        """
        return self._education_organization_reference

    @education_organization_reference.setter
    def education_organization_reference(self, education_organization_reference):
        """Sets the education_organization_reference of this TpdmTeacherCandidateStudentGrowthMeasureEducationOrganizationAssociation.


        :param education_organization_reference: The education_organization_reference of this TpdmTeacherCandidateStudentGrowthMeasureEducationOrganizationAssociation.  # noqa: E501
        :type: EdFiEducationOrganizationReference
        """
        if self._configuration.client_side_validation and education_organization_reference is None:
            raise ValueError("Invalid value for `education_organization_reference`, must not be `None`")  # noqa: E501

        self._education_organization_reference = education_organization_reference

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


        :return: The teacher_candidate_student_growth_measure_reference of this TpdmTeacherCandidateStudentGrowthMeasureEducationOrganizationAssociation.  # noqa: E501
        :rtype: TpdmTeacherCandidateStudentGrowthMeasureReference
        """
        return self._teacher_candidate_student_growth_measure_reference

    @teacher_candidate_student_growth_measure_reference.setter
    def teacher_candidate_student_growth_measure_reference(self, teacher_candidate_student_growth_measure_reference):
        """Sets the teacher_candidate_student_growth_measure_reference of this TpdmTeacherCandidateStudentGrowthMeasureEducationOrganizationAssociation.


        :param teacher_candidate_student_growth_measure_reference: The teacher_candidate_student_growth_measure_reference of this TpdmTeacherCandidateStudentGrowthMeasureEducationOrganizationAssociation.  # noqa: E501
        :type: TpdmTeacherCandidateStudentGrowthMeasureReference
        """
        if self._configuration.client_side_validation and teacher_candidate_student_growth_measure_reference is None:
            raise ValueError("Invalid value for `teacher_candidate_student_growth_measure_reference`, must not be `None`")  # noqa: E501

        self._teacher_candidate_student_growth_measure_reference = teacher_candidate_student_growth_measure_reference

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

        Begin date for the association  # noqa: E501

        :return: The begin_date of this TpdmTeacherCandidateStudentGrowthMeasureEducationOrganizationAssociation.  # noqa: E501
        :rtype: date
        """
        return self._begin_date

    @begin_date.setter
    def begin_date(self, begin_date):
        """Sets the begin_date of this TpdmTeacherCandidateStudentGrowthMeasureEducationOrganizationAssociation.

        Begin date for the association  # noqa: E501

        :param begin_date: The begin_date of this TpdmTeacherCandidateStudentGrowthMeasureEducationOrganizationAssociation.  # noqa: E501
        :type: date
        """

        self._begin_date = begin_date

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

        The end date for the association  # noqa: E501

        :return: The end_date of this TpdmTeacherCandidateStudentGrowthMeasureEducationOrganizationAssociation.  # noqa: E501
        :rtype: date
        """
        return self._end_date

    @end_date.setter
    def end_date(self, end_date):
        """Sets the end_date of this TpdmTeacherCandidateStudentGrowthMeasureEducationOrganizationAssociation.

        The end date for the association  # noqa: E501

        :param end_date: The end_date of this TpdmTeacherCandidateStudentGrowthMeasureEducationOrganizationAssociation.  # noqa: E501
        :type: date
        """

        self._end_date = end_date

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

        A unique system-generated value that identifies the version of the resource.  # noqa: E501

        :return: The etag of this TpdmTeacherCandidateStudentGrowthMeasureEducationOrganizationAssociation.  # noqa: E501
        :rtype: str
        """
        return self._etag

    @etag.setter
    def etag(self, etag):
        """Sets the etag of this TpdmTeacherCandidateStudentGrowthMeasureEducationOrganizationAssociation.

        A unique system-generated value that identifies the version of the resource.  # noqa: E501

        :param etag: The etag of this TpdmTeacherCandidateStudentGrowthMeasureEducationOrganizationAssociation.  # noqa: E501
        :type: str
        """

        self._etag = etag

    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(TpdmTeacherCandidateStudentGrowthMeasureEducationOrganizationAssociation, 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, TpdmTeacherCandidateStudentGrowthMeasureEducationOrganizationAssociation):
            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, TpdmTeacherCandidateStudentGrowthMeasureEducationOrganizationAssociation):
            return True

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