# 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 ConvertSegmentForStartExecutionInput(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 = {
        'clip_fade': 'bool',
        'max_duration': 'float',
        'min_duration': 'float',
        'no_file': 'bool',
        'threshold': 'float'
    }

    attribute_map = {
        'clip_fade': 'ClipFade',
        'max_duration': 'MaxDuration',
        'min_duration': 'MinDuration',
        'no_file': 'NoFile',
        'threshold': 'Threshold'
    }

    def __init__(self, clip_fade=None, max_duration=None, min_duration=None, no_file=None, threshold=None, _configuration=None):  # noqa: E501
        """ConvertSegmentForStartExecutionInput - a model defined in Swagger"""  # noqa: E501
        if _configuration is None:
            _configuration = Configuration()
        self._configuration = _configuration

        self._clip_fade = None
        self._max_duration = None
        self._min_duration = None
        self._no_file = None
        self._threshold = None
        self.discriminator = None

        if clip_fade is not None:
            self.clip_fade = clip_fade
        if max_duration is not None:
            self.max_duration = max_duration
        if min_duration is not None:
            self.min_duration = min_duration
        if no_file is not None:
            self.no_file = no_file
        if threshold is not None:
            self.threshold = threshold

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


        :return: The clip_fade of this ConvertSegmentForStartExecutionInput.  # noqa: E501
        :rtype: bool
        """
        return self._clip_fade

    @clip_fade.setter
    def clip_fade(self, clip_fade):
        """Sets the clip_fade of this ConvertSegmentForStartExecutionInput.


        :param clip_fade: The clip_fade of this ConvertSegmentForStartExecutionInput.  # noqa: E501
        :type: bool
        """

        self._clip_fade = clip_fade

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


        :return: The max_duration of this ConvertSegmentForStartExecutionInput.  # noqa: E501
        :rtype: float
        """
        return self._max_duration

    @max_duration.setter
    def max_duration(self, max_duration):
        """Sets the max_duration of this ConvertSegmentForStartExecutionInput.


        :param max_duration: The max_duration of this ConvertSegmentForStartExecutionInput.  # noqa: E501
        :type: float
        """

        self._max_duration = max_duration

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


        :return: The min_duration of this ConvertSegmentForStartExecutionInput.  # noqa: E501
        :rtype: float
        """
        return self._min_duration

    @min_duration.setter
    def min_duration(self, min_duration):
        """Sets the min_duration of this ConvertSegmentForStartExecutionInput.


        :param min_duration: The min_duration of this ConvertSegmentForStartExecutionInput.  # noqa: E501
        :type: float
        """

        self._min_duration = min_duration

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


        :return: The no_file of this ConvertSegmentForStartExecutionInput.  # noqa: E501
        :rtype: bool
        """
        return self._no_file

    @no_file.setter
    def no_file(self, no_file):
        """Sets the no_file of this ConvertSegmentForStartExecutionInput.


        :param no_file: The no_file of this ConvertSegmentForStartExecutionInput.  # noqa: E501
        :type: bool
        """

        self._no_file = no_file

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


        :return: The threshold of this ConvertSegmentForStartExecutionInput.  # noqa: E501
        :rtype: float
        """
        return self._threshold

    @threshold.setter
    def threshold(self, threshold):
        """Sets the threshold of this ConvertSegmentForStartExecutionInput.


        :param threshold: The threshold of this ConvertSegmentForStartExecutionInput.  # noqa: E501
        :type: float
        """

        self._threshold = threshold

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

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