# coding: utf-8

"""
    XMS API

    XMS is the controller of distributed storage system  # noqa: E501

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


import pprint
import re  # noqa: F401
import six

# from xms_client.models.crypto_key_nestview import CryptoKeyNestview  # noqa: F401,E501
# from xms_client.models.dp_site_config import DpSiteConfig  # noqa: F401,E501
# from xms_client.models.remote_cluster_nestview import RemoteClusterNestview  # noqa: F401,E501


class DpSite(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 = {
        'address': 'str',
        'config': 'DpSiteConfig',
        'create': 'datetime',
        'crypto_key': 'CryptoKeyNestview',
        'id': 'int',
        'name': 'str',
        'platform': 'str',
        'protection_type': 'str',
        'remote_cluster': 'RemoteClusterNestview',
        'service': 'str',
        'status': 'str',
        'update': 'datetime'
    }

    attribute_map = {
        'address': 'address',
        'config': 'config',
        'create': 'create',
        'crypto_key': 'crypto_key',
        'id': 'id',
        'name': 'name',
        'platform': 'platform',
        'protection_type': 'protection_type',
        'remote_cluster': 'remote_cluster',
        'service': 'service',
        'status': 'status',
        'update': 'update'
    }

    def __init__(self, address=None, config=None, create=None, crypto_key=None, id=None, name=None, platform=None, protection_type=None, remote_cluster=None, service=None, status=None, update=None):  # noqa: E501
        """DpSite - a model defined in Swagger"""  # noqa: E501

        self._address = None
        self._config = None
        self._create = None
        self._crypto_key = None
        self._id = None
        self._name = None
        self._platform = None
        self._protection_type = None
        self._remote_cluster = None
        self._service = None
        self._status = None
        self._update = None
        self.discriminator = None

        if address is not None:
            self.address = address
        if config is not None:
            self.config = config
        if create is not None:
            self.create = create
        if crypto_key is not None:
            self.crypto_key = crypto_key
        if id is not None:
            self.id = id
        if name is not None:
            self.name = name
        if platform is not None:
            self.platform = platform
        if protection_type is not None:
            self.protection_type = protection_type
        if remote_cluster is not None:
            self.remote_cluster = remote_cluster
        if service is not None:
            self.service = service
        if status is not None:
            self.status = status
        if update is not None:
            self.update = update

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


        :return: The address of this DpSite.  # noqa: E501
        :rtype: str
        """
        return self._address

    @address.setter
    def address(self, address):
        """Sets the address of this DpSite.


        :param address: The address of this DpSite.  # noqa: E501
        :type: str
        """

        self._address = address

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


        :return: The config of this DpSite.  # noqa: E501
        :rtype: DpSiteConfig
        """
        return self._config

    @config.setter
    def config(self, config):
        """Sets the config of this DpSite.


        :param config: The config of this DpSite.  # noqa: E501
        :type: DpSiteConfig
        """

        self._config = config

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


        :return: The create of this DpSite.  # noqa: E501
        :rtype: datetime
        """
        return self._create

    @create.setter
    def create(self, create):
        """Sets the create of this DpSite.


        :param create: The create of this DpSite.  # noqa: E501
        :type: datetime
        """

        self._create = create

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


        :return: The crypto_key of this DpSite.  # noqa: E501
        :rtype: CryptoKeyNestview
        """
        return self._crypto_key

    @crypto_key.setter
    def crypto_key(self, crypto_key):
        """Sets the crypto_key of this DpSite.


        :param crypto_key: The crypto_key of this DpSite.  # noqa: E501
        :type: CryptoKeyNestview
        """

        self._crypto_key = crypto_key

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


        :return: The id of this DpSite.  # noqa: E501
        :rtype: int
        """
        return self._id

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


        :param id: The id of this DpSite.  # noqa: E501
        :type: int
        """

        self._id = id

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


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

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


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

        self._name = name

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


        :return: The platform of this DpSite.  # noqa: E501
        :rtype: str
        """
        return self._platform

    @platform.setter
    def platform(self, platform):
        """Sets the platform of this DpSite.


        :param platform: The platform of this DpSite.  # noqa: E501
        :type: str
        """

        self._platform = platform

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


        :return: The protection_type of this DpSite.  # noqa: E501
        :rtype: str
        """
        return self._protection_type

    @protection_type.setter
    def protection_type(self, protection_type):
        """Sets the protection_type of this DpSite.


        :param protection_type: The protection_type of this DpSite.  # noqa: E501
        :type: str
        """

        self._protection_type = protection_type

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


        :return: The remote_cluster of this DpSite.  # noqa: E501
        :rtype: RemoteClusterNestview
        """
        return self._remote_cluster

    @remote_cluster.setter
    def remote_cluster(self, remote_cluster):
        """Sets the remote_cluster of this DpSite.


        :param remote_cluster: The remote_cluster of this DpSite.  # noqa: E501
        :type: RemoteClusterNestview
        """

        self._remote_cluster = remote_cluster

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


        :return: The service of this DpSite.  # noqa: E501
        :rtype: str
        """
        return self._service

    @service.setter
    def service(self, service):
        """Sets the service of this DpSite.


        :param service: The service of this DpSite.  # noqa: E501
        :type: str
        """

        self._service = service

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


        :return: The status of this DpSite.  # noqa: E501
        :rtype: str
        """
        return self._status

    @status.setter
    def status(self, status):
        """Sets the status of this DpSite.


        :param status: The status of this DpSite.  # noqa: E501
        :type: str
        """

        self._status = status

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


        :return: The update of this DpSite.  # noqa: E501
        :rtype: datetime
        """
        return self._update

    @update.setter
    def update(self, update):
        """Sets the update of this DpSite.


        :param update: The update of this DpSite.  # noqa: E501
        :type: datetime
        """

        self._update = update

    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

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

        return self.__dict__ == other.__dict__

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