# coding: utf-8

"""
    Corpus Processing Service (CPS) API

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

    The version of the OpenAPI document: 2.0.0
    Generated by: https://openapi-generator.tech
"""


import pprint
import re  # noqa: F401

import six

from deepsearch.cps.apis.public.configuration import Configuration


class ProjectDataIndexS3Coordinates(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 = {
        'access_key': 'str',
        'bucket': 'str',
        'host': 'str',
        'key_prefix': 'str',
        'location': 'str',
        'port': 'float',
        'secret_key': 'str',
        'ssl': 'bool',
        'verify_ssl': 'bool'
    }

    attribute_map = {
        'access_key': 'access_key',
        'bucket': 'bucket',
        'host': 'host',
        'key_prefix': 'key_prefix',
        'location': 'location',
        'port': 'port',
        'secret_key': 'secret_key',
        'ssl': 'ssl',
        'verify_ssl': 'verify_ssl'
    }

    def __init__(self, access_key=None, bucket=None, host=None, key_prefix=None, location=None, port=None, secret_key=None, ssl=None, verify_ssl=None, local_vars_configuration=None):  # noqa: E501
        """ProjectDataIndexS3Coordinates - a model defined in OpenAPI"""  # noqa: E501
        if local_vars_configuration is None:
            local_vars_configuration = Configuration()
        self.local_vars_configuration = local_vars_configuration

        self._access_key = None
        self._bucket = None
        self._host = None
        self._key_prefix = None
        self._location = None
        self._port = None
        self._secret_key = None
        self._ssl = None
        self._verify_ssl = None
        self.discriminator = None

        self.access_key = access_key
        self.bucket = bucket
        self.host = host
        if key_prefix is not None:
            self.key_prefix = key_prefix
        self.location = location
        self.port = port
        self.secret_key = secret_key
        self.ssl = ssl
        self.verify_ssl = verify_ssl

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


        :return: The access_key of this ProjectDataIndexS3Coordinates.  # noqa: E501
        :rtype: str
        """
        return self._access_key

    @access_key.setter
    def access_key(self, access_key):
        """Sets the access_key of this ProjectDataIndexS3Coordinates.


        :param access_key: The access_key of this ProjectDataIndexS3Coordinates.  # noqa: E501
        :type: str
        """
        if self.local_vars_configuration.client_side_validation and access_key is None:  # noqa: E501
            raise ValueError("Invalid value for `access_key`, must not be `None`")  # noqa: E501

        self._access_key = access_key

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


        :return: The bucket of this ProjectDataIndexS3Coordinates.  # noqa: E501
        :rtype: str
        """
        return self._bucket

    @bucket.setter
    def bucket(self, bucket):
        """Sets the bucket of this ProjectDataIndexS3Coordinates.


        :param bucket: The bucket of this ProjectDataIndexS3Coordinates.  # noqa: E501
        :type: str
        """
        if self.local_vars_configuration.client_side_validation and bucket is None:  # noqa: E501
            raise ValueError("Invalid value for `bucket`, must not be `None`")  # noqa: E501

        self._bucket = bucket

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


        :return: The host of this ProjectDataIndexS3Coordinates.  # noqa: E501
        :rtype: str
        """
        return self._host

    @host.setter
    def host(self, host):
        """Sets the host of this ProjectDataIndexS3Coordinates.


        :param host: The host of this ProjectDataIndexS3Coordinates.  # noqa: E501
        :type: str
        """
        if self.local_vars_configuration.client_side_validation and host is None:  # noqa: E501
            raise ValueError("Invalid value for `host`, must not be `None`")  # noqa: E501

        self._host = host

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


        :return: The key_prefix of this ProjectDataIndexS3Coordinates.  # noqa: E501
        :rtype: str
        """
        return self._key_prefix

    @key_prefix.setter
    def key_prefix(self, key_prefix):
        """Sets the key_prefix of this ProjectDataIndexS3Coordinates.


        :param key_prefix: The key_prefix of this ProjectDataIndexS3Coordinates.  # noqa: E501
        :type: str
        """

        self._key_prefix = key_prefix

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


        :return: The location of this ProjectDataIndexS3Coordinates.  # noqa: E501
        :rtype: str
        """
        return self._location

    @location.setter
    def location(self, location):
        """Sets the location of this ProjectDataIndexS3Coordinates.


        :param location: The location of this ProjectDataIndexS3Coordinates.  # noqa: E501
        :type: str
        """
        if self.local_vars_configuration.client_side_validation and location is None:  # noqa: E501
            raise ValueError("Invalid value for `location`, must not be `None`")  # noqa: E501

        self._location = location

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


        :return: The port of this ProjectDataIndexS3Coordinates.  # noqa: E501
        :rtype: float
        """
        return self._port

    @port.setter
    def port(self, port):
        """Sets the port of this ProjectDataIndexS3Coordinates.


        :param port: The port of this ProjectDataIndexS3Coordinates.  # noqa: E501
        :type: float
        """
        if self.local_vars_configuration.client_side_validation and port is None:  # noqa: E501
            raise ValueError("Invalid value for `port`, must not be `None`")  # noqa: E501

        self._port = port

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


        :return: The secret_key of this ProjectDataIndexS3Coordinates.  # noqa: E501
        :rtype: str
        """
        return self._secret_key

    @secret_key.setter
    def secret_key(self, secret_key):
        """Sets the secret_key of this ProjectDataIndexS3Coordinates.


        :param secret_key: The secret_key of this ProjectDataIndexS3Coordinates.  # noqa: E501
        :type: str
        """
        if self.local_vars_configuration.client_side_validation and secret_key is None:  # noqa: E501
            raise ValueError("Invalid value for `secret_key`, must not be `None`")  # noqa: E501

        self._secret_key = secret_key

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


        :return: The ssl of this ProjectDataIndexS3Coordinates.  # noqa: E501
        :rtype: bool
        """
        return self._ssl

    @ssl.setter
    def ssl(self, ssl):
        """Sets the ssl of this ProjectDataIndexS3Coordinates.


        :param ssl: The ssl of this ProjectDataIndexS3Coordinates.  # noqa: E501
        :type: bool
        """
        if self.local_vars_configuration.client_side_validation and ssl is None:  # noqa: E501
            raise ValueError("Invalid value for `ssl`, must not be `None`")  # noqa: E501

        self._ssl = ssl

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


        :return: The verify_ssl of this ProjectDataIndexS3Coordinates.  # noqa: E501
        :rtype: bool
        """
        return self._verify_ssl

    @verify_ssl.setter
    def verify_ssl(self, verify_ssl):
        """Sets the verify_ssl of this ProjectDataIndexS3Coordinates.


        :param verify_ssl: The verify_ssl of this ProjectDataIndexS3Coordinates.  # noqa: E501
        :type: bool
        """
        if self.local_vars_configuration.client_side_validation and verify_ssl is None:  # noqa: E501
            raise ValueError("Invalid value for `verify_ssl`, must not be `None`")  # noqa: E501

        self._verify_ssl = verify_ssl

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

        return self.to_dict() == other.to_dict()

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

        return self.to_dict() != other.to_dict()
