# coding: utf-8

"""
    vod20250101

    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 CodecForStartExecutionInput(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 = {
        'audio_bitrate': 'int',
        'audio_codec': 'str',
        'crf': 'int',
        'preset': 'str',
        'video_bit_rate': 'int',
        'video_codec': 'str'
    }

    attribute_map = {
        'audio_bitrate': 'AudioBitrate',
        'audio_codec': 'AudioCodec',
        'crf': 'Crf',
        'preset': 'Preset',
        'video_bit_rate': 'VideoBitRate',
        'video_codec': 'VideoCodec'
    }

    def __init__(self, audio_bitrate=None, audio_codec=None, crf=None, preset=None, video_bit_rate=None, video_codec=None, _configuration=None):  # noqa: E501
        """CodecForStartExecutionInput - a model defined in Swagger"""  # noqa: E501
        if _configuration is None:
            _configuration = Configuration()
        self._configuration = _configuration

        self._audio_bitrate = None
        self._audio_codec = None
        self._crf = None
        self._preset = None
        self._video_bit_rate = None
        self._video_codec = None
        self.discriminator = None

        if audio_bitrate is not None:
            self.audio_bitrate = audio_bitrate
        if audio_codec is not None:
            self.audio_codec = audio_codec
        if crf is not None:
            self.crf = crf
        if preset is not None:
            self.preset = preset
        if video_bit_rate is not None:
            self.video_bit_rate = video_bit_rate
        if video_codec is not None:
            self.video_codec = video_codec

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


        :return: The audio_bitrate of this CodecForStartExecutionInput.  # noqa: E501
        :rtype: int
        """
        return self._audio_bitrate

    @audio_bitrate.setter
    def audio_bitrate(self, audio_bitrate):
        """Sets the audio_bitrate of this CodecForStartExecutionInput.


        :param audio_bitrate: The audio_bitrate of this CodecForStartExecutionInput.  # noqa: E501
        :type: int
        """

        self._audio_bitrate = audio_bitrate

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


        :return: The audio_codec of this CodecForStartExecutionInput.  # noqa: E501
        :rtype: str
        """
        return self._audio_codec

    @audio_codec.setter
    def audio_codec(self, audio_codec):
        """Sets the audio_codec of this CodecForStartExecutionInput.


        :param audio_codec: The audio_codec of this CodecForStartExecutionInput.  # noqa: E501
        :type: str
        """

        self._audio_codec = audio_codec

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


        :return: The crf of this CodecForStartExecutionInput.  # noqa: E501
        :rtype: int
        """
        return self._crf

    @crf.setter
    def crf(self, crf):
        """Sets the crf of this CodecForStartExecutionInput.


        :param crf: The crf of this CodecForStartExecutionInput.  # noqa: E501
        :type: int
        """

        self._crf = crf

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


        :return: The preset of this CodecForStartExecutionInput.  # noqa: E501
        :rtype: str
        """
        return self._preset

    @preset.setter
    def preset(self, preset):
        """Sets the preset of this CodecForStartExecutionInput.


        :param preset: The preset of this CodecForStartExecutionInput.  # noqa: E501
        :type: str
        """

        self._preset = preset

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


        :return: The video_bit_rate of this CodecForStartExecutionInput.  # noqa: E501
        :rtype: int
        """
        return self._video_bit_rate

    @video_bit_rate.setter
    def video_bit_rate(self, video_bit_rate):
        """Sets the video_bit_rate of this CodecForStartExecutionInput.


        :param video_bit_rate: The video_bit_rate of this CodecForStartExecutionInput.  # noqa: E501
        :type: int
        """

        self._video_bit_rate = video_bit_rate

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


        :return: The video_codec of this CodecForStartExecutionInput.  # noqa: E501
        :rtype: str
        """
        return self._video_codec

    @video_codec.setter
    def video_codec(self, video_codec):
        """Sets the video_codec of this CodecForStartExecutionInput.


        :param video_codec: The video_codec of this CodecForStartExecutionInput.  # noqa: E501
        :type: str
        """

        self._video_codec = video_codec

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

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