# coding: utf-8

"""
    Octopus Server API

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

    OpenAPI spec version: 2019.6.7+Branch.tags-2019.6.7.Sha.aa18dc6809953218c66f57eff7d26481d9b23d6a
    
    Generated by: https://github.com/swagger-api/swagger-codegen.git
"""


import pprint
import re  # noqa: F401

import six

from octopus_deploy_swagger_client.models.release_template_package import ReleaseTemplatePackage  # noqa: F401,E501


class ReleaseTemplateResource(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',
        'deployment_process_id': 'str',
        'last_release_version': 'str',
        'next_version_increment': 'str',
        'versioning_package_step_name': 'str',
        'versioning_package_reference_name': 'str',
        'packages': 'list[ReleaseTemplatePackage]',
        'last_modified_on': 'datetime',
        'last_modified_by': 'str',
        'links': 'dict(str, str)'
    }

    attribute_map = {
        'id': 'Id',
        'deployment_process_id': 'DeploymentProcessId',
        'last_release_version': 'LastReleaseVersion',
        'next_version_increment': 'NextVersionIncrement',
        'versioning_package_step_name': 'VersioningPackageStepName',
        'versioning_package_reference_name': 'VersioningPackageReferenceName',
        'packages': 'Packages',
        'last_modified_on': 'LastModifiedOn',
        'last_modified_by': 'LastModifiedBy',
        'links': 'Links'
    }

    def __init__(self, id=None, deployment_process_id=None, last_release_version=None, next_version_increment=None, versioning_package_step_name=None, versioning_package_reference_name=None, packages=None, last_modified_on=None, last_modified_by=None, links=None):  # noqa: E501
        """ReleaseTemplateResource - a model defined in Swagger"""  # noqa: E501

        self._id = None
        self._deployment_process_id = None
        self._last_release_version = None
        self._next_version_increment = None
        self._versioning_package_step_name = None
        self._versioning_package_reference_name = None
        self._packages = None
        self._last_modified_on = None
        self._last_modified_by = None
        self._links = None
        self.discriminator = None

        if id is not None:
            self.id = id
        if deployment_process_id is not None:
            self.deployment_process_id = deployment_process_id
        if last_release_version is not None:
            self.last_release_version = last_release_version
        if next_version_increment is not None:
            self.next_version_increment = next_version_increment
        if versioning_package_step_name is not None:
            self.versioning_package_step_name = versioning_package_step_name
        if versioning_package_reference_name is not None:
            self.versioning_package_reference_name = versioning_package_reference_name
        if packages is not None:
            self.packages = packages
        if last_modified_on is not None:
            self.last_modified_on = last_modified_on
        if last_modified_by is not None:
            self.last_modified_by = last_modified_by
        if links is not None:
            self.links = links

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


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

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


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

        self._id = id

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


        :return: The deployment_process_id of this ReleaseTemplateResource.  # noqa: E501
        :rtype: str
        """
        return self._deployment_process_id

    @deployment_process_id.setter
    def deployment_process_id(self, deployment_process_id):
        """Sets the deployment_process_id of this ReleaseTemplateResource.


        :param deployment_process_id: The deployment_process_id of this ReleaseTemplateResource.  # noqa: E501
        :type: str
        """

        self._deployment_process_id = deployment_process_id

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


        :return: The last_release_version of this ReleaseTemplateResource.  # noqa: E501
        :rtype: str
        """
        return self._last_release_version

    @last_release_version.setter
    def last_release_version(self, last_release_version):
        """Sets the last_release_version of this ReleaseTemplateResource.


        :param last_release_version: The last_release_version of this ReleaseTemplateResource.  # noqa: E501
        :type: str
        """

        self._last_release_version = last_release_version

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


        :return: The next_version_increment of this ReleaseTemplateResource.  # noqa: E501
        :rtype: str
        """
        return self._next_version_increment

    @next_version_increment.setter
    def next_version_increment(self, next_version_increment):
        """Sets the next_version_increment of this ReleaseTemplateResource.


        :param next_version_increment: The next_version_increment of this ReleaseTemplateResource.  # noqa: E501
        :type: str
        """

        self._next_version_increment = next_version_increment

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


        :return: The versioning_package_step_name of this ReleaseTemplateResource.  # noqa: E501
        :rtype: str
        """
        return self._versioning_package_step_name

    @versioning_package_step_name.setter
    def versioning_package_step_name(self, versioning_package_step_name):
        """Sets the versioning_package_step_name of this ReleaseTemplateResource.


        :param versioning_package_step_name: The versioning_package_step_name of this ReleaseTemplateResource.  # noqa: E501
        :type: str
        """

        self._versioning_package_step_name = versioning_package_step_name

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


        :return: The versioning_package_reference_name of this ReleaseTemplateResource.  # noqa: E501
        :rtype: str
        """
        return self._versioning_package_reference_name

    @versioning_package_reference_name.setter
    def versioning_package_reference_name(self, versioning_package_reference_name):
        """Sets the versioning_package_reference_name of this ReleaseTemplateResource.


        :param versioning_package_reference_name: The versioning_package_reference_name of this ReleaseTemplateResource.  # noqa: E501
        :type: str
        """

        self._versioning_package_reference_name = versioning_package_reference_name

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


        :return: The packages of this ReleaseTemplateResource.  # noqa: E501
        :rtype: list[ReleaseTemplatePackage]
        """
        return self._packages

    @packages.setter
    def packages(self, packages):
        """Sets the packages of this ReleaseTemplateResource.


        :param packages: The packages of this ReleaseTemplateResource.  # noqa: E501
        :type: list[ReleaseTemplatePackage]
        """

        self._packages = packages

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


        :return: The last_modified_on of this ReleaseTemplateResource.  # noqa: E501
        :rtype: datetime
        """
        return self._last_modified_on

    @last_modified_on.setter
    def last_modified_on(self, last_modified_on):
        """Sets the last_modified_on of this ReleaseTemplateResource.


        :param last_modified_on: The last_modified_on of this ReleaseTemplateResource.  # noqa: E501
        :type: datetime
        """

        self._last_modified_on = last_modified_on

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


        :return: The last_modified_by of this ReleaseTemplateResource.  # noqa: E501
        :rtype: str
        """
        return self._last_modified_by

    @last_modified_by.setter
    def last_modified_by(self, last_modified_by):
        """Sets the last_modified_by of this ReleaseTemplateResource.


        :param last_modified_by: The last_modified_by of this ReleaseTemplateResource.  # noqa: E501
        :type: str
        """

        self._last_modified_by = last_modified_by

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


        :return: The links of this ReleaseTemplateResource.  # noqa: E501
        :rtype: dict(str, str)
        """
        return self._links

    @links.setter
    def links(self, links):
        """Sets the links of this ReleaseTemplateResource.


        :param links: The links of this ReleaseTemplateResource.  # noqa: E501
        :type: dict(str, str)
        """

        self._links = links

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

        return self.__dict__ == other.__dict__

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