# coding: utf-8

"""
    vke

    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 ScheduledInstancePolicyForUpdateScalingPolicyInput(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 = {
        'auto_release_time': 'str',
        'best_effort': 'bool',
        'delivery_type': 'str',
        'elastic_scheduled_instance_type': 'str',
        'end_delivery_time': 'str',
        'start_delivery_time': 'str'
    }

    attribute_map = {
        'auto_release_time': 'AutoReleaseTime',
        'best_effort': 'BestEffort',
        'delivery_type': 'DeliveryType',
        'elastic_scheduled_instance_type': 'ElasticScheduledInstanceType',
        'end_delivery_time': 'EndDeliveryTime',
        'start_delivery_time': 'StartDeliveryTime'
    }

    def __init__(self, auto_release_time=None, best_effort=None, delivery_type=None, elastic_scheduled_instance_type=None, end_delivery_time=None, start_delivery_time=None, _configuration=None):  # noqa: E501
        """ScheduledInstancePolicyForUpdateScalingPolicyInput - a model defined in Swagger"""  # noqa: E501
        if _configuration is None:
            _configuration = Configuration()
        self._configuration = _configuration

        self._auto_release_time = None
        self._best_effort = None
        self._delivery_type = None
        self._elastic_scheduled_instance_type = None
        self._end_delivery_time = None
        self._start_delivery_time = None
        self.discriminator = None

        if auto_release_time is not None:
            self.auto_release_time = auto_release_time
        if best_effort is not None:
            self.best_effort = best_effort
        if delivery_type is not None:
            self.delivery_type = delivery_type
        if elastic_scheduled_instance_type is not None:
            self.elastic_scheduled_instance_type = elastic_scheduled_instance_type
        if end_delivery_time is not None:
            self.end_delivery_time = end_delivery_time
        if start_delivery_time is not None:
            self.start_delivery_time = start_delivery_time

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


        :return: The auto_release_time of this ScheduledInstancePolicyForUpdateScalingPolicyInput.  # noqa: E501
        :rtype: str
        """
        return self._auto_release_time

    @auto_release_time.setter
    def auto_release_time(self, auto_release_time):
        """Sets the auto_release_time of this ScheduledInstancePolicyForUpdateScalingPolicyInput.


        :param auto_release_time: The auto_release_time of this ScheduledInstancePolicyForUpdateScalingPolicyInput.  # noqa: E501
        :type: str
        """

        self._auto_release_time = auto_release_time

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


        :return: The best_effort of this ScheduledInstancePolicyForUpdateScalingPolicyInput.  # noqa: E501
        :rtype: bool
        """
        return self._best_effort

    @best_effort.setter
    def best_effort(self, best_effort):
        """Sets the best_effort of this ScheduledInstancePolicyForUpdateScalingPolicyInput.


        :param best_effort: The best_effort of this ScheduledInstancePolicyForUpdateScalingPolicyInput.  # noqa: E501
        :type: bool
        """

        self._best_effort = best_effort

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


        :return: The delivery_type of this ScheduledInstancePolicyForUpdateScalingPolicyInput.  # noqa: E501
        :rtype: str
        """
        return self._delivery_type

    @delivery_type.setter
    def delivery_type(self, delivery_type):
        """Sets the delivery_type of this ScheduledInstancePolicyForUpdateScalingPolicyInput.


        :param delivery_type: The delivery_type of this ScheduledInstancePolicyForUpdateScalingPolicyInput.  # noqa: E501
        :type: str
        """
        allowed_values = ["Reserve", "Immediate"]  # noqa: E501
        if (self._configuration.client_side_validation and
                delivery_type not in allowed_values):
            raise ValueError(
                "Invalid value for `delivery_type` ({0}), must be one of {1}"  # noqa: E501
                .format(delivery_type, allowed_values)
            )

        self._delivery_type = delivery_type

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


        :return: The elastic_scheduled_instance_type of this ScheduledInstancePolicyForUpdateScalingPolicyInput.  # noqa: E501
        :rtype: str
        """
        return self._elastic_scheduled_instance_type

    @elastic_scheduled_instance_type.setter
    def elastic_scheduled_instance_type(self, elastic_scheduled_instance_type):
        """Sets the elastic_scheduled_instance_type of this ScheduledInstancePolicyForUpdateScalingPolicyInput.


        :param elastic_scheduled_instance_type: The elastic_scheduled_instance_type of this ScheduledInstancePolicyForUpdateScalingPolicyInput.  # noqa: E501
        :type: str
        """
        allowed_values = ["Esi", "Segmented"]  # noqa: E501
        if (self._configuration.client_side_validation and
                elastic_scheduled_instance_type not in allowed_values):
            raise ValueError(
                "Invalid value for `elastic_scheduled_instance_type` ({0}), must be one of {1}"  # noqa: E501
                .format(elastic_scheduled_instance_type, allowed_values)
            )

        self._elastic_scheduled_instance_type = elastic_scheduled_instance_type

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


        :return: The end_delivery_time of this ScheduledInstancePolicyForUpdateScalingPolicyInput.  # noqa: E501
        :rtype: str
        """
        return self._end_delivery_time

    @end_delivery_time.setter
    def end_delivery_time(self, end_delivery_time):
        """Sets the end_delivery_time of this ScheduledInstancePolicyForUpdateScalingPolicyInput.


        :param end_delivery_time: The end_delivery_time of this ScheduledInstancePolicyForUpdateScalingPolicyInput.  # noqa: E501
        :type: str
        """

        self._end_delivery_time = end_delivery_time

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


        :return: The start_delivery_time of this ScheduledInstancePolicyForUpdateScalingPolicyInput.  # noqa: E501
        :rtype: str
        """
        return self._start_delivery_time

    @start_delivery_time.setter
    def start_delivery_time(self, start_delivery_time):
        """Sets the start_delivery_time of this ScheduledInstancePolicyForUpdateScalingPolicyInput.


        :param start_delivery_time: The start_delivery_time of this ScheduledInstancePolicyForUpdateScalingPolicyInput.  # noqa: E501
        :type: str
        """

        self._start_delivery_time = start_delivery_time

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

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