# coding: utf-8

from __future__ import absolute_import
from swagger_server.models.eav_data_attribute_option_label_interface import EavDataAttributeOptionLabelInterface
from .base_model_ import Model
from datetime import date, datetime
from typing import List, Dict
from ..util import deserialize_model


class EavDataAttributeOptionInterface(Model):
    """
    NOTE: This class is auto generated by the swagger code generator program.
    Do not edit the class manually.
    """
    def __init__(self, label: str=None, value: str=None, sort_order: int=None, is_default: bool=None, store_labels: List[EavDataAttributeOptionLabelInterface]=None):
        """
        EavDataAttributeOptionInterface - a model defined in Swagger

        :param label: The label of this EavDataAttributeOptionInterface.
        :type label: str
        :param value: The value of this EavDataAttributeOptionInterface.
        :type value: str
        :param sort_order: The sort_order of this EavDataAttributeOptionInterface.
        :type sort_order: int
        :param is_default: The is_default of this EavDataAttributeOptionInterface.
        :type is_default: bool
        :param store_labels: The store_labels of this EavDataAttributeOptionInterface.
        :type store_labels: List[EavDataAttributeOptionLabelInterface]
        """
        self.swagger_types = {
            'label': str,
            'value': str,
            'sort_order': int,
            'is_default': bool,
            'store_labels': List[EavDataAttributeOptionLabelInterface]
        }

        self.attribute_map = {
            'label': 'label',
            'value': 'value',
            'sort_order': 'sort_order',
            'is_default': 'is_default',
            'store_labels': 'store_labels'
        }

        self._label = label
        self._value = value
        self._sort_order = sort_order
        self._is_default = is_default
        self._store_labels = store_labels

    @classmethod
    def from_dict(cls, dikt) -> 'EavDataAttributeOptionInterface':
        """
        Returns the dict as a model

        :param dikt: A dict.
        :type: dict
        :return: The eav-data-attribute-option-interface of this EavDataAttributeOptionInterface.
        :rtype: EavDataAttributeOptionInterface
        """
        return deserialize_model(dikt, cls)

    @property
    def label(self) -> str:
        """
        Gets the label of this EavDataAttributeOptionInterface.
        Option label

        :return: The label of this EavDataAttributeOptionInterface.
        :rtype: str
        """
        return self._label

    @label.setter
    def label(self, label: str):
        """
        Sets the label of this EavDataAttributeOptionInterface.
        Option label

        :param label: The label of this EavDataAttributeOptionInterface.
        :type label: str
        """
        if label is None:
            raise ValueError("Invalid value for `label`, must not be `None`")

        self._label = label

    @property
    def value(self) -> str:
        """
        Gets the value of this EavDataAttributeOptionInterface.
        Option value

        :return: The value of this EavDataAttributeOptionInterface.
        :rtype: str
        """
        return self._value

    @value.setter
    def value(self, value: str):
        """
        Sets the value of this EavDataAttributeOptionInterface.
        Option value

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

        self._value = value

    @property
    def sort_order(self) -> int:
        """
        Gets the sort_order of this EavDataAttributeOptionInterface.
        Option order

        :return: The sort_order of this EavDataAttributeOptionInterface.
        :rtype: int
        """
        return self._sort_order

    @sort_order.setter
    def sort_order(self, sort_order: int):
        """
        Sets the sort_order of this EavDataAttributeOptionInterface.
        Option order

        :param sort_order: The sort_order of this EavDataAttributeOptionInterface.
        :type sort_order: int
        """

        self._sort_order = sort_order

    @property
    def is_default(self) -> bool:
        """
        Gets the is_default of this EavDataAttributeOptionInterface.
        Default

        :return: The is_default of this EavDataAttributeOptionInterface.
        :rtype: bool
        """
        return self._is_default

    @is_default.setter
    def is_default(self, is_default: bool):
        """
        Sets the is_default of this EavDataAttributeOptionInterface.
        Default

        :param is_default: The is_default of this EavDataAttributeOptionInterface.
        :type is_default: bool
        """

        self._is_default = is_default

    @property
    def store_labels(self) -> List[EavDataAttributeOptionLabelInterface]:
        """
        Gets the store_labels of this EavDataAttributeOptionInterface.
        Option label for store scopes

        :return: The store_labels of this EavDataAttributeOptionInterface.
        :rtype: List[EavDataAttributeOptionLabelInterface]
        """
        return self._store_labels

    @store_labels.setter
    def store_labels(self, store_labels: List[EavDataAttributeOptionLabelInterface]):
        """
        Sets the store_labels of this EavDataAttributeOptionInterface.
        Option label for store scopes

        :param store_labels: The store_labels of this EavDataAttributeOptionInterface.
        :type store_labels: List[EavDataAttributeOptionLabelInterface]
        """

        self._store_labels = store_labels

