# coding: utf-8

"""
    vmp

    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 CreateIntegrationTaskRequest(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 = {
        'environment': 'str',
        'name': 'str',
        'params': 'str',
        'project_name': 'str',
        'sub_type': 'str',
        'tags': 'list[TagForCreateIntegrationTaskInput]',
        'type': 'str',
        'vke_cluster_id': 'str',
        'workspace_id': 'str'
    }

    attribute_map = {
        'environment': 'Environment',
        'name': 'Name',
        'params': 'Params',
        'project_name': 'ProjectName',
        'sub_type': 'SubType',
        'tags': 'Tags',
        'type': 'Type',
        'vke_cluster_id': 'VkeClusterId',
        'workspace_id': 'WorkspaceId'
    }

    def __init__(self, environment=None, name=None, params=None, project_name=None, sub_type=None, tags=None, type=None, vke_cluster_id=None, workspace_id=None, _configuration=None):  # noqa: E501
        """CreateIntegrationTaskRequest - a model defined in Swagger"""  # noqa: E501
        if _configuration is None:
            _configuration = Configuration()
        self._configuration = _configuration

        self._environment = None
        self._name = None
        self._params = None
        self._project_name = None
        self._sub_type = None
        self._tags = None
        self._type = None
        self._vke_cluster_id = None
        self._workspace_id = None
        self.discriminator = None

        if environment is not None:
            self.environment = environment
        self.name = name
        self.params = params
        if project_name is not None:
            self.project_name = project_name
        if sub_type is not None:
            self.sub_type = sub_type
        if tags is not None:
            self.tags = tags
        self.type = type
        if vke_cluster_id is not None:
            self.vke_cluster_id = vke_cluster_id
        if workspace_id is not None:
            self.workspace_id = workspace_id

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


        :return: The environment of this CreateIntegrationTaskRequest.  # noqa: E501
        :rtype: str
        """
        return self._environment

    @environment.setter
    def environment(self, environment):
        """Sets the environment of this CreateIntegrationTaskRequest.


        :param environment: The environment of this CreateIntegrationTaskRequest.  # noqa: E501
        :type: str
        """

        self._environment = environment

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


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

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


        :param name: The name of this CreateIntegrationTaskRequest.  # 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 params(self):
        """Gets the params of this CreateIntegrationTaskRequest.  # noqa: E501


        :return: The params of this CreateIntegrationTaskRequest.  # noqa: E501
        :rtype: str
        """
        return self._params

    @params.setter
    def params(self, params):
        """Sets the params of this CreateIntegrationTaskRequest.


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

        self._params = params

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


        :return: The project_name of this CreateIntegrationTaskRequest.  # noqa: E501
        :rtype: str
        """
        return self._project_name

    @project_name.setter
    def project_name(self, project_name):
        """Sets the project_name of this CreateIntegrationTaskRequest.


        :param project_name: The project_name of this CreateIntegrationTaskRequest.  # noqa: E501
        :type: str
        """

        self._project_name = project_name

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


        :return: The sub_type of this CreateIntegrationTaskRequest.  # noqa: E501
        :rtype: str
        """
        return self._sub_type

    @sub_type.setter
    def sub_type(self, sub_type):
        """Sets the sub_type of this CreateIntegrationTaskRequest.


        :param sub_type: The sub_type of this CreateIntegrationTaskRequest.  # noqa: E501
        :type: str
        """

        self._sub_type = sub_type

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


        :return: The tags of this CreateIntegrationTaskRequest.  # noqa: E501
        :rtype: list[TagForCreateIntegrationTaskInput]
        """
        return self._tags

    @tags.setter
    def tags(self, tags):
        """Sets the tags of this CreateIntegrationTaskRequest.


        :param tags: The tags of this CreateIntegrationTaskRequest.  # noqa: E501
        :type: list[TagForCreateIntegrationTaskInput]
        """

        self._tags = tags

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


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

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


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

        self._type = type

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


        :return: The vke_cluster_id of this CreateIntegrationTaskRequest.  # noqa: E501
        :rtype: str
        """
        return self._vke_cluster_id

    @vke_cluster_id.setter
    def vke_cluster_id(self, vke_cluster_id):
        """Sets the vke_cluster_id of this CreateIntegrationTaskRequest.


        :param vke_cluster_id: The vke_cluster_id of this CreateIntegrationTaskRequest.  # noqa: E501
        :type: str
        """

        self._vke_cluster_id = vke_cluster_id

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


        :return: The workspace_id of this CreateIntegrationTaskRequest.  # noqa: E501
        :rtype: str
        """
        return self._workspace_id

    @workspace_id.setter
    def workspace_id(self, workspace_id):
        """Sets the workspace_id of this CreateIntegrationTaskRequest.


        :param workspace_id: The workspace_id of this CreateIntegrationTaskRequest.  # noqa: E501
        :type: str
        """

        self._workspace_id = workspace_id

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

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