# coding: utf-8

"""
    Jordskredvarsel API

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

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

import pprint
import re  # noqa: F401

import six


class AlertInfoResource(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 = {
        'resource_desc_field': 'str',
        'mime_type_field': 'int',
        'size_field': 'str',
        'uri_field': 'str'
    }

    attribute_map = {
        'resource_desc_field': 'resourceDescField',
        'mime_type_field': 'mimeTypeField',
        'size_field': 'sizeField',
        'uri_field': 'uriField'
    }

    def __init__(self, resource_desc_field=None, mime_type_field=None, size_field=None, uri_field=None):  # noqa: E501
        """AlertInfoResource - a model defined in Swagger"""  # noqa: E501
        self._resource_desc_field = None
        self._mime_type_field = None
        self._size_field = None
        self._uri_field = None
        self.discriminator = None
        if resource_desc_field is not None:
            self.resource_desc_field = resource_desc_field
        if mime_type_field is not None:
            self.mime_type_field = mime_type_field
        if size_field is not None:
            self.size_field = size_field
        if uri_field is not None:
            self.uri_field = uri_field

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


        :return: The resource_desc_field of this AlertInfoResource.  # noqa: E501
        :rtype: str
        """
        return self._resource_desc_field

    @resource_desc_field.setter
    def resource_desc_field(self, resource_desc_field):
        """Sets the resource_desc_field of this AlertInfoResource.


        :param resource_desc_field: The resource_desc_field of this AlertInfoResource.  # noqa: E501
        :type: str
        """

        self._resource_desc_field = resource_desc_field

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


        :return: The mime_type_field of this AlertInfoResource.  # noqa: E501
        :rtype: int
        """
        return self._mime_type_field

    @mime_type_field.setter
    def mime_type_field(self, mime_type_field):
        """Sets the mime_type_field of this AlertInfoResource.


        :param mime_type_field: The mime_type_field of this AlertInfoResource.  # noqa: E501
        :type: int
        """
        allowed_values = [0, 1, 2]  # noqa: E501
        if mime_type_field not in allowed_values:
            raise ValueError(
                "Invalid value for `mime_type_field` ({0}), must be one of {1}"  # noqa: E501
                .format(mime_type_field, allowed_values)
            )

        self._mime_type_field = mime_type_field

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


        :return: The size_field of this AlertInfoResource.  # noqa: E501
        :rtype: str
        """
        return self._size_field

    @size_field.setter
    def size_field(self, size_field):
        """Sets the size_field of this AlertInfoResource.


        :param size_field: The size_field of this AlertInfoResource.  # noqa: E501
        :type: str
        """

        self._size_field = size_field

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


        :return: The uri_field of this AlertInfoResource.  # noqa: E501
        :rtype: str
        """
        return self._uri_field

    @uri_field.setter
    def uri_field(self, uri_field):
        """Sets the uri_field of this AlertInfoResource.


        :param uri_field: The uri_field of this AlertInfoResource.  # noqa: E501
        :type: str
        """

        self._uri_field = uri_field

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

        return self.__dict__ == other.__dict__

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