# coding: utf-8

"""
    acep

    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 StartRecordingRequest(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 = {
        'duration_limit': 'int',
        'is_saved_on_pod': 'bool',
        'pod_id': 'str',
        'product_id': 'str',
        'round_id': 'str'
    }

    attribute_map = {
        'duration_limit': 'DurationLimit',
        'is_saved_on_pod': 'IsSavedOnPod',
        'pod_id': 'PodId',
        'product_id': 'ProductId',
        'round_id': 'RoundId'
    }

    def __init__(self, duration_limit=None, is_saved_on_pod=None, pod_id=None, product_id=None, round_id=None, _configuration=None):  # noqa: E501
        """StartRecordingRequest - a model defined in Swagger"""  # noqa: E501
        if _configuration is None:
            _configuration = Configuration()
        self._configuration = _configuration

        self._duration_limit = None
        self._is_saved_on_pod = None
        self._pod_id = None
        self._product_id = None
        self._round_id = None
        self.discriminator = None

        self.duration_limit = duration_limit
        if is_saved_on_pod is not None:
            self.is_saved_on_pod = is_saved_on_pod
        self.pod_id = pod_id
        self.product_id = product_id
        self.round_id = round_id

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


        :return: The duration_limit of this StartRecordingRequest.  # noqa: E501
        :rtype: int
        """
        return self._duration_limit

    @duration_limit.setter
    def duration_limit(self, duration_limit):
        """Sets the duration_limit of this StartRecordingRequest.


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

        self._duration_limit = duration_limit

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


        :return: The is_saved_on_pod of this StartRecordingRequest.  # noqa: E501
        :rtype: bool
        """
        return self._is_saved_on_pod

    @is_saved_on_pod.setter
    def is_saved_on_pod(self, is_saved_on_pod):
        """Sets the is_saved_on_pod of this StartRecordingRequest.


        :param is_saved_on_pod: The is_saved_on_pod of this StartRecordingRequest.  # noqa: E501
        :type: bool
        """

        self._is_saved_on_pod = is_saved_on_pod

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


        :return: The pod_id of this StartRecordingRequest.  # noqa: E501
        :rtype: str
        """
        return self._pod_id

    @pod_id.setter
    def pod_id(self, pod_id):
        """Sets the pod_id of this StartRecordingRequest.


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

        self._pod_id = pod_id

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


        :return: The product_id of this StartRecordingRequest.  # noqa: E501
        :rtype: str
        """
        return self._product_id

    @product_id.setter
    def product_id(self, product_id):
        """Sets the product_id of this StartRecordingRequest.


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

        self._product_id = product_id

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


        :return: The round_id of this StartRecordingRequest.  # noqa: E501
        :rtype: str
        """
        return self._round_id

    @round_id.setter
    def round_id(self, round_id):
        """Sets the round_id of this StartRecordingRequest.


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

        self._round_id = round_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(StartRecordingRequest, 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, StartRecordingRequest):
            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, StartRecordingRequest):
            return True

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