# coding: utf-8

"""
    vei_api

    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 ContainerForUpdateDeploymentInput(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 = {
        'args': 'list[str]',
        'command': 'list[str]',
        'configs': 'list[ConfigForUpdateDeploymentInput]',
        'device_mounted': 'bool',
        'env': 'list[EnvForUpdateDeploymentInput]',
        'image': 'str',
        'inited': 'bool',
        'name': 'str',
        'ports': 'list[PortForUpdateDeploymentInput]',
        'post_start': 'list[str]',
        'pre_stop': 'list[str]',
        'privileged': 'bool',
        'resources': 'ResourcesForUpdateDeploymentInput',
        'volume_devices': 'list[VolumeDeviceForUpdateDeploymentInput]',
        'volume_mounts': 'list[VolumeMountForUpdateDeploymentInput]'
    }

    attribute_map = {
        'args': 'args',
        'command': 'command',
        'configs': 'configs',
        'device_mounted': 'device_mounted',
        'env': 'env',
        'image': 'image',
        'inited': 'inited',
        'name': 'name',
        'ports': 'ports',
        'post_start': 'post_start',
        'pre_stop': 'pre_stop',
        'privileged': 'privileged',
        'resources': 'resources',
        'volume_devices': 'volume_devices',
        'volume_mounts': 'volume_mounts'
    }

    def __init__(self, args=None, command=None, configs=None, device_mounted=None, env=None, image=None, inited=None, name=None, ports=None, post_start=None, pre_stop=None, privileged=None, resources=None, volume_devices=None, volume_mounts=None, _configuration=None):  # noqa: E501
        """ContainerForUpdateDeploymentInput - a model defined in Swagger"""  # noqa: E501
        if _configuration is None:
            _configuration = Configuration()
        self._configuration = _configuration

        self._args = None
        self._command = None
        self._configs = None
        self._device_mounted = None
        self._env = None
        self._image = None
        self._inited = None
        self._name = None
        self._ports = None
        self._post_start = None
        self._pre_stop = None
        self._privileged = None
        self._resources = None
        self._volume_devices = None
        self._volume_mounts = None
        self.discriminator = None

        if args is not None:
            self.args = args
        if command is not None:
            self.command = command
        if configs is not None:
            self.configs = configs
        if device_mounted is not None:
            self.device_mounted = device_mounted
        if env is not None:
            self.env = env
        if image is not None:
            self.image = image
        if inited is not None:
            self.inited = inited
        if name is not None:
            self.name = name
        if ports is not None:
            self.ports = ports
        if post_start is not None:
            self.post_start = post_start
        if pre_stop is not None:
            self.pre_stop = pre_stop
        if privileged is not None:
            self.privileged = privileged
        if resources is not None:
            self.resources = resources
        if volume_devices is not None:
            self.volume_devices = volume_devices
        if volume_mounts is not None:
            self.volume_mounts = volume_mounts

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


        :return: The args of this ContainerForUpdateDeploymentInput.  # noqa: E501
        :rtype: list[str]
        """
        return self._args

    @args.setter
    def args(self, args):
        """Sets the args of this ContainerForUpdateDeploymentInput.


        :param args: The args of this ContainerForUpdateDeploymentInput.  # noqa: E501
        :type: list[str]
        """

        self._args = args

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


        :return: The command of this ContainerForUpdateDeploymentInput.  # noqa: E501
        :rtype: list[str]
        """
        return self._command

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


        :param command: The command of this ContainerForUpdateDeploymentInput.  # noqa: E501
        :type: list[str]
        """

        self._command = command

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


        :return: The configs of this ContainerForUpdateDeploymentInput.  # noqa: E501
        :rtype: list[ConfigForUpdateDeploymentInput]
        """
        return self._configs

    @configs.setter
    def configs(self, configs):
        """Sets the configs of this ContainerForUpdateDeploymentInput.


        :param configs: The configs of this ContainerForUpdateDeploymentInput.  # noqa: E501
        :type: list[ConfigForUpdateDeploymentInput]
        """

        self._configs = configs

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


        :return: The device_mounted of this ContainerForUpdateDeploymentInput.  # noqa: E501
        :rtype: bool
        """
        return self._device_mounted

    @device_mounted.setter
    def device_mounted(self, device_mounted):
        """Sets the device_mounted of this ContainerForUpdateDeploymentInput.


        :param device_mounted: The device_mounted of this ContainerForUpdateDeploymentInput.  # noqa: E501
        :type: bool
        """

        self._device_mounted = device_mounted

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


        :return: The env of this ContainerForUpdateDeploymentInput.  # noqa: E501
        :rtype: list[EnvForUpdateDeploymentInput]
        """
        return self._env

    @env.setter
    def env(self, env):
        """Sets the env of this ContainerForUpdateDeploymentInput.


        :param env: The env of this ContainerForUpdateDeploymentInput.  # noqa: E501
        :type: list[EnvForUpdateDeploymentInput]
        """

        self._env = env

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


        :return: The image of this ContainerForUpdateDeploymentInput.  # noqa: E501
        :rtype: str
        """
        return self._image

    @image.setter
    def image(self, image):
        """Sets the image of this ContainerForUpdateDeploymentInput.


        :param image: The image of this ContainerForUpdateDeploymentInput.  # noqa: E501
        :type: str
        """

        self._image = image

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


        :return: The inited of this ContainerForUpdateDeploymentInput.  # noqa: E501
        :rtype: bool
        """
        return self._inited

    @inited.setter
    def inited(self, inited):
        """Sets the inited of this ContainerForUpdateDeploymentInput.


        :param inited: The inited of this ContainerForUpdateDeploymentInput.  # noqa: E501
        :type: bool
        """

        self._inited = inited

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


        :return: The name of this ContainerForUpdateDeploymentInput.  # noqa: E501
        :rtype: str
        """
        return self._name

    @name.setter
    def name(self, name):
        """Sets the name of this ContainerForUpdateDeploymentInput.


        :param name: The name of this ContainerForUpdateDeploymentInput.  # noqa: E501
        :type: str
        """

        self._name = name

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


        :return: The ports of this ContainerForUpdateDeploymentInput.  # noqa: E501
        :rtype: list[PortForUpdateDeploymentInput]
        """
        return self._ports

    @ports.setter
    def ports(self, ports):
        """Sets the ports of this ContainerForUpdateDeploymentInput.


        :param ports: The ports of this ContainerForUpdateDeploymentInput.  # noqa: E501
        :type: list[PortForUpdateDeploymentInput]
        """

        self._ports = ports

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


        :return: The post_start of this ContainerForUpdateDeploymentInput.  # noqa: E501
        :rtype: list[str]
        """
        return self._post_start

    @post_start.setter
    def post_start(self, post_start):
        """Sets the post_start of this ContainerForUpdateDeploymentInput.


        :param post_start: The post_start of this ContainerForUpdateDeploymentInput.  # noqa: E501
        :type: list[str]
        """

        self._post_start = post_start

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


        :return: The pre_stop of this ContainerForUpdateDeploymentInput.  # noqa: E501
        :rtype: list[str]
        """
        return self._pre_stop

    @pre_stop.setter
    def pre_stop(self, pre_stop):
        """Sets the pre_stop of this ContainerForUpdateDeploymentInput.


        :param pre_stop: The pre_stop of this ContainerForUpdateDeploymentInput.  # noqa: E501
        :type: list[str]
        """

        self._pre_stop = pre_stop

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


        :return: The privileged of this ContainerForUpdateDeploymentInput.  # noqa: E501
        :rtype: bool
        """
        return self._privileged

    @privileged.setter
    def privileged(self, privileged):
        """Sets the privileged of this ContainerForUpdateDeploymentInput.


        :param privileged: The privileged of this ContainerForUpdateDeploymentInput.  # noqa: E501
        :type: bool
        """

        self._privileged = privileged

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


        :return: The resources of this ContainerForUpdateDeploymentInput.  # noqa: E501
        :rtype: ResourcesForUpdateDeploymentInput
        """
        return self._resources

    @resources.setter
    def resources(self, resources):
        """Sets the resources of this ContainerForUpdateDeploymentInput.


        :param resources: The resources of this ContainerForUpdateDeploymentInput.  # noqa: E501
        :type: ResourcesForUpdateDeploymentInput
        """

        self._resources = resources

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


        :return: The volume_devices of this ContainerForUpdateDeploymentInput.  # noqa: E501
        :rtype: list[VolumeDeviceForUpdateDeploymentInput]
        """
        return self._volume_devices

    @volume_devices.setter
    def volume_devices(self, volume_devices):
        """Sets the volume_devices of this ContainerForUpdateDeploymentInput.


        :param volume_devices: The volume_devices of this ContainerForUpdateDeploymentInput.  # noqa: E501
        :type: list[VolumeDeviceForUpdateDeploymentInput]
        """

        self._volume_devices = volume_devices

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


        :return: The volume_mounts of this ContainerForUpdateDeploymentInput.  # noqa: E501
        :rtype: list[VolumeMountForUpdateDeploymentInput]
        """
        return self._volume_mounts

    @volume_mounts.setter
    def volume_mounts(self, volume_mounts):
        """Sets the volume_mounts of this ContainerForUpdateDeploymentInput.


        :param volume_mounts: The volume_mounts of this ContainerForUpdateDeploymentInput.  # noqa: E501
        :type: list[VolumeMountForUpdateDeploymentInput]
        """

        self._volume_mounts = volume_mounts

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

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