# coding: utf-8

"""
    Pulp 3 API

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

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


import pprint
import re  # noqa: F401

import six


class MavenArtifact(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 = {
        'href': 'str',
        'created': 'datetime',
        'type': 'str',
        'artifact': 'str',
        'relative_path': 'str',
        'group_id': 'str',
        'artifact_id': 'str',
        'version': 'str',
        'filename': 'str'
    }

    attribute_map = {
        'href': '_href',
        'created': '_created',
        'type': '_type',
        'artifact': '_artifact',
        'relative_path': '_relative_path',
        'group_id': 'group_id',
        'artifact_id': 'artifact_id',
        'version': 'version',
        'filename': 'filename'
    }

    def __init__(self, href=None, created=None, type=None, artifact=None, relative_path=None, group_id=None, artifact_id=None, version=None, filename=None):  # noqa: E501
        """MavenArtifact - a model defined in OpenAPI"""  # noqa: E501

        self._href = None
        self._created = None
        self._type = None
        self._artifact = None
        self._relative_path = None
        self._group_id = None
        self._artifact_id = None
        self._version = None
        self._filename = None
        self.discriminator = None

        if href is not None:
            self.href = href
        if created is not None:
            self.created = created
        if type is not None:
            self.type = type
        self.artifact = artifact
        self.relative_path = relative_path
        if group_id is not None:
            self.group_id = group_id
        if artifact_id is not None:
            self.artifact_id = artifact_id
        if version is not None:
            self.version = version
        if filename is not None:
            self.filename = filename

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


        :return: The href of this MavenArtifact.  # noqa: E501
        :rtype: str
        """
        return self._href

    @href.setter
    def href(self, href):
        """Sets the href of this MavenArtifact.


        :param href: The href of this MavenArtifact.  # noqa: E501
        :type: str
        """

        self._href = href

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

        Timestamp of creation.  # noqa: E501

        :return: The created of this MavenArtifact.  # noqa: E501
        :rtype: datetime
        """
        return self._created

    @created.setter
    def created(self, created):
        """Sets the created of this MavenArtifact.

        Timestamp of creation.  # noqa: E501

        :param created: The created of this MavenArtifact.  # noqa: E501
        :type: datetime
        """

        self._created = created

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


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

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


        :param type: The type of this MavenArtifact.  # noqa: E501
        :type: str
        """
        if type is not None and len(type) < 1:
            raise ValueError("Invalid value for `type`, length must be greater than or equal to `1`")  # noqa: E501

        self._type = type

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

        Artifact file representing the physical content  # noqa: E501

        :return: The artifact of this MavenArtifact.  # noqa: E501
        :rtype: str
        """
        return self._artifact

    @artifact.setter
    def artifact(self, artifact):
        """Sets the artifact of this MavenArtifact.

        Artifact file representing the physical content  # noqa: E501

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

        self._artifact = artifact

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

        Path where the artifact is located relative to distributions base_path  # noqa: E501

        :return: The relative_path of this MavenArtifact.  # noqa: E501
        :rtype: str
        """
        return self._relative_path

    @relative_path.setter
    def relative_path(self, relative_path):
        """Sets the relative_path of this MavenArtifact.

        Path where the artifact is located relative to distributions base_path  # noqa: E501

        :param relative_path: The relative_path of this MavenArtifact.  # noqa: E501
        :type: str
        """
        if relative_path is None:
            raise ValueError("Invalid value for `relative_path`, must not be `None`")  # noqa: E501
        if relative_path is not None and len(relative_path) < 1:
            raise ValueError("Invalid value for `relative_path`, length must be greater than or equal to `1`")  # noqa: E501

        self._relative_path = relative_path

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

        Group Id of the artifact's package.  # noqa: E501

        :return: The group_id of this MavenArtifact.  # noqa: E501
        :rtype: str
        """
        return self._group_id

    @group_id.setter
    def group_id(self, group_id):
        """Sets the group_id of this MavenArtifact.

        Group Id of the artifact's package.  # noqa: E501

        :param group_id: The group_id of this MavenArtifact.  # noqa: E501
        :type: str
        """
        if group_id is not None and len(group_id) < 1:
            raise ValueError("Invalid value for `group_id`, length must be greater than or equal to `1`")  # noqa: E501

        self._group_id = group_id

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

        Artifact Id of the artifact's package.  # noqa: E501

        :return: The artifact_id of this MavenArtifact.  # noqa: E501
        :rtype: str
        """
        return self._artifact_id

    @artifact_id.setter
    def artifact_id(self, artifact_id):
        """Sets the artifact_id of this MavenArtifact.

        Artifact Id of the artifact's package.  # noqa: E501

        :param artifact_id: The artifact_id of this MavenArtifact.  # noqa: E501
        :type: str
        """
        if artifact_id is not None and len(artifact_id) < 1:
            raise ValueError("Invalid value for `artifact_id`, length must be greater than or equal to `1`")  # noqa: E501

        self._artifact_id = artifact_id

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

        Version of the artifact's package.  # noqa: E501

        :return: The version of this MavenArtifact.  # noqa: E501
        :rtype: str
        """
        return self._version

    @version.setter
    def version(self, version):
        """Sets the version of this MavenArtifact.

        Version of the artifact's package.  # noqa: E501

        :param version: The version of this MavenArtifact.  # noqa: E501
        :type: str
        """
        if version is not None and len(version) < 1:
            raise ValueError("Invalid value for `version`, length must be greater than or equal to `1`")  # noqa: E501

        self._version = version

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

        Filename of the artifact.  # noqa: E501

        :return: The filename of this MavenArtifact.  # noqa: E501
        :rtype: str
        """
        return self._filename

    @filename.setter
    def filename(self, filename):
        """Sets the filename of this MavenArtifact.

        Filename of the artifact.  # noqa: E501

        :param filename: The filename of this MavenArtifact.  # noqa: E501
        :type: str
        """
        if filename is not None and len(filename) < 1:
            raise ValueError("Invalid value for `filename`, length must be greater than or equal to `1`")  # noqa: E501

        self._filename = filename

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

        return self.__dict__ == other.__dict__

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