# coding: utf-8

"""
    Knetik Platform API Documentation latest 

    This is the spec for the Knetik API.  Use this in conjunction with the documentation found at https://knetikcloud.com.

    OpenAPI spec version: latest 
    Contact: support@knetik.com
    Generated by: https://github.com/swagger-api/swagger-codegen.git
"""


from pprint import pformat
from six import iteritems
import re


class BareActivityResource(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 = {
        'created_date': 'int',
        'id': 'int',
        'launch': 'str',
        'long_description': 'str',
        'name': 'str',
        'short_description': 'str',
        'template': 'bool',
        'type': 'str',
        'unique_key': 'str',
        'updated_date': 'int'
    }

    attribute_map = {
        'created_date': 'created_date',
        'id': 'id',
        'launch': 'launch',
        'long_description': 'long_description',
        'name': 'name',
        'short_description': 'short_description',
        'template': 'template',
        'type': 'type',
        'unique_key': 'unique_key',
        'updated_date': 'updated_date'
    }

    def __init__(self, created_date=None, id=None, launch=None, long_description=None, name=None, short_description=None, template=None, type=None, unique_key=None, updated_date=None):
        """
        BareActivityResource - a model defined in Swagger
        """

        self._created_date = None
        self._id = None
        self._launch = None
        self._long_description = None
        self._name = None
        self._short_description = None
        self._template = None
        self._type = None
        self._unique_key = None
        self._updated_date = None
        self.discriminator = None

        if created_date is not None:
          self.created_date = created_date
        if id is not None:
          self.id = id
        if launch is not None:
          self.launch = launch
        if long_description is not None:
          self.long_description = long_description
        self.name = name
        if short_description is not None:
          self.short_description = short_description
        if template is not None:
          self.template = template
        if type is not None:
          self.type = type
        if unique_key is not None:
          self.unique_key = unique_key
        if updated_date is not None:
          self.updated_date = updated_date

    @property
    def created_date(self):
        """
        Gets the created_date of this BareActivityResource.
        The date/time this resource was created in seconds since unix epoch

        :return: The created_date of this BareActivityResource.
        :rtype: int
        """
        return self._created_date

    @created_date.setter
    def created_date(self, created_date):
        """
        Sets the created_date of this BareActivityResource.
        The date/time this resource was created in seconds since unix epoch

        :param created_date: The created_date of this BareActivityResource.
        :type: int
        """

        self._created_date = created_date

    @property
    def id(self):
        """
        Gets the id of this BareActivityResource.
        The unique ID for that resource

        :return: The id of this BareActivityResource.
        :rtype: int
        """
        return self._id

    @id.setter
    def id(self, id):
        """
        Sets the id of this BareActivityResource.
        The unique ID for that resource

        :param id: The id of this BareActivityResource.
        :type: int
        """

        self._id = id

    @property
    def launch(self):
        """
        Gets the launch of this BareActivityResource.
        Details about how to launch the activity

        :return: The launch of this BareActivityResource.
        :rtype: str
        """
        return self._launch

    @launch.setter
    def launch(self, launch):
        """
        Sets the launch of this BareActivityResource.
        Details about how to launch the activity

        :param launch: The launch of this BareActivityResource.
        :type: str
        """

        self._launch = launch

    @property
    def long_description(self):
        """
        Gets the long_description of this BareActivityResource.
        The user friendly name of that resource. Defaults to blank string

        :return: The long_description of this BareActivityResource.
        :rtype: str
        """
        return self._long_description

    @long_description.setter
    def long_description(self, long_description):
        """
        Sets the long_description of this BareActivityResource.
        The user friendly name of that resource. Defaults to blank string

        :param long_description: The long_description of this BareActivityResource.
        :type: str
        """

        self._long_description = long_description

    @property
    def name(self):
        """
        Gets the name of this BareActivityResource.
        The user friendly name of that resource

        :return: The name of this BareActivityResource.
        :rtype: str
        """
        return self._name

    @name.setter
    def name(self, name):
        """
        Sets the name of this BareActivityResource.
        The user friendly name of that resource

        :param name: The name of this BareActivityResource.
        :type: str
        """
        if name is None:
            raise ValueError("Invalid value for `name`, must not be `None`")

        self._name = name

    @property
    def short_description(self):
        """
        Gets the short_description of this BareActivityResource.
        The user friendly name of that resource. Defaults to blank string

        :return: The short_description of this BareActivityResource.
        :rtype: str
        """
        return self._short_description

    @short_description.setter
    def short_description(self, short_description):
        """
        Sets the short_description of this BareActivityResource.
        The user friendly name of that resource. Defaults to blank string

        :param short_description: The short_description of this BareActivityResource.
        :type: str
        """

        self._short_description = short_description

    @property
    def template(self):
        """
        Gets the template of this BareActivityResource.
        Whether this activity is a template for other activities. Default: false

        :return: The template of this BareActivityResource.
        :rtype: bool
        """
        return self._template

    @template.setter
    def template(self, template):
        """
        Sets the template of this BareActivityResource.
        Whether this activity is a template for other activities. Default: false

        :param template: The template of this BareActivityResource.
        :type: bool
        """

        self._template = template

    @property
    def type(self):
        """
        Gets the type of this BareActivityResource.
        The type of the activity

        :return: The type of this BareActivityResource.
        :rtype: str
        """
        return self._type

    @type.setter
    def type(self, type):
        """
        Sets the type of this BareActivityResource.
        The type of the activity

        :param type: The type of this BareActivityResource.
        :type: str
        """

        self._type = type

    @property
    def unique_key(self):
        """
        Gets the unique_key of this BareActivityResource.
        The unique key (for static reference in code) of the activity

        :return: The unique_key of this BareActivityResource.
        :rtype: str
        """
        return self._unique_key

    @unique_key.setter
    def unique_key(self, unique_key):
        """
        Sets the unique_key of this BareActivityResource.
        The unique key (for static reference in code) of the activity

        :param unique_key: The unique_key of this BareActivityResource.
        :type: str
        """

        self._unique_key = unique_key

    @property
    def updated_date(self):
        """
        Gets the updated_date of this BareActivityResource.
        The date/time this resource was last updated in seconds since unix epoch

        :return: The updated_date of this BareActivityResource.
        :rtype: int
        """
        return self._updated_date

    @updated_date.setter
    def updated_date(self, updated_date):
        """
        Sets the updated_date of this BareActivityResource.
        The date/time this resource was last updated in seconds since unix epoch

        :param updated_date: The updated_date of this BareActivityResource.
        :type: int
        """

        self._updated_date = updated_date

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

        for attr, _ in 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

        return result

    def to_str(self):
        """
        Returns the string representation of the model
        """
        return 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, BareActivityResource):
            return False

        return self.__dict__ == other.__dict__

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