# coding: utf-8

"""
    Vidispine API

    No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)  # noqa: E501

    The version of the OpenAPI document: 5.x
    Contact: info@vidispine.com
    Generated by: https://openapi-generator.tech
"""


import pprint
import re  # noqa: F401

import six
from . import *

class AudioOutputType(object):
    """NOTE: This class is auto generated by OpenAPI Generator.
    Ref: https://openapi-generator.tech

    Do not edit the class manually.
    """

    """
    Attributes:
      openapi_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.
    """
    openapi_types = {
        'stream': 'list[int]',
        'format': 'str',
        'framerate': 'TimeBaseType',
        'codec': 'str',
        'bitrate': 'int',
        'channel': 'list[int]'
    }

    attribute_map = {
        'stream': 'stream',
        'format': 'format',
        'framerate': 'framerate',
        'codec': 'codec',
        'bitrate': 'bitrate',
        'channel': 'channel'
    }

    def __init__(self, stream=None, format=None, framerate=None, codec=None, bitrate=None, channel=None):  # noqa: E501
        """AudioOutputType - a model defined in OpenAPI"""  # noqa: E501

        self._stream = None
        self._format = None
        self._framerate = None
        self._codec = None
        self._bitrate = None
        self._channel = None
        self.discriminator = None

        if stream is not None:
            self.stream = stream
        if format is not None:
            self.format = format
        if framerate is not None:
            self.framerate = framerate
        if codec is not None:
            self.codec = codec
        if bitrate is not None:
            self.bitrate = bitrate
        if channel is not None:
            self.channel = channel

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


        :return: The stream of this AudioOutputType.  # noqa: E501
        :rtype: list[int]
        """
        return self._stream

    @stream.setter
    def stream(self, stream):
        """Sets the stream of this AudioOutputType.


        :param stream: The stream of this AudioOutputType.  # noqa: E501
        :type: list[int]
        """

        self._stream = stream

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


        :return: The format of this AudioOutputType.  # noqa: E501
        :rtype: str
        """
        return self._format

    @format.setter
    def format(self, format):
        """Sets the format of this AudioOutputType.


        :param format: The format of this AudioOutputType.  # noqa: E501
        :type: str
        """

        self._format = format

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


        :return: The framerate of this AudioOutputType.  # noqa: E501
        :rtype: TimeBaseType
        """
        return self._framerate

    @framerate.setter
    def framerate(self, framerate):
        """Sets the framerate of this AudioOutputType.


        :param framerate: The framerate of this AudioOutputType.  # noqa: E501
        :type: TimeBaseType
        """

        self._framerate = framerate

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


        :return: The codec of this AudioOutputType.  # noqa: E501
        :rtype: str
        """
        return self._codec

    @codec.setter
    def codec(self, codec):
        """Sets the codec of this AudioOutputType.


        :param codec: The codec of this AudioOutputType.  # noqa: E501
        :type: str
        """

        self._codec = codec

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


        :return: The bitrate of this AudioOutputType.  # noqa: E501
        :rtype: int
        """
        return self._bitrate

    @bitrate.setter
    def bitrate(self, bitrate):
        """Sets the bitrate of this AudioOutputType.


        :param bitrate: The bitrate of this AudioOutputType.  # noqa: E501
        :type: int
        """

        self._bitrate = bitrate

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


        :return: The channel of this AudioOutputType.  # noqa: E501
        :rtype: list[int]
        """
        return self._channel

    @channel.setter
    def channel(self, channel):
        """Sets the channel of this AudioOutputType.


        :param channel: The channel of this AudioOutputType.  # noqa: E501
        :type: list[int]
        """

        self._channel = channel

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

        for attr, _ in six.iteritems(self.openapi_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 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, AudioOutputType):
            return False

        return self.__dict__ == other.__dict__

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