# 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 NodeConfigForCreateNodePoolInput(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 = {
        'additional_container_storage_enabled': 'bool',
        'auto_renew': 'bool',
        'auto_renew_period': 'int',
        'data_volumes': 'list[DataVolumeForCreateNodePoolInput]',
        'deployment_set_group_number': 'int',
        'deployment_set_id': 'str',
        'hostname': 'str',
        'hpc_cluster_ids': 'list[str]',
        'image_id': 'str',
        'initialize_script': 'str',
        'instance_charge_type': 'str',
        'instance_name': 'str',
        'instance_type_ids': 'list[str]',
        'instances_distribution': 'InstancesDistributionForCreateNodePoolInput',
        'name_prefix': 'str',
        'network_traffic_mode': 'str',
        'period': 'int',
        'pre_script': 'str',
        'project_name': 'str',
        'public_access_config': 'PublicAccessConfigForCreateNodePoolInput',
        'public_access_enabled': 'bool',
        'security': 'SecurityForCreateNodePoolInput',
        'spot_strategy': 'str',
        'subnet_ids': 'list[str]',
        'system_volume': 'SystemVolumeForCreateNodePoolInput',
        'tags': 'list[TagForCreateNodePoolInput]'
    }

    attribute_map = {
        'additional_container_storage_enabled': 'AdditionalContainerStorageEnabled',
        'auto_renew': 'AutoRenew',
        'auto_renew_period': 'AutoRenewPeriod',
        'data_volumes': 'DataVolumes',
        'deployment_set_group_number': 'DeploymentSetGroupNumber',
        'deployment_set_id': 'DeploymentSetId',
        'hostname': 'Hostname',
        'hpc_cluster_ids': 'HpcClusterIds',
        'image_id': 'ImageId',
        'initialize_script': 'InitializeScript',
        'instance_charge_type': 'InstanceChargeType',
        'instance_name': 'InstanceName',
        'instance_type_ids': 'InstanceTypeIds',
        'instances_distribution': 'InstancesDistribution',
        'name_prefix': 'NamePrefix',
        'network_traffic_mode': 'NetworkTrafficMode',
        'period': 'Period',
        'pre_script': 'PreScript',
        'project_name': 'ProjectName',
        'public_access_config': 'PublicAccessConfig',
        'public_access_enabled': 'PublicAccessEnabled',
        'security': 'Security',
        'spot_strategy': 'SpotStrategy',
        'subnet_ids': 'SubnetIds',
        'system_volume': 'SystemVolume',
        'tags': 'Tags'
    }

    def __init__(self, additional_container_storage_enabled=None, auto_renew=None, auto_renew_period=None, data_volumes=None, deployment_set_group_number=None, deployment_set_id=None, hostname=None, hpc_cluster_ids=None, image_id=None, initialize_script=None, instance_charge_type=None, instance_name=None, instance_type_ids=None, instances_distribution=None, name_prefix=None, network_traffic_mode=None, period=None, pre_script=None, project_name=None, public_access_config=None, public_access_enabled=None, security=None, spot_strategy=None, subnet_ids=None, system_volume=None, tags=None, _configuration=None):  # noqa: E501
        """NodeConfigForCreateNodePoolInput - a model defined in Swagger"""  # noqa: E501
        if _configuration is None:
            _configuration = Configuration()
        self._configuration = _configuration

        self._additional_container_storage_enabled = None
        self._auto_renew = None
        self._auto_renew_period = None
        self._data_volumes = None
        self._deployment_set_group_number = None
        self._deployment_set_id = None
        self._hostname = None
        self._hpc_cluster_ids = None
        self._image_id = None
        self._initialize_script = None
        self._instance_charge_type = None
        self._instance_name = None
        self._instance_type_ids = None
        self._instances_distribution = None
        self._name_prefix = None
        self._network_traffic_mode = None
        self._period = None
        self._pre_script = None
        self._project_name = None
        self._public_access_config = None
        self._public_access_enabled = None
        self._security = None
        self._spot_strategy = None
        self._subnet_ids = None
        self._system_volume = None
        self._tags = None
        self.discriminator = None

        if additional_container_storage_enabled is not None:
            self.additional_container_storage_enabled = additional_container_storage_enabled
        if auto_renew is not None:
            self.auto_renew = auto_renew
        if auto_renew_period is not None:
            self.auto_renew_period = auto_renew_period
        if data_volumes is not None:
            self.data_volumes = data_volumes
        if deployment_set_group_number is not None:
            self.deployment_set_group_number = deployment_set_group_number
        if deployment_set_id is not None:
            self.deployment_set_id = deployment_set_id
        if hostname is not None:
            self.hostname = hostname
        if hpc_cluster_ids is not None:
            self.hpc_cluster_ids = hpc_cluster_ids
        if image_id is not None:
            self.image_id = image_id
        if initialize_script is not None:
            self.initialize_script = initialize_script
        if instance_charge_type is not None:
            self.instance_charge_type = instance_charge_type
        if instance_name is not None:
            self.instance_name = instance_name
        if instance_type_ids is not None:
            self.instance_type_ids = instance_type_ids
        if instances_distribution is not None:
            self.instances_distribution = instances_distribution
        if name_prefix is not None:
            self.name_prefix = name_prefix
        if network_traffic_mode is not None:
            self.network_traffic_mode = network_traffic_mode
        if period is not None:
            self.period = period
        if pre_script is not None:
            self.pre_script = pre_script
        if project_name is not None:
            self.project_name = project_name
        if public_access_config is not None:
            self.public_access_config = public_access_config
        if public_access_enabled is not None:
            self.public_access_enabled = public_access_enabled
        if security is not None:
            self.security = security
        if spot_strategy is not None:
            self.spot_strategy = spot_strategy
        if subnet_ids is not None:
            self.subnet_ids = subnet_ids
        if system_volume is not None:
            self.system_volume = system_volume
        if tags is not None:
            self.tags = tags

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


        :return: The additional_container_storage_enabled of this NodeConfigForCreateNodePoolInput.  # noqa: E501
        :rtype: bool
        """
        return self._additional_container_storage_enabled

    @additional_container_storage_enabled.setter
    def additional_container_storage_enabled(self, additional_container_storage_enabled):
        """Sets the additional_container_storage_enabled of this NodeConfigForCreateNodePoolInput.


        :param additional_container_storage_enabled: The additional_container_storage_enabled of this NodeConfigForCreateNodePoolInput.  # noqa: E501
        :type: bool
        """

        self._additional_container_storage_enabled = additional_container_storage_enabled

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


        :return: The auto_renew of this NodeConfigForCreateNodePoolInput.  # noqa: E501
        :rtype: bool
        """
        return self._auto_renew

    @auto_renew.setter
    def auto_renew(self, auto_renew):
        """Sets the auto_renew of this NodeConfigForCreateNodePoolInput.


        :param auto_renew: The auto_renew of this NodeConfigForCreateNodePoolInput.  # noqa: E501
        :type: bool
        """

        self._auto_renew = auto_renew

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


        :return: The auto_renew_period of this NodeConfigForCreateNodePoolInput.  # noqa: E501
        :rtype: int
        """
        return self._auto_renew_period

    @auto_renew_period.setter
    def auto_renew_period(self, auto_renew_period):
        """Sets the auto_renew_period of this NodeConfigForCreateNodePoolInput.


        :param auto_renew_period: The auto_renew_period of this NodeConfigForCreateNodePoolInput.  # noqa: E501
        :type: int
        """

        self._auto_renew_period = auto_renew_period

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


        :return: The data_volumes of this NodeConfigForCreateNodePoolInput.  # noqa: E501
        :rtype: list[DataVolumeForCreateNodePoolInput]
        """
        return self._data_volumes

    @data_volumes.setter
    def data_volumes(self, data_volumes):
        """Sets the data_volumes of this NodeConfigForCreateNodePoolInput.


        :param data_volumes: The data_volumes of this NodeConfigForCreateNodePoolInput.  # noqa: E501
        :type: list[DataVolumeForCreateNodePoolInput]
        """

        self._data_volumes = data_volumes

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


        :return: The deployment_set_group_number of this NodeConfigForCreateNodePoolInput.  # noqa: E501
        :rtype: int
        """
        return self._deployment_set_group_number

    @deployment_set_group_number.setter
    def deployment_set_group_number(self, deployment_set_group_number):
        """Sets the deployment_set_group_number of this NodeConfigForCreateNodePoolInput.


        :param deployment_set_group_number: The deployment_set_group_number of this NodeConfigForCreateNodePoolInput.  # noqa: E501
        :type: int
        """

        self._deployment_set_group_number = deployment_set_group_number

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


        :return: The deployment_set_id of this NodeConfigForCreateNodePoolInput.  # noqa: E501
        :rtype: str
        """
        return self._deployment_set_id

    @deployment_set_id.setter
    def deployment_set_id(self, deployment_set_id):
        """Sets the deployment_set_id of this NodeConfigForCreateNodePoolInput.


        :param deployment_set_id: The deployment_set_id of this NodeConfigForCreateNodePoolInput.  # noqa: E501
        :type: str
        """

        self._deployment_set_id = deployment_set_id

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


        :return: The hostname of this NodeConfigForCreateNodePoolInput.  # noqa: E501
        :rtype: str
        """
        return self._hostname

    @hostname.setter
    def hostname(self, hostname):
        """Sets the hostname of this NodeConfigForCreateNodePoolInput.


        :param hostname: The hostname of this NodeConfigForCreateNodePoolInput.  # noqa: E501
        :type: str
        """

        self._hostname = hostname

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


        :return: The hpc_cluster_ids of this NodeConfigForCreateNodePoolInput.  # noqa: E501
        :rtype: list[str]
        """
        return self._hpc_cluster_ids

    @hpc_cluster_ids.setter
    def hpc_cluster_ids(self, hpc_cluster_ids):
        """Sets the hpc_cluster_ids of this NodeConfigForCreateNodePoolInput.


        :param hpc_cluster_ids: The hpc_cluster_ids of this NodeConfigForCreateNodePoolInput.  # noqa: E501
        :type: list[str]
        """

        self._hpc_cluster_ids = hpc_cluster_ids

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


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

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


        :param image_id: The image_id of this NodeConfigForCreateNodePoolInput.  # noqa: E501
        :type: str
        """

        self._image_id = image_id

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


        :return: The initialize_script of this NodeConfigForCreateNodePoolInput.  # noqa: E501
        :rtype: str
        """
        return self._initialize_script

    @initialize_script.setter
    def initialize_script(self, initialize_script):
        """Sets the initialize_script of this NodeConfigForCreateNodePoolInput.


        :param initialize_script: The initialize_script of this NodeConfigForCreateNodePoolInput.  # noqa: E501
        :type: str
        """

        self._initialize_script = initialize_script

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


        :return: The instance_charge_type of this NodeConfigForCreateNodePoolInput.  # noqa: E501
        :rtype: str
        """
        return self._instance_charge_type

    @instance_charge_type.setter
    def instance_charge_type(self, instance_charge_type):
        """Sets the instance_charge_type of this NodeConfigForCreateNodePoolInput.


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

        self._instance_charge_type = instance_charge_type

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


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

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


        :param instance_name: The instance_name of this NodeConfigForCreateNodePoolInput.  # noqa: E501
        :type: str
        """

        self._instance_name = instance_name

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


        :return: The instance_type_ids of this NodeConfigForCreateNodePoolInput.  # noqa: E501
        :rtype: list[str]
        """
        return self._instance_type_ids

    @instance_type_ids.setter
    def instance_type_ids(self, instance_type_ids):
        """Sets the instance_type_ids of this NodeConfigForCreateNodePoolInput.


        :param instance_type_ids: The instance_type_ids of this NodeConfigForCreateNodePoolInput.  # noqa: E501
        :type: list[str]
        """

        self._instance_type_ids = instance_type_ids

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


        :return: The instances_distribution of this NodeConfigForCreateNodePoolInput.  # noqa: E501
        :rtype: InstancesDistributionForCreateNodePoolInput
        """
        return self._instances_distribution

    @instances_distribution.setter
    def instances_distribution(self, instances_distribution):
        """Sets the instances_distribution of this NodeConfigForCreateNodePoolInput.


        :param instances_distribution: The instances_distribution of this NodeConfigForCreateNodePoolInput.  # noqa: E501
        :type: InstancesDistributionForCreateNodePoolInput
        """

        self._instances_distribution = instances_distribution

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


        :return: The name_prefix of this NodeConfigForCreateNodePoolInput.  # noqa: E501
        :rtype: str
        """
        return self._name_prefix

    @name_prefix.setter
    def name_prefix(self, name_prefix):
        """Sets the name_prefix of this NodeConfigForCreateNodePoolInput.


        :param name_prefix: The name_prefix of this NodeConfigForCreateNodePoolInput.  # noqa: E501
        :type: str
        """

        self._name_prefix = name_prefix

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


        :return: The network_traffic_mode of this NodeConfigForCreateNodePoolInput.  # noqa: E501
        :rtype: str
        """
        return self._network_traffic_mode

    @network_traffic_mode.setter
    def network_traffic_mode(self, network_traffic_mode):
        """Sets the network_traffic_mode of this NodeConfigForCreateNodePoolInput.


        :param network_traffic_mode: The network_traffic_mode of this NodeConfigForCreateNodePoolInput.  # noqa: E501
        :type: str
        """

        self._network_traffic_mode = network_traffic_mode

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


        :return: The period of this NodeConfigForCreateNodePoolInput.  # noqa: E501
        :rtype: int
        """
        return self._period

    @period.setter
    def period(self, period):
        """Sets the period of this NodeConfigForCreateNodePoolInput.


        :param period: The period of this NodeConfigForCreateNodePoolInput.  # noqa: E501
        :type: int
        """

        self._period = period

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


        :return: The pre_script of this NodeConfigForCreateNodePoolInput.  # noqa: E501
        :rtype: str
        """
        return self._pre_script

    @pre_script.setter
    def pre_script(self, pre_script):
        """Sets the pre_script of this NodeConfigForCreateNodePoolInput.


        :param pre_script: The pre_script of this NodeConfigForCreateNodePoolInput.  # noqa: E501
        :type: str
        """

        self._pre_script = pre_script

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


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

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


        :param project_name: The project_name of this NodeConfigForCreateNodePoolInput.  # noqa: E501
        :type: str
        """

        self._project_name = project_name

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


        :return: The public_access_config of this NodeConfigForCreateNodePoolInput.  # noqa: E501
        :rtype: PublicAccessConfigForCreateNodePoolInput
        """
        return self._public_access_config

    @public_access_config.setter
    def public_access_config(self, public_access_config):
        """Sets the public_access_config of this NodeConfigForCreateNodePoolInput.


        :param public_access_config: The public_access_config of this NodeConfigForCreateNodePoolInput.  # noqa: E501
        :type: PublicAccessConfigForCreateNodePoolInput
        """

        self._public_access_config = public_access_config

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


        :return: The public_access_enabled of this NodeConfigForCreateNodePoolInput.  # noqa: E501
        :rtype: bool
        """
        return self._public_access_enabled

    @public_access_enabled.setter
    def public_access_enabled(self, public_access_enabled):
        """Sets the public_access_enabled of this NodeConfigForCreateNodePoolInput.


        :param public_access_enabled: The public_access_enabled of this NodeConfigForCreateNodePoolInput.  # noqa: E501
        :type: bool
        """

        self._public_access_enabled = public_access_enabled

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


        :return: The security of this NodeConfigForCreateNodePoolInput.  # noqa: E501
        :rtype: SecurityForCreateNodePoolInput
        """
        return self._security

    @security.setter
    def security(self, security):
        """Sets the security of this NodeConfigForCreateNodePoolInput.


        :param security: The security of this NodeConfigForCreateNodePoolInput.  # noqa: E501
        :type: SecurityForCreateNodePoolInput
        """

        self._security = security

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


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

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


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

        self._spot_strategy = spot_strategy

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


        :return: The subnet_ids of this NodeConfigForCreateNodePoolInput.  # noqa: E501
        :rtype: list[str]
        """
        return self._subnet_ids

    @subnet_ids.setter
    def subnet_ids(self, subnet_ids):
        """Sets the subnet_ids of this NodeConfigForCreateNodePoolInput.


        :param subnet_ids: The subnet_ids of this NodeConfigForCreateNodePoolInput.  # noqa: E501
        :type: list[str]
        """

        self._subnet_ids = subnet_ids

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


        :return: The system_volume of this NodeConfigForCreateNodePoolInput.  # noqa: E501
        :rtype: SystemVolumeForCreateNodePoolInput
        """
        return self._system_volume

    @system_volume.setter
    def system_volume(self, system_volume):
        """Sets the system_volume of this NodeConfigForCreateNodePoolInput.


        :param system_volume: The system_volume of this NodeConfigForCreateNodePoolInput.  # noqa: E501
        :type: SystemVolumeForCreateNodePoolInput
        """

        self._system_volume = system_volume

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


        :return: The tags of this NodeConfigForCreateNodePoolInput.  # noqa: E501
        :rtype: list[TagForCreateNodePoolInput]
        """
        return self._tags

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


        :param tags: The tags of this NodeConfigForCreateNodePoolInput.  # noqa: E501
        :type: list[TagForCreateNodePoolInput]
        """

        self._tags = tags

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

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