# 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 RunCommandRequest(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 = {
        'command': 'str',
        'permission_type': 'str',
        'pod_id_list': 'list[str]',
        'product_id': 'str',
        'timeout_seconds': 'int'
    }

    attribute_map = {
        'command': 'Command',
        'permission_type': 'PermissionType',
        'pod_id_list': 'PodIdList',
        'product_id': 'ProductId',
        'timeout_seconds': 'TimeoutSeconds'
    }

    def __init__(self, command=None, permission_type=None, pod_id_list=None, product_id=None, timeout_seconds=None, _configuration=None):  # noqa: E501
        """RunCommandRequest - a model defined in Swagger"""  # noqa: E501
        if _configuration is None:
            _configuration = Configuration()
        self._configuration = _configuration

        self._command = None
        self._permission_type = None
        self._pod_id_list = None
        self._product_id = None
        self._timeout_seconds = None
        self.discriminator = None

        self.command = command
        if permission_type is not None:
            self.permission_type = permission_type
        if pod_id_list is not None:
            self.pod_id_list = pod_id_list
        self.product_id = product_id
        if timeout_seconds is not None:
            self.timeout_seconds = timeout_seconds

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


        :return: The command of this RunCommandRequest.  # noqa: E501
        :rtype: str
        """
        return self._command

    @command.setter
    def command(self, command):
        """Sets the command of this RunCommandRequest.


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

        self._command = command

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


        :return: The permission_type of this RunCommandRequest.  # noqa: E501
        :rtype: str
        """
        return self._permission_type

    @permission_type.setter
    def permission_type(self, permission_type):
        """Sets the permission_type of this RunCommandRequest.


        :param permission_type: The permission_type of this RunCommandRequest.  # noqa: E501
        :type: str
        """

        self._permission_type = permission_type

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


        :return: The pod_id_list of this RunCommandRequest.  # noqa: E501
        :rtype: list[str]
        """
        return self._pod_id_list

    @pod_id_list.setter
    def pod_id_list(self, pod_id_list):
        """Sets the pod_id_list of this RunCommandRequest.


        :param pod_id_list: The pod_id_list of this RunCommandRequest.  # noqa: E501
        :type: list[str]
        """

        self._pod_id_list = pod_id_list

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


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

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


        :param product_id: The product_id of this RunCommandRequest.  # 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 timeout_seconds(self):
        """Gets the timeout_seconds of this RunCommandRequest.  # noqa: E501


        :return: The timeout_seconds of this RunCommandRequest.  # noqa: E501
        :rtype: int
        """
        return self._timeout_seconds

    @timeout_seconds.setter
    def timeout_seconds(self, timeout_seconds):
        """Sets the timeout_seconds of this RunCommandRequest.


        :param timeout_seconds: The timeout_seconds of this RunCommandRequest.  # noqa: E501
        :type: int
        """

        self._timeout_seconds = timeout_seconds

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

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