# coding: utf-8

"""
    KubeVirt API

    This is KubeVirt API an add-on for Kubernetes.  # noqa: E501

    OpenAPI spec version: 1.0.0
    Contact: kubevirt-dev@googlegroups.com
    Generated by: https://github.com/swagger-api/swagger-codegen.git
"""


import pprint
import re  # noqa: F401

import six

from kubevirt.configuration import Configuration


class V1VirtualMachineInstanceReplicaSetStatus(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 = {
        'conditions': 'list[V1VirtualMachineInstanceReplicaSetCondition]',
        'label_selector': 'str',
        'ready_replicas': 'int',
        'replicas': 'int'
    }

    attribute_map = {
        'conditions': 'conditions',
        'label_selector': 'labelSelector',
        'ready_replicas': 'readyReplicas',
        'replicas': 'replicas'
    }

    def __init__(self, conditions=None, label_selector=None, ready_replicas=None, replicas=None, _configuration=None):  # noqa: E501
        """V1VirtualMachineInstanceReplicaSetStatus - a model defined in Swagger"""  # noqa: E501
        if _configuration is None:
            _configuration = Configuration()
        self._configuration = _configuration

        self._conditions = None
        self._label_selector = None
        self._ready_replicas = None
        self._replicas = None
        self.discriminator = None

        if conditions is not None:
            self.conditions = conditions
        if label_selector is not None:
            self.label_selector = label_selector
        if ready_replicas is not None:
            self.ready_replicas = ready_replicas
        if replicas is not None:
            self.replicas = replicas

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


        :return: The conditions of this V1VirtualMachineInstanceReplicaSetStatus.  # noqa: E501
        :rtype: list[V1VirtualMachineInstanceReplicaSetCondition]
        """
        return self._conditions

    @conditions.setter
    def conditions(self, conditions):
        """Sets the conditions of this V1VirtualMachineInstanceReplicaSetStatus.


        :param conditions: The conditions of this V1VirtualMachineInstanceReplicaSetStatus.  # noqa: E501
        :type: list[V1VirtualMachineInstanceReplicaSetCondition]
        """

        self._conditions = conditions

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

        Canonical form of the label selector for HPA which consumes it through the scale subresource.  # noqa: E501

        :return: The label_selector of this V1VirtualMachineInstanceReplicaSetStatus.  # noqa: E501
        :rtype: str
        """
        return self._label_selector

    @label_selector.setter
    def label_selector(self, label_selector):
        """Sets the label_selector of this V1VirtualMachineInstanceReplicaSetStatus.

        Canonical form of the label selector for HPA which consumes it through the scale subresource.  # noqa: E501

        :param label_selector: The label_selector of this V1VirtualMachineInstanceReplicaSetStatus.  # noqa: E501
        :type: str
        """

        self._label_selector = label_selector

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

        The number of ready replicas for this replica set.  # noqa: E501

        :return: The ready_replicas of this V1VirtualMachineInstanceReplicaSetStatus.  # noqa: E501
        :rtype: int
        """
        return self._ready_replicas

    @ready_replicas.setter
    def ready_replicas(self, ready_replicas):
        """Sets the ready_replicas of this V1VirtualMachineInstanceReplicaSetStatus.

        The number of ready replicas for this replica set.  # noqa: E501

        :param ready_replicas: The ready_replicas of this V1VirtualMachineInstanceReplicaSetStatus.  # noqa: E501
        :type: int
        """

        self._ready_replicas = ready_replicas

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

        Total number of non-terminated pods targeted by this deployment (their labels match the selector).  # noqa: E501

        :return: The replicas of this V1VirtualMachineInstanceReplicaSetStatus.  # noqa: E501
        :rtype: int
        """
        return self._replicas

    @replicas.setter
    def replicas(self, replicas):
        """Sets the replicas of this V1VirtualMachineInstanceReplicaSetStatus.

        Total number of non-terminated pods targeted by this deployment (their labels match the selector).  # noqa: E501

        :param replicas: The replicas of this V1VirtualMachineInstanceReplicaSetStatus.  # noqa: E501
        :type: int
        """

        self._replicas = replicas

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

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