# coding: utf-8

"""
    AssistedInstall

    Assisted installation  # noqa: E501

    OpenAPI spec version: 1.0.0
    
    Generated by: https://github.com/swagger-api/swagger-codegen.git
"""


import pprint
import re  # noqa: F401

import six


class OpenshiftVersion(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 = {
        'display_name': 'str',
        'support_level': 'str',
        'default': 'bool',
        'cpu_architectures': 'list[str]'
    }

    attribute_map = {
        'display_name': 'display_name',
        'support_level': 'support_level',
        'default': 'default',
        'cpu_architectures': 'cpu_architectures'
    }

    def __init__(self, display_name=None, support_level=None, default=None, cpu_architectures=None):  # noqa: E501
        """OpenshiftVersion - a model defined in Swagger"""  # noqa: E501

        self._display_name = None
        self._support_level = None
        self._default = None
        self._cpu_architectures = None
        self.discriminator = None

        self.display_name = display_name
        self.support_level = support_level
        if default is not None:
            self.default = default
        self.cpu_architectures = cpu_architectures

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

        Name of the version to be presented to the user.  # noqa: E501

        :return: The display_name of this OpenshiftVersion.  # noqa: E501
        :rtype: str
        """
        return self._display_name

    @display_name.setter
    def display_name(self, display_name):
        """Sets the display_name of this OpenshiftVersion.

        Name of the version to be presented to the user.  # noqa: E501

        :param display_name: The display_name of this OpenshiftVersion.  # noqa: E501
        :type: str
        """
        if display_name is None:
            raise ValueError("Invalid value for `display_name`, must not be `None`")  # noqa: E501

        self._display_name = display_name

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

        Level of support of the version.  # noqa: E501

        :return: The support_level of this OpenshiftVersion.  # noqa: E501
        :rtype: str
        """
        return self._support_level

    @support_level.setter
    def support_level(self, support_level):
        """Sets the support_level of this OpenshiftVersion.

        Level of support of the version.  # noqa: E501

        :param support_level: The support_level of this OpenshiftVersion.  # noqa: E501
        :type: str
        """
        if support_level is None:
            raise ValueError("Invalid value for `support_level`, must not be `None`")  # noqa: E501
        allowed_values = ["beta", "production", "maintenance", "end-of-life"]  # noqa: E501
        if support_level not in allowed_values:
            raise ValueError(
                "Invalid value for `support_level` ({0}), must be one of {1}"  # noqa: E501
                .format(support_level, allowed_values)
            )

        self._support_level = support_level

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

        Indication that the version is the recommended one.  # noqa: E501

        :return: The default of this OpenshiftVersion.  # noqa: E501
        :rtype: bool
        """
        return self._default

    @default.setter
    def default(self, default):
        """Sets the default of this OpenshiftVersion.

        Indication that the version is the recommended one.  # noqa: E501

        :param default: The default of this OpenshiftVersion.  # noqa: E501
        :type: bool
        """

        self._default = default

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

        Available CPU architectures.  # noqa: E501

        :return: The cpu_architectures of this OpenshiftVersion.  # noqa: E501
        :rtype: list[str]
        """
        return self._cpu_architectures

    @cpu_architectures.setter
    def cpu_architectures(self, cpu_architectures):
        """Sets the cpu_architectures of this OpenshiftVersion.

        Available CPU architectures.  # noqa: E501

        :param cpu_architectures: The cpu_architectures of this OpenshiftVersion.  # noqa: E501
        :type: list[str]
        """
        if cpu_architectures is None:
            raise ValueError("Invalid value for `cpu_architectures`, must not be `None`")  # noqa: E501

        self._cpu_architectures = cpu_architectures

    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(OpenshiftVersion, 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, OpenshiftVersion):
            return False

        return self.__dict__ == other.__dict__

    def __ne__(self, other):
        """Returns true if both objects are not equal"""
        return not self == other
