# coding: utf-8

"""
    auto_scaling

    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 CreateScalingConfigurationRequest(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 = {
        'client_token': 'str',
        'eip': 'EipForCreateScalingConfigurationInput',
        'host_name': 'str',
        'hpc_cluster_id': 'str',
        'image_id': 'str',
        'instance_description': 'str',
        'instance_name': 'str',
        'instance_type_overrides': 'list[InstanceTypeOverrideForCreateScalingConfigurationInput]',
        'instance_types': 'list[str]',
        'ipv6_address_count': 'int',
        'key_pair_name': 'str',
        'password': 'str',
        'project_name': 'str',
        'scaling_configuration_name': 'str',
        'scaling_group_id': 'str',
        'security_enhancement_strategy': 'str',
        'security_group_ids': 'list[str]',
        'spot_strategy': 'str',
        'tags': 'str',
        'user_data': 'str',
        'volumes': 'list[VolumeForCreateScalingConfigurationInput]',
        'zone_id': 'str'
    }

    attribute_map = {
        'client_token': 'ClientToken',
        'eip': 'Eip',
        'host_name': 'HostName',
        'hpc_cluster_id': 'HpcClusterId',
        'image_id': 'ImageId',
        'instance_description': 'InstanceDescription',
        'instance_name': 'InstanceName',
        'instance_type_overrides': 'InstanceTypeOverrides',
        'instance_types': 'InstanceTypes',
        'ipv6_address_count': 'Ipv6AddressCount',
        'key_pair_name': 'KeyPairName',
        'password': 'Password',
        'project_name': 'ProjectName',
        'scaling_configuration_name': 'ScalingConfigurationName',
        'scaling_group_id': 'ScalingGroupId',
        'security_enhancement_strategy': 'SecurityEnhancementStrategy',
        'security_group_ids': 'SecurityGroupIds',
        'spot_strategy': 'SpotStrategy',
        'tags': 'Tags',
        'user_data': 'UserData',
        'volumes': 'Volumes',
        'zone_id': 'ZoneId'
    }

    def __init__(self, client_token=None, eip=None, host_name=None, hpc_cluster_id=None, image_id=None, instance_description=None, instance_name=None, instance_type_overrides=None, instance_types=None, ipv6_address_count=None, key_pair_name=None, password=None, project_name=None, scaling_configuration_name=None, scaling_group_id=None, security_enhancement_strategy=None, security_group_ids=None, spot_strategy=None, tags=None, user_data=None, volumes=None, zone_id=None, _configuration=None):  # noqa: E501
        """CreateScalingConfigurationRequest - a model defined in Swagger"""  # noqa: E501
        if _configuration is None:
            _configuration = Configuration()
        self._configuration = _configuration

        self._client_token = None
        self._eip = None
        self._host_name = None
        self._hpc_cluster_id = None
        self._image_id = None
        self._instance_description = None
        self._instance_name = None
        self._instance_type_overrides = None
        self._instance_types = None
        self._ipv6_address_count = None
        self._key_pair_name = None
        self._password = None
        self._project_name = None
        self._scaling_configuration_name = None
        self._scaling_group_id = None
        self._security_enhancement_strategy = None
        self._security_group_ids = None
        self._spot_strategy = None
        self._tags = None
        self._user_data = None
        self._volumes = None
        self._zone_id = None
        self.discriminator = None

        if client_token is not None:
            self.client_token = client_token
        if eip is not None:
            self.eip = eip
        if host_name is not None:
            self.host_name = host_name
        if hpc_cluster_id is not None:
            self.hpc_cluster_id = hpc_cluster_id
        self.image_id = image_id
        if instance_description is not None:
            self.instance_description = instance_description
        self.instance_name = instance_name
        if instance_type_overrides is not None:
            self.instance_type_overrides = instance_type_overrides
        if instance_types is not None:
            self.instance_types = instance_types
        if ipv6_address_count is not None:
            self.ipv6_address_count = ipv6_address_count
        if key_pair_name is not None:
            self.key_pair_name = key_pair_name
        if password is not None:
            self.password = password
        if project_name is not None:
            self.project_name = project_name
        self.scaling_configuration_name = scaling_configuration_name
        self.scaling_group_id = scaling_group_id
        if security_enhancement_strategy is not None:
            self.security_enhancement_strategy = security_enhancement_strategy
        if security_group_ids is not None:
            self.security_group_ids = security_group_ids
        if spot_strategy is not None:
            self.spot_strategy = spot_strategy
        if tags is not None:
            self.tags = tags
        if user_data is not None:
            self.user_data = user_data
        if volumes is not None:
            self.volumes = volumes
        if zone_id is not None:
            self.zone_id = zone_id

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


        :return: The client_token of this CreateScalingConfigurationRequest.  # noqa: E501
        :rtype: str
        """
        return self._client_token

    @client_token.setter
    def client_token(self, client_token):
        """Sets the client_token of this CreateScalingConfigurationRequest.


        :param client_token: The client_token of this CreateScalingConfigurationRequest.  # noqa: E501
        :type: str
        """

        self._client_token = client_token

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


        :return: The eip of this CreateScalingConfigurationRequest.  # noqa: E501
        :rtype: EipForCreateScalingConfigurationInput
        """
        return self._eip

    @eip.setter
    def eip(self, eip):
        """Sets the eip of this CreateScalingConfigurationRequest.


        :param eip: The eip of this CreateScalingConfigurationRequest.  # noqa: E501
        :type: EipForCreateScalingConfigurationInput
        """

        self._eip = eip

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


        :return: The host_name of this CreateScalingConfigurationRequest.  # noqa: E501
        :rtype: str
        """
        return self._host_name

    @host_name.setter
    def host_name(self, host_name):
        """Sets the host_name of this CreateScalingConfigurationRequest.


        :param host_name: The host_name of this CreateScalingConfigurationRequest.  # noqa: E501
        :type: str
        """

        self._host_name = host_name

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


        :return: The hpc_cluster_id of this CreateScalingConfigurationRequest.  # noqa: E501
        :rtype: str
        """
        return self._hpc_cluster_id

    @hpc_cluster_id.setter
    def hpc_cluster_id(self, hpc_cluster_id):
        """Sets the hpc_cluster_id of this CreateScalingConfigurationRequest.


        :param hpc_cluster_id: The hpc_cluster_id of this CreateScalingConfigurationRequest.  # noqa: E501
        :type: str
        """

        self._hpc_cluster_id = hpc_cluster_id

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


        :return: The image_id of this CreateScalingConfigurationRequest.  # noqa: E501
        :rtype: str
        """
        return self._image_id

    @image_id.setter
    def image_id(self, image_id):
        """Sets the image_id of this CreateScalingConfigurationRequest.


        :param image_id: The image_id of this CreateScalingConfigurationRequest.  # noqa: E501
        :type: str
        """
        if self._configuration.client_side_validation and image_id is None:
            raise ValueError("Invalid value for `image_id`, must not be `None`")  # noqa: E501

        self._image_id = image_id

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


        :return: The instance_description of this CreateScalingConfigurationRequest.  # noqa: E501
        :rtype: str
        """
        return self._instance_description

    @instance_description.setter
    def instance_description(self, instance_description):
        """Sets the instance_description of this CreateScalingConfigurationRequest.


        :param instance_description: The instance_description of this CreateScalingConfigurationRequest.  # noqa: E501
        :type: str
        """

        self._instance_description = instance_description

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


        :return: The instance_name of this CreateScalingConfigurationRequest.  # noqa: E501
        :rtype: str
        """
        return self._instance_name

    @instance_name.setter
    def instance_name(self, instance_name):
        """Sets the instance_name of this CreateScalingConfigurationRequest.


        :param instance_name: The instance_name of this CreateScalingConfigurationRequest.  # noqa: E501
        :type: str
        """
        if self._configuration.client_side_validation and instance_name is None:
            raise ValueError("Invalid value for `instance_name`, must not be `None`")  # noqa: E501

        self._instance_name = instance_name

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


        :return: The instance_type_overrides of this CreateScalingConfigurationRequest.  # noqa: E501
        :rtype: list[InstanceTypeOverrideForCreateScalingConfigurationInput]
        """
        return self._instance_type_overrides

    @instance_type_overrides.setter
    def instance_type_overrides(self, instance_type_overrides):
        """Sets the instance_type_overrides of this CreateScalingConfigurationRequest.


        :param instance_type_overrides: The instance_type_overrides of this CreateScalingConfigurationRequest.  # noqa: E501
        :type: list[InstanceTypeOverrideForCreateScalingConfigurationInput]
        """

        self._instance_type_overrides = instance_type_overrides

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


        :return: The instance_types of this CreateScalingConfigurationRequest.  # noqa: E501
        :rtype: list[str]
        """
        return self._instance_types

    @instance_types.setter
    def instance_types(self, instance_types):
        """Sets the instance_types of this CreateScalingConfigurationRequest.


        :param instance_types: The instance_types of this CreateScalingConfigurationRequest.  # noqa: E501
        :type: list[str]
        """

        self._instance_types = instance_types

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


        :return: The ipv6_address_count of this CreateScalingConfigurationRequest.  # noqa: E501
        :rtype: int
        """
        return self._ipv6_address_count

    @ipv6_address_count.setter
    def ipv6_address_count(self, ipv6_address_count):
        """Sets the ipv6_address_count of this CreateScalingConfigurationRequest.


        :param ipv6_address_count: The ipv6_address_count of this CreateScalingConfigurationRequest.  # noqa: E501
        :type: int
        """

        self._ipv6_address_count = ipv6_address_count

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


        :return: The key_pair_name of this CreateScalingConfigurationRequest.  # noqa: E501
        :rtype: str
        """
        return self._key_pair_name

    @key_pair_name.setter
    def key_pair_name(self, key_pair_name):
        """Sets the key_pair_name of this CreateScalingConfigurationRequest.


        :param key_pair_name: The key_pair_name of this CreateScalingConfigurationRequest.  # noqa: E501
        :type: str
        """

        self._key_pair_name = key_pair_name

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


        :return: The password of this CreateScalingConfigurationRequest.  # noqa: E501
        :rtype: str
        """
        return self._password

    @password.setter
    def password(self, password):
        """Sets the password of this CreateScalingConfigurationRequest.


        :param password: The password of this CreateScalingConfigurationRequest.  # noqa: E501
        :type: str
        """
        if (self._configuration.client_side_validation and
                password is not None and len(password) > 30):
            raise ValueError("Invalid value for `password`, length must be less than or equal to `30`")  # noqa: E501
        if (self._configuration.client_side_validation and
                password is not None and len(password) < 8):
            raise ValueError("Invalid value for `password`, length must be greater than or equal to `8`")  # noqa: E501

        self._password = password

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


        :return: The project_name of this CreateScalingConfigurationRequest.  # noqa: E501
        :rtype: str
        """
        return self._project_name

    @project_name.setter
    def project_name(self, project_name):
        """Sets the project_name of this CreateScalingConfigurationRequest.


        :param project_name: The project_name of this CreateScalingConfigurationRequest.  # noqa: E501
        :type: str
        """
        if (self._configuration.client_side_validation and
                project_name is not None and len(project_name) > 64):
            raise ValueError("Invalid value for `project_name`, length must be less than or equal to `64`")  # noqa: E501

        self._project_name = project_name

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


        :return: The scaling_configuration_name of this CreateScalingConfigurationRequest.  # noqa: E501
        :rtype: str
        """
        return self._scaling_configuration_name

    @scaling_configuration_name.setter
    def scaling_configuration_name(self, scaling_configuration_name):
        """Sets the scaling_configuration_name of this CreateScalingConfigurationRequest.


        :param scaling_configuration_name: The scaling_configuration_name of this CreateScalingConfigurationRequest.  # noqa: E501
        :type: str
        """
        if self._configuration.client_side_validation and scaling_configuration_name is None:
            raise ValueError("Invalid value for `scaling_configuration_name`, must not be `None`")  # noqa: E501
        if (self._configuration.client_side_validation and
                scaling_configuration_name is not None and len(scaling_configuration_name) > 128):
            raise ValueError("Invalid value for `scaling_configuration_name`, length must be less than or equal to `128`")  # noqa: E501
        if (self._configuration.client_side_validation and
                scaling_configuration_name is not None and len(scaling_configuration_name) < 1):
            raise ValueError("Invalid value for `scaling_configuration_name`, length must be greater than or equal to `1`")  # noqa: E501

        self._scaling_configuration_name = scaling_configuration_name

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


        :return: The scaling_group_id of this CreateScalingConfigurationRequest.  # noqa: E501
        :rtype: str
        """
        return self._scaling_group_id

    @scaling_group_id.setter
    def scaling_group_id(self, scaling_group_id):
        """Sets the scaling_group_id of this CreateScalingConfigurationRequest.


        :param scaling_group_id: The scaling_group_id of this CreateScalingConfigurationRequest.  # noqa: E501
        :type: str
        """
        if self._configuration.client_side_validation and scaling_group_id is None:
            raise ValueError("Invalid value for `scaling_group_id`, must not be `None`")  # noqa: E501

        self._scaling_group_id = scaling_group_id

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


        :return: The security_enhancement_strategy of this CreateScalingConfigurationRequest.  # noqa: E501
        :rtype: str
        """
        return self._security_enhancement_strategy

    @security_enhancement_strategy.setter
    def security_enhancement_strategy(self, security_enhancement_strategy):
        """Sets the security_enhancement_strategy of this CreateScalingConfigurationRequest.


        :param security_enhancement_strategy: The security_enhancement_strategy of this CreateScalingConfigurationRequest.  # noqa: E501
        :type: str
        """

        self._security_enhancement_strategy = security_enhancement_strategy

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


        :return: The security_group_ids of this CreateScalingConfigurationRequest.  # noqa: E501
        :rtype: list[str]
        """
        return self._security_group_ids

    @security_group_ids.setter
    def security_group_ids(self, security_group_ids):
        """Sets the security_group_ids of this CreateScalingConfigurationRequest.


        :param security_group_ids: The security_group_ids of this CreateScalingConfigurationRequest.  # noqa: E501
        :type: list[str]
        """

        self._security_group_ids = security_group_ids

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


        :return: The spot_strategy of this CreateScalingConfigurationRequest.  # noqa: E501
        :rtype: str
        """
        return self._spot_strategy

    @spot_strategy.setter
    def spot_strategy(self, spot_strategy):
        """Sets the spot_strategy of this CreateScalingConfigurationRequest.


        :param spot_strategy: The spot_strategy of this CreateScalingConfigurationRequest.  # noqa: E501
        :type: str
        """

        self._spot_strategy = spot_strategy

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


        :return: The tags of this CreateScalingConfigurationRequest.  # noqa: E501
        :rtype: str
        """
        return self._tags

    @tags.setter
    def tags(self, tags):
        """Sets the tags of this CreateScalingConfigurationRequest.


        :param tags: The tags of this CreateScalingConfigurationRequest.  # noqa: E501
        :type: str
        """

        self._tags = tags

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


        :return: The user_data of this CreateScalingConfigurationRequest.  # noqa: E501
        :rtype: str
        """
        return self._user_data

    @user_data.setter
    def user_data(self, user_data):
        """Sets the user_data of this CreateScalingConfigurationRequest.


        :param user_data: The user_data of this CreateScalingConfigurationRequest.  # noqa: E501
        :type: str
        """

        self._user_data = user_data

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


        :return: The volumes of this CreateScalingConfigurationRequest.  # noqa: E501
        :rtype: list[VolumeForCreateScalingConfigurationInput]
        """
        return self._volumes

    @volumes.setter
    def volumes(self, volumes):
        """Sets the volumes of this CreateScalingConfigurationRequest.


        :param volumes: The volumes of this CreateScalingConfigurationRequest.  # noqa: E501
        :type: list[VolumeForCreateScalingConfigurationInput]
        """

        self._volumes = volumes

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


        :return: The zone_id of this CreateScalingConfigurationRequest.  # noqa: E501
        :rtype: str
        """
        return self._zone_id

    @zone_id.setter
    def zone_id(self, zone_id):
        """Sets the zone_id of this CreateScalingConfigurationRequest.


        :param zone_id: The zone_id of this CreateScalingConfigurationRequest.  # noqa: E501
        :type: str
        """

        self._zone_id = zone_id

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

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