# coding: utf-8

"""
    rds_postgresql

    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 TaskInfoForDescribeTasksOutput(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 = {
        'cost_time_ms': 'int',
        'create_time': 'str',
        'finish_time': 'str',
        'instance_id': 'str',
        'project_name': 'str',
        'region': 'str',
        'scheduled_switch_end_time': 'str',
        'scheduled_switch_start_time': 'str',
        'task_action': 'str',
        'task_id': 'str',
        'task_params': 'str',
        'task_status': 'str'
    }

    attribute_map = {
        'cost_time_ms': 'CostTimeMS',
        'create_time': 'CreateTime',
        'finish_time': 'FinishTime',
        'instance_id': 'InstanceId',
        'project_name': 'ProjectName',
        'region': 'Region',
        'scheduled_switch_end_time': 'ScheduledSwitchEndTime',
        'scheduled_switch_start_time': 'ScheduledSwitchStartTime',
        'task_action': 'TaskAction',
        'task_id': 'TaskId',
        'task_params': 'TaskParams',
        'task_status': 'TaskStatus'
    }

    def __init__(self, cost_time_ms=None, create_time=None, finish_time=None, instance_id=None, project_name=None, region=None, scheduled_switch_end_time=None, scheduled_switch_start_time=None, task_action=None, task_id=None, task_params=None, task_status=None, _configuration=None):  # noqa: E501
        """TaskInfoForDescribeTasksOutput - a model defined in Swagger"""  # noqa: E501
        if _configuration is None:
            _configuration = Configuration()
        self._configuration = _configuration

        self._cost_time_ms = None
        self._create_time = None
        self._finish_time = None
        self._instance_id = None
        self._project_name = None
        self._region = None
        self._scheduled_switch_end_time = None
        self._scheduled_switch_start_time = None
        self._task_action = None
        self._task_id = None
        self._task_params = None
        self._task_status = None
        self.discriminator = None

        if cost_time_ms is not None:
            self.cost_time_ms = cost_time_ms
        if create_time is not None:
            self.create_time = create_time
        if finish_time is not None:
            self.finish_time = finish_time
        if instance_id is not None:
            self.instance_id = instance_id
        if project_name is not None:
            self.project_name = project_name
        if region is not None:
            self.region = region
        if scheduled_switch_end_time is not None:
            self.scheduled_switch_end_time = scheduled_switch_end_time
        if scheduled_switch_start_time is not None:
            self.scheduled_switch_start_time = scheduled_switch_start_time
        if task_action is not None:
            self.task_action = task_action
        if task_id is not None:
            self.task_id = task_id
        if task_params is not None:
            self.task_params = task_params
        if task_status is not None:
            self.task_status = task_status

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


        :return: The cost_time_ms of this TaskInfoForDescribeTasksOutput.  # noqa: E501
        :rtype: int
        """
        return self._cost_time_ms

    @cost_time_ms.setter
    def cost_time_ms(self, cost_time_ms):
        """Sets the cost_time_ms of this TaskInfoForDescribeTasksOutput.


        :param cost_time_ms: The cost_time_ms of this TaskInfoForDescribeTasksOutput.  # noqa: E501
        :type: int
        """

        self._cost_time_ms = cost_time_ms

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


        :return: The create_time of this TaskInfoForDescribeTasksOutput.  # noqa: E501
        :rtype: str
        """
        return self._create_time

    @create_time.setter
    def create_time(self, create_time):
        """Sets the create_time of this TaskInfoForDescribeTasksOutput.


        :param create_time: The create_time of this TaskInfoForDescribeTasksOutput.  # noqa: E501
        :type: str
        """

        self._create_time = create_time

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


        :return: The finish_time of this TaskInfoForDescribeTasksOutput.  # noqa: E501
        :rtype: str
        """
        return self._finish_time

    @finish_time.setter
    def finish_time(self, finish_time):
        """Sets the finish_time of this TaskInfoForDescribeTasksOutput.


        :param finish_time: The finish_time of this TaskInfoForDescribeTasksOutput.  # noqa: E501
        :type: str
        """

        self._finish_time = finish_time

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


        :return: The instance_id of this TaskInfoForDescribeTasksOutput.  # noqa: E501
        :rtype: str
        """
        return self._instance_id

    @instance_id.setter
    def instance_id(self, instance_id):
        """Sets the instance_id of this TaskInfoForDescribeTasksOutput.


        :param instance_id: The instance_id of this TaskInfoForDescribeTasksOutput.  # noqa: E501
        :type: str
        """

        self._instance_id = instance_id

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


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

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


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

        self._project_name = project_name

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


        :return: The region of this TaskInfoForDescribeTasksOutput.  # noqa: E501
        :rtype: str
        """
        return self._region

    @region.setter
    def region(self, region):
        """Sets the region of this TaskInfoForDescribeTasksOutput.


        :param region: The region of this TaskInfoForDescribeTasksOutput.  # noqa: E501
        :type: str
        """

        self._region = region

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


        :return: The scheduled_switch_end_time of this TaskInfoForDescribeTasksOutput.  # noqa: E501
        :rtype: str
        """
        return self._scheduled_switch_end_time

    @scheduled_switch_end_time.setter
    def scheduled_switch_end_time(self, scheduled_switch_end_time):
        """Sets the scheduled_switch_end_time of this TaskInfoForDescribeTasksOutput.


        :param scheduled_switch_end_time: The scheduled_switch_end_time of this TaskInfoForDescribeTasksOutput.  # noqa: E501
        :type: str
        """

        self._scheduled_switch_end_time = scheduled_switch_end_time

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


        :return: The scheduled_switch_start_time of this TaskInfoForDescribeTasksOutput.  # noqa: E501
        :rtype: str
        """
        return self._scheduled_switch_start_time

    @scheduled_switch_start_time.setter
    def scheduled_switch_start_time(self, scheduled_switch_start_time):
        """Sets the scheduled_switch_start_time of this TaskInfoForDescribeTasksOutput.


        :param scheduled_switch_start_time: The scheduled_switch_start_time of this TaskInfoForDescribeTasksOutput.  # noqa: E501
        :type: str
        """

        self._scheduled_switch_start_time = scheduled_switch_start_time

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


        :return: The task_action of this TaskInfoForDescribeTasksOutput.  # noqa: E501
        :rtype: str
        """
        return self._task_action

    @task_action.setter
    def task_action(self, task_action):
        """Sets the task_action of this TaskInfoForDescribeTasksOutput.


        :param task_action: The task_action of this TaskInfoForDescribeTasksOutput.  # noqa: E501
        :type: str
        """

        self._task_action = task_action

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


        :return: The task_id of this TaskInfoForDescribeTasksOutput.  # noqa: E501
        :rtype: str
        """
        return self._task_id

    @task_id.setter
    def task_id(self, task_id):
        """Sets the task_id of this TaskInfoForDescribeTasksOutput.


        :param task_id: The task_id of this TaskInfoForDescribeTasksOutput.  # noqa: E501
        :type: str
        """

        self._task_id = task_id

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


        :return: The task_params of this TaskInfoForDescribeTasksOutput.  # noqa: E501
        :rtype: str
        """
        return self._task_params

    @task_params.setter
    def task_params(self, task_params):
        """Sets the task_params of this TaskInfoForDescribeTasksOutput.


        :param task_params: The task_params of this TaskInfoForDescribeTasksOutput.  # noqa: E501
        :type: str
        """

        self._task_params = task_params

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


        :return: The task_status of this TaskInfoForDescribeTasksOutput.  # noqa: E501
        :rtype: str
        """
        return self._task_status

    @task_status.setter
    def task_status(self, task_status):
        """Sets the task_status of this TaskInfoForDescribeTasksOutput.


        :param task_status: The task_status of this TaskInfoForDescribeTasksOutput.  # noqa: E501
        :type: str
        """

        self._task_status = task_status

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

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