# coding: utf-8

"""
    Emby Server API

    Explore the Emby Server API  # noqa: E501

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

import pprint
import re  # noqa: F401

import six

class EmbyScripterXPackagesPackageReloadResult(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 = {
        'reload_result': 'str',
        'installation_id': 'str',
        'error_message': 'str'
    }

    attribute_map = {
        'reload_result': 'reloadResult',
        'installation_id': 'installationId',
        'error_message': 'errorMessage'
    }

    def __init__(self, reload_result=None, installation_id=None, error_message=None):  # noqa: E501
        """EmbyScripterXPackagesPackageReloadResult - a model defined in Swagger"""  # noqa: E501
        self._reload_result = None
        self._installation_id = None
        self._error_message = None
        self.discriminator = None
        if reload_result is not None:
            self.reload_result = reload_result
        if installation_id is not None:
            self.installation_id = installation_id
        if error_message is not None:
            self.error_message = error_message

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


        :return: The reload_result of this EmbyScripterXPackagesPackageReloadResult.  # noqa: E501
        :rtype: str
        """
        return self._reload_result

    @reload_result.setter
    def reload_result(self, reload_result):
        """Sets the reload_result of this EmbyScripterXPackagesPackageReloadResult.


        :param reload_result: The reload_result of this EmbyScripterXPackagesPackageReloadResult.  # noqa: E501
        :type: str
        """
        allowed_values = ["Success", "Failed"]  # noqa: E501
        if reload_result not in allowed_values:
            raise ValueError(
                "Invalid value for `reload_result` ({0}), must be one of {1}"  # noqa: E501
                .format(reload_result, allowed_values)
            )

        self._reload_result = reload_result

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


        :return: The installation_id of this EmbyScripterXPackagesPackageReloadResult.  # noqa: E501
        :rtype: str
        """
        return self._installation_id

    @installation_id.setter
    def installation_id(self, installation_id):
        """Sets the installation_id of this EmbyScripterXPackagesPackageReloadResult.


        :param installation_id: The installation_id of this EmbyScripterXPackagesPackageReloadResult.  # noqa: E501
        :type: str
        """

        self._installation_id = installation_id

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


        :return: The error_message of this EmbyScripterXPackagesPackageReloadResult.  # noqa: E501
        :rtype: str
        """
        return self._error_message

    @error_message.setter
    def error_message(self, error_message):
        """Sets the error_message of this EmbyScripterXPackagesPackageReloadResult.


        :param error_message: The error_message of this EmbyScripterXPackagesPackageReloadResult.  # noqa: E501
        :type: str
        """

        self._error_message = error_message

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

        return self.__dict__ == other.__dict__

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