# coding: utf-8

"""
    Seeq REST API

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

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


from pprint import pformat
from six import iteritems
import re


class RequestOutputV1(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 = {
        'activities': 'list[ActivityOutputV1]',
        'href': 'str',
        'parallelization_count': 'int',
        'parameters': 'dict(str, list[str])',
        'progress': 'ProgressInformationOutputV1',
        'request_method': 'str',
        'request_path': 'str',
        'run_duration': 'int',
        'username': 'str'
    }

    attribute_map = {
        'activities': 'activities',
        'href': 'href',
        'parallelization_count': 'parallelizationCount',
        'parameters': 'parameters',
        'progress': 'progress',
        'request_method': 'requestMethod',
        'request_path': 'requestPath',
        'run_duration': 'runDuration',
        'username': 'username'
    }

    def __init__(self, activities=None, href=None, parallelization_count=None, parameters=None, progress=None, request_method=None, request_path=None, run_duration=None, username=None):
        """
        RequestOutputV1 - a model defined in Swagger
        """

        self._activities = None
        self._href = None
        self._parallelization_count = None
        self._parameters = None
        self._progress = None
        self._request_method = None
        self._request_path = None
        self._run_duration = None
        self._username = None

        if activities is not None:
          self.activities = activities
        if href is not None:
          self.href = href
        if parallelization_count is not None:
          self.parallelization_count = parallelization_count
        if parameters is not None:
          self.parameters = parameters
        if progress is not None:
          self.progress = progress
        if request_method is not None:
          self.request_method = request_method
        if request_path is not None:
          self.request_path = request_path
        if run_duration is not None:
          self.run_duration = run_duration
        if username is not None:
          self.username = username

    @property
    def activities(self):
        """
        Gets the activities of this RequestOutputV1.
        The current chain of activities for the request. The last activity in the list represents the current operation being performed.

        :return: The activities of this RequestOutputV1.
        :rtype: list[ActivityOutputV1]
        """
        return self._activities

    @activities.setter
    def activities(self, activities):
        """
        Sets the activities of this RequestOutputV1.
        The current chain of activities for the request. The last activity in the list represents the current operation being performed.

        :param activities: The activities of this RequestOutputV1.
        :type: list[ActivityOutputV1]
        """

        self._activities = activities

    @property
    def href(self):
        """
        Gets the href of this RequestOutputV1.
        The href that can be used to interact with the request

        :return: The href of this RequestOutputV1.
        :rtype: str
        """
        return self._href

    @href.setter
    def href(self, href):
        """
        Sets the href of this RequestOutputV1.
        The href that can be used to interact with the request

        :param href: The href of this RequestOutputV1.
        :type: str
        """
        if href is None:
            raise ValueError("Invalid value for `href`, must not be `None`")

        self._href = href

    @property
    def parallelization_count(self):
        """
        Gets the parallelization_count of this RequestOutputV1.
        The number of threads working on this request

        :return: The parallelization_count of this RequestOutputV1.
        :rtype: int
        """
        return self._parallelization_count

    @parallelization_count.setter
    def parallelization_count(self, parallelization_count):
        """
        Sets the parallelization_count of this RequestOutputV1.
        The number of threads working on this request

        :param parallelization_count: The parallelization_count of this RequestOutputV1.
        :type: int
        """
        if parallelization_count is None:
            raise ValueError("Invalid value for `parallelization_count`, must not be `None`")

        self._parallelization_count = parallelization_count

    @property
    def parameters(self):
        """
        Gets the parameters of this RequestOutputV1.
        The list of HTTP parameters

        :return: The parameters of this RequestOutputV1.
        :rtype: dict(str, list[str])
        """
        return self._parameters

    @parameters.setter
    def parameters(self, parameters):
        """
        Sets the parameters of this RequestOutputV1.
        The list of HTTP parameters

        :param parameters: The parameters of this RequestOutputV1.
        :type: dict(str, list[str])
        """

        self._parameters = parameters

    @property
    def progress(self):
        """
        Gets the progress of this RequestOutputV1.
        Progress of this request

        :return: The progress of this RequestOutputV1.
        :rtype: ProgressInformationOutputV1
        """
        return self._progress

    @progress.setter
    def progress(self, progress):
        """
        Sets the progress of this RequestOutputV1.
        Progress of this request

        :param progress: The progress of this RequestOutputV1.
        :type: ProgressInformationOutputV1
        """

        self._progress = progress

    @property
    def request_method(self):
        """
        Gets the request_method of this RequestOutputV1.
        The request method that this request was created for (GET, POST, DELETE)

        :return: The request_method of this RequestOutputV1.
        :rtype: str
        """
        return self._request_method

    @request_method.setter
    def request_method(self, request_method):
        """
        Sets the request_method of this RequestOutputV1.
        The request method that this request was created for (GET, POST, DELETE)

        :param request_method: The request_method of this RequestOutputV1.
        :type: str
        """
        if request_method is None:
            raise ValueError("Invalid value for `request_method`, must not be `None`")

        self._request_method = request_method

    @property
    def request_path(self):
        """
        Gets the request_path of this RequestOutputV1.
        The URI path that this request was created for

        :return: The request_path of this RequestOutputV1.
        :rtype: str
        """
        return self._request_path

    @request_path.setter
    def request_path(self, request_path):
        """
        Sets the request_path of this RequestOutputV1.
        The URI path that this request was created for

        :param request_path: The request_path of this RequestOutputV1.
        :type: str
        """
        if request_path is None:
            raise ValueError("Invalid value for `request_path`, must not be `None`")

        self._request_path = request_path

    @property
    def run_duration(self):
        """
        Gets the run_duration of this RequestOutputV1.
        The time (in nanoseconds) that this request has been running for

        :return: The run_duration of this RequestOutputV1.
        :rtype: int
        """
        return self._run_duration

    @run_duration.setter
    def run_duration(self, run_duration):
        """
        Sets the run_duration of this RequestOutputV1.
        The time (in nanoseconds) that this request has been running for

        :param run_duration: The run_duration of this RequestOutputV1.
        :type: int
        """
        if run_duration is None:
            raise ValueError("Invalid value for `run_duration`, must not be `None`")

        self._run_duration = run_duration

    @property
    def username(self):
        """
        Gets the username of this RequestOutputV1.
        The name of the user that created this request

        :return: The username of this RequestOutputV1.
        :rtype: str
        """
        return self._username

    @username.setter
    def username(self, username):
        """
        Sets the username of this RequestOutputV1.
        The name of the user that created this request

        :param username: The username of this RequestOutputV1.
        :type: str
        """
        if username is None:
            raise ValueError("Invalid value for `username`, must not be `None`")

        self._username = username

    def to_dict(self):
        """
        Returns the model properties as a dict
        """
        result = {}

        for attr, _ in 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

        return result

    def to_str(self):
        """
        Returns the string representation of the model
        """
        return 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, RequestOutputV1):
            return False

        return self.__dict__ == other.__dict__

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