# coding: utf-8

"""
    vepfs

    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 CreateLensTaskRequest(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 = {
        'description': 'str',
        'file_system_id': 'str',
        'lens_analysis_info': 'LensAnalysisInfoForCreateLensTaskInput',
        'lens_capacity_stat_info': 'LensCapacityStatInfoForCreateLensTaskInput',
        'lens_export_info': 'LensExportInfoForCreateLensTaskInput',
        'lens_policy_id': 'str',
        'lens_task_content': 'list[str]',
        'lens_task_name': 'str',
        'schedule': 'ScheduleForCreateLensTaskInput',
        'target_infos': 'list[TargetInfoForCreateLensTaskInput]'
    }

    attribute_map = {
        'description': 'Description',
        'file_system_id': 'FileSystemId',
        'lens_analysis_info': 'LensAnalysisInfo',
        'lens_capacity_stat_info': 'LensCapacityStatInfo',
        'lens_export_info': 'LensExportInfo',
        'lens_policy_id': 'LensPolicyId',
        'lens_task_content': 'LensTaskContent',
        'lens_task_name': 'LensTaskName',
        'schedule': 'Schedule',
        'target_infos': 'TargetInfos'
    }

    def __init__(self, description=None, file_system_id=None, lens_analysis_info=None, lens_capacity_stat_info=None, lens_export_info=None, lens_policy_id=None, lens_task_content=None, lens_task_name=None, schedule=None, target_infos=None, _configuration=None):  # noqa: E501
        """CreateLensTaskRequest - a model defined in Swagger"""  # noqa: E501
        if _configuration is None:
            _configuration = Configuration()
        self._configuration = _configuration

        self._description = None
        self._file_system_id = None
        self._lens_analysis_info = None
        self._lens_capacity_stat_info = None
        self._lens_export_info = None
        self._lens_policy_id = None
        self._lens_task_content = None
        self._lens_task_name = None
        self._schedule = None
        self._target_infos = None
        self.discriminator = None

        if description is not None:
            self.description = description
        self.file_system_id = file_system_id
        if lens_analysis_info is not None:
            self.lens_analysis_info = lens_analysis_info
        if lens_capacity_stat_info is not None:
            self.lens_capacity_stat_info = lens_capacity_stat_info
        if lens_export_info is not None:
            self.lens_export_info = lens_export_info
        self.lens_policy_id = lens_policy_id
        if lens_task_content is not None:
            self.lens_task_content = lens_task_content
        self.lens_task_name = lens_task_name
        if schedule is not None:
            self.schedule = schedule
        if target_infos is not None:
            self.target_infos = target_infos

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


        :return: The description of this CreateLensTaskRequest.  # noqa: E501
        :rtype: str
        """
        return self._description

    @description.setter
    def description(self, description):
        """Sets the description of this CreateLensTaskRequest.


        :param description: The description of this CreateLensTaskRequest.  # noqa: E501
        :type: str
        """

        self._description = description

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


        :return: The file_system_id of this CreateLensTaskRequest.  # noqa: E501
        :rtype: str
        """
        return self._file_system_id

    @file_system_id.setter
    def file_system_id(self, file_system_id):
        """Sets the file_system_id of this CreateLensTaskRequest.


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

        self._file_system_id = file_system_id

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


        :return: The lens_analysis_info of this CreateLensTaskRequest.  # noqa: E501
        :rtype: LensAnalysisInfoForCreateLensTaskInput
        """
        return self._lens_analysis_info

    @lens_analysis_info.setter
    def lens_analysis_info(self, lens_analysis_info):
        """Sets the lens_analysis_info of this CreateLensTaskRequest.


        :param lens_analysis_info: The lens_analysis_info of this CreateLensTaskRequest.  # noqa: E501
        :type: LensAnalysisInfoForCreateLensTaskInput
        """

        self._lens_analysis_info = lens_analysis_info

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


        :return: The lens_capacity_stat_info of this CreateLensTaskRequest.  # noqa: E501
        :rtype: LensCapacityStatInfoForCreateLensTaskInput
        """
        return self._lens_capacity_stat_info

    @lens_capacity_stat_info.setter
    def lens_capacity_stat_info(self, lens_capacity_stat_info):
        """Sets the lens_capacity_stat_info of this CreateLensTaskRequest.


        :param lens_capacity_stat_info: The lens_capacity_stat_info of this CreateLensTaskRequest.  # noqa: E501
        :type: LensCapacityStatInfoForCreateLensTaskInput
        """

        self._lens_capacity_stat_info = lens_capacity_stat_info

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


        :return: The lens_export_info of this CreateLensTaskRequest.  # noqa: E501
        :rtype: LensExportInfoForCreateLensTaskInput
        """
        return self._lens_export_info

    @lens_export_info.setter
    def lens_export_info(self, lens_export_info):
        """Sets the lens_export_info of this CreateLensTaskRequest.


        :param lens_export_info: The lens_export_info of this CreateLensTaskRequest.  # noqa: E501
        :type: LensExportInfoForCreateLensTaskInput
        """

        self._lens_export_info = lens_export_info

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


        :return: The lens_policy_id of this CreateLensTaskRequest.  # noqa: E501
        :rtype: str
        """
        return self._lens_policy_id

    @lens_policy_id.setter
    def lens_policy_id(self, lens_policy_id):
        """Sets the lens_policy_id of this CreateLensTaskRequest.


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

        self._lens_policy_id = lens_policy_id

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


        :return: The lens_task_content of this CreateLensTaskRequest.  # noqa: E501
        :rtype: list[str]
        """
        return self._lens_task_content

    @lens_task_content.setter
    def lens_task_content(self, lens_task_content):
        """Sets the lens_task_content of this CreateLensTaskRequest.


        :param lens_task_content: The lens_task_content of this CreateLensTaskRequest.  # noqa: E501
        :type: list[str]
        """
        allowed_values = ["MetadataExport", "MetadataAnalyze", "CapacityStat"]  # noqa: E501
        if (self._configuration.client_side_validation and
                not set(lens_task_content).issubset(set(allowed_values))):  # noqa: E501
            raise ValueError(
                "Invalid values for `lens_task_content` [{0}], must be a subset of [{1}]"  # noqa: E501
                .format(", ".join(map(str, set(lens_task_content) - set(allowed_values))),  # noqa: E501
                        ", ".join(map(str, allowed_values)))
            )

        self._lens_task_content = lens_task_content

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


        :return: The lens_task_name of this CreateLensTaskRequest.  # noqa: E501
        :rtype: str
        """
        return self._lens_task_name

    @lens_task_name.setter
    def lens_task_name(self, lens_task_name):
        """Sets the lens_task_name of this CreateLensTaskRequest.


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

        self._lens_task_name = lens_task_name

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


        :return: The schedule of this CreateLensTaskRequest.  # noqa: E501
        :rtype: ScheduleForCreateLensTaskInput
        """
        return self._schedule

    @schedule.setter
    def schedule(self, schedule):
        """Sets the schedule of this CreateLensTaskRequest.


        :param schedule: The schedule of this CreateLensTaskRequest.  # noqa: E501
        :type: ScheduleForCreateLensTaskInput
        """

        self._schedule = schedule

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


        :return: The target_infos of this CreateLensTaskRequest.  # noqa: E501
        :rtype: list[TargetInfoForCreateLensTaskInput]
        """
        return self._target_infos

    @target_infos.setter
    def target_infos(self, target_infos):
        """Sets the target_infos of this CreateLensTaskRequest.


        :param target_infos: The target_infos of this CreateLensTaskRequest.  # noqa: E501
        :type: list[TargetInfoForCreateLensTaskInput]
        """

        self._target_infos = target_infos

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

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