# coding: utf-8

"""
    i18n_openapi

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

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


import pprint
import re  # noqa: F401

import six

from volcenginesdkcore.configuration import Configuration


class CreateVideoCreateRequest(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 = {
        'cloud_storage_link': 'str',
        'comment': 'str',
        'contributors': 'list[int]',
        'name': 'str',
        'project_type': 'int',
        'roles': 'str'
    }

    attribute_map = {
        'cloud_storage_link': 'cloudStorageLink',
        'comment': 'comment',
        'contributors': 'contributors',
        'name': 'name',
        'project_type': 'projectType',
        'roles': 'roles'
    }

    def __init__(self, cloud_storage_link=None, comment=None, contributors=None, name=None, project_type=None, roles=None, _configuration=None):  # noqa: E501
        """CreateVideoCreateRequest - a model defined in Swagger"""  # noqa: E501
        if _configuration is None:
            _configuration = Configuration()
        self._configuration = _configuration

        self._cloud_storage_link = None
        self._comment = None
        self._contributors = None
        self._name = None
        self._project_type = None
        self._roles = None
        self.discriminator = None

        if cloud_storage_link is not None:
            self.cloud_storage_link = cloud_storage_link
        self.comment = comment
        if contributors is not None:
            self.contributors = contributors
        self.name = name
        self.project_type = project_type
        self.roles = roles

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


        :return: The cloud_storage_link of this CreateVideoCreateRequest.  # noqa: E501
        :rtype: str
        """
        return self._cloud_storage_link

    @cloud_storage_link.setter
    def cloud_storage_link(self, cloud_storage_link):
        """Sets the cloud_storage_link of this CreateVideoCreateRequest.


        :param cloud_storage_link: The cloud_storage_link of this CreateVideoCreateRequest.  # noqa: E501
        :type: str
        """

        self._cloud_storage_link = cloud_storage_link

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


        :return: The comment of this CreateVideoCreateRequest.  # noqa: E501
        :rtype: str
        """
        return self._comment

    @comment.setter
    def comment(self, comment):
        """Sets the comment of this CreateVideoCreateRequest.


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

        self._comment = comment

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


        :return: The contributors of this CreateVideoCreateRequest.  # noqa: E501
        :rtype: list[int]
        """
        return self._contributors

    @contributors.setter
    def contributors(self, contributors):
        """Sets the contributors of this CreateVideoCreateRequest.


        :param contributors: The contributors of this CreateVideoCreateRequest.  # noqa: E501
        :type: list[int]
        """

        self._contributors = contributors

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


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

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


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

        self._name = name

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


        :return: The project_type of this CreateVideoCreateRequest.  # noqa: E501
        :rtype: int
        """
        return self._project_type

    @project_type.setter
    def project_type(self, project_type):
        """Sets the project_type of this CreateVideoCreateRequest.


        :param project_type: The project_type of this CreateVideoCreateRequest.  # noqa: E501
        :type: int
        """
        if self._configuration.client_side_validation and project_type is None:
            raise ValueError("Invalid value for `project_type`, must not be `None`")  # noqa: E501

        self._project_type = project_type

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


        :return: The roles of this CreateVideoCreateRequest.  # noqa: E501
        :rtype: str
        """
        return self._roles

    @roles.setter
    def roles(self, roles):
        """Sets the roles of this CreateVideoCreateRequest.


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

        self._roles = roles

    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(CreateVideoCreateRequest, 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, CreateVideoCreateRequest):
            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, CreateVideoCreateRequest):
            return True

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