# coding: utf-8

"""
    Aron API

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

    The version of the OpenAPI document: 1.0.0
    Generated by: https://openapi-generator.tech
"""


import inspect
import pprint
import re  # noqa: F401
import six

from openapi_client.configuration import Configuration


class ModelKernelClusterSelectPolicy(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 = {
        'availability_zone': 'str',
        'kernel_cluster_id': 'int',
        'node_selector_ids': 'list[int]'
    }

    attribute_map = {
        'availability_zone': 'availability_zone',
        'kernel_cluster_id': 'kernel_cluster_id',
        'node_selector_ids': 'node_selector_ids'
    }

    def __init__(self, availability_zone=None, kernel_cluster_id=None, node_selector_ids=None, local_vars_configuration=None):  # noqa: E501
        """ModelKernelClusterSelectPolicy - a model defined in OpenAPI"""  # noqa: E501
        if local_vars_configuration is None:
            local_vars_configuration = Configuration.get_default_copy()
        self.local_vars_configuration = local_vars_configuration

        self._availability_zone = None
        self._kernel_cluster_id = None
        self._node_selector_ids = None
        self.discriminator = None

        self.availability_zone = availability_zone
        if kernel_cluster_id is not None:
            self.kernel_cluster_id = kernel_cluster_id
        if node_selector_ids is not None:
            self.node_selector_ids = node_selector_ids

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


        :return: The availability_zone of this ModelKernelClusterSelectPolicy.  # noqa: E501
        :rtype: str
        """
        return self._availability_zone

    @availability_zone.setter
    def availability_zone(self, availability_zone):
        """Sets the availability_zone of this ModelKernelClusterSelectPolicy.


        :param availability_zone: The availability_zone of this ModelKernelClusterSelectPolicy.  # noqa: E501
        :type availability_zone: str
        """

        self._availability_zone = availability_zone

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


        :return: The kernel_cluster_id of this ModelKernelClusterSelectPolicy.  # noqa: E501
        :rtype: int
        """
        return self._kernel_cluster_id

    @kernel_cluster_id.setter
    def kernel_cluster_id(self, kernel_cluster_id):
        """Sets the kernel_cluster_id of this ModelKernelClusterSelectPolicy.


        :param kernel_cluster_id: The kernel_cluster_id of this ModelKernelClusterSelectPolicy.  # noqa: E501
        :type kernel_cluster_id: int
        """

        self._kernel_cluster_id = kernel_cluster_id

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


        :return: The node_selector_ids of this ModelKernelClusterSelectPolicy.  # noqa: E501
        :rtype: list[int]
        """
        return self._node_selector_ids

    @node_selector_ids.setter
    def node_selector_ids(self, node_selector_ids):
        """Sets the node_selector_ids of this ModelKernelClusterSelectPolicy.


        :param node_selector_ids: The node_selector_ids of this ModelKernelClusterSelectPolicy.  # noqa: E501
        :type node_selector_ids: list[int]
        """

        self._node_selector_ids = node_selector_ids

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

        def convert(x):
            if hasattr(x, "to_dict"):
                args = inspect.getargspec(x.to_dict).args
                if len(args) == 1:
                    return x.to_dict()
                else:
                    return x.to_dict(serialize)
            else:
                return x

        for attr, _ in six.iteritems(self.openapi_types):
            value = getattr(self, attr)
            attr = self.attribute_map.get(attr, attr) if serialize else attr
            if isinstance(value, list):
                result[attr] = list(map(
                    lambda x: convert(x),
                    value
                ))
            elif isinstance(value, dict):
                result[attr] = dict(map(
                    lambda item: (item[0], convert(item[1])),
                    value.items()
                ))
            else:
                result[attr] = convert(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, ModelKernelClusterSelectPolicy):
            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, ModelKernelClusterSelectPolicy):
            return True

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