# coding: utf-8

"""
    Vidispine API

    No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)  # noqa: E501

    The version of the OpenAPI document: 5.x
    Contact: info@vidispine.com
    Generated by: https://openapi-generator.tech
"""


import pprint
import re  # noqa: F401

import six
from . import *

class VidinetServiceType(object):
    """NOTE: This class is auto generated by OpenAPI Generator.
    Ref: https://openapi-generator.tech

    Do not edit the class manually.
    """

    """
    Attributes:
      openapi_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.
    """
    openapi_types = {
        'endpoint': 'str',
        'name': 'str',
        'url': 'str',
        'state': 'str',
        'scheme': 'list[str]',
        'type': 'str'
    }

    attribute_map = {
        'endpoint': 'endpoint',
        'name': 'name',
        'url': 'url',
        'state': 'state',
        'scheme': 'scheme',
        'type': 'type'
    }

    def __init__(self, endpoint=None, name=None, url=None, state=None, scheme=None, type=None):  # noqa: E501
        """VidinetServiceType - a model defined in OpenAPI"""  # noqa: E501

        self._endpoint = None
        self._name = None
        self._url = None
        self._state = None
        self._scheme = None
        self._type = None
        self.discriminator = None

        if endpoint is not None:
            self.endpoint = endpoint
        if name is not None:
            self.name = name
        self.url = url
        if state is not None:
            self.state = state
        if scheme is not None:
            self.scheme = scheme
        self.type = type

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


        :return: The endpoint of this VidinetServiceType.  # noqa: E501
        :rtype: str
        """
        return self._endpoint

    @endpoint.setter
    def endpoint(self, endpoint):
        """Sets the endpoint of this VidinetServiceType.


        :param endpoint: The endpoint of this VidinetServiceType.  # noqa: E501
        :type: str
        """

        self._endpoint = endpoint

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


        :return: The name of this VidinetServiceType.  # noqa: E501
        :rtype: str
        """
        return self._name

    @name.setter
    def name(self, name):
        """Sets the name of this VidinetServiceType.


        :param name: The name of this VidinetServiceType.  # noqa: E501
        :type: str
        """

        self._name = name

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


        :return: The url of this VidinetServiceType.  # noqa: E501
        :rtype: str
        """
        return self._url

    @url.setter
    def url(self, url):
        """Sets the url of this VidinetServiceType.


        :param url: The url of this VidinetServiceType.  # noqa: E501
        :type: str
        """
        if url is None:
            raise ValueError("Invalid value for `url`, must not be `None`")  # noqa: E501

        self._url = url

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


        :return: The state of this VidinetServiceType.  # noqa: E501
        :rtype: str
        """
        return self._state

    @state.setter
    def state(self, state):
        """Sets the state of this VidinetServiceType.


        :param state: The state of this VidinetServiceType.  # noqa: E501
        :type: str
        """

        self._state = state

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


        :return: The scheme of this VidinetServiceType.  # noqa: E501
        :rtype: list[str]
        """
        return self._scheme

    @scheme.setter
    def scheme(self, scheme):
        """Sets the scheme of this VidinetServiceType.


        :param scheme: The scheme of this VidinetServiceType.  # noqa: E501
        :type: list[str]
        """

        self._scheme = scheme

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


        :return: The type of this VidinetServiceType.  # noqa: E501
        :rtype: str
        """
        return self._type

    @type.setter
    def type(self, type):
        """Sets the type of this VidinetServiceType.


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

        self._type = type

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

        for attr, _ in six.iteritems(self.openapi_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 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, VidinetServiceType):
            return False

        return self.__dict__ == other.__dict__

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