# coding: utf-8
# Copyright (c) 2016, 2026, Oracle and/or its affiliates.  All rights reserved.
# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.

# NOTE: This class is auto generated by OracleSDKGenerator. DO NOT EDIT. API Version: 20160918


from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel  # noqa: F401
from oci.decorators import init_model_state_from_kwargs


@init_model_state_from_kwargs
class WindowTypeDescription(object):
    """
    A key-value pair where the key will hold the window type and value will be a list of window details from all the active execution windows of that window type.
    """

    #: A constant which can be used with the window_type property of a WindowTypeDescription.
    #: This constant has a value of "PLANNED"
    WINDOW_TYPE_PLANNED = "PLANNED"

    #: A constant which can be used with the window_type property of a WindowTypeDescription.
    #: This constant has a value of "UNPLANNED"
    WINDOW_TYPE_UNPLANNED = "UNPLANNED"

    def __init__(self, **kwargs):
        """
        Initializes a new WindowTypeDescription object with values from keyword arguments.
        The following keyword arguments are supported (corresponding to the getters/setters of this class):

        :param window_type:
            The value to assign to the window_type property of this WindowTypeDescription.
            Allowed values for this property are: "PLANNED", "UNPLANNED", 'UNKNOWN_ENUM_VALUE'.
            Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
        :type window_type: str

        :param messages:
            The value to assign to the messages property of this WindowTypeDescription.
        :type messages: list[str]

        """
        self.swagger_types = {
            'window_type': 'str',
            'messages': 'list[str]'
        }
        self.attribute_map = {
            'window_type': 'windowType',
            'messages': 'messages'
        }
        self._window_type = None
        self._messages = None

    @property
    def window_type(self):
        """
        Gets the window_type of this WindowTypeDescription.
        The execution window is of PLANNED or UNPLANNED type.

        Allowed values for this property are: "PLANNED", "UNPLANNED", 'UNKNOWN_ENUM_VALUE'.
        Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.


        :return: The window_type of this WindowTypeDescription.
        :rtype: str
        """
        return self._window_type

    @window_type.setter
    def window_type(self, window_type):
        """
        Sets the window_type of this WindowTypeDescription.
        The execution window is of PLANNED or UNPLANNED type.


        :param window_type: The window_type of this WindowTypeDescription.
        :type: str
        """
        allowed_values = ["PLANNED", "UNPLANNED"]
        if not value_allowed_none_or_none_sentinel(window_type, allowed_values):
            window_type = 'UNKNOWN_ENUM_VALUE'
        self._window_type = window_type

    @property
    def messages(self):
        """
        Gets the messages of this WindowTypeDescription.
        A list of window detail messages from all the active execution windows based on the window type.


        :return: The messages of this WindowTypeDescription.
        :rtype: list[str]
        """
        return self._messages

    @messages.setter
    def messages(self, messages):
        """
        Sets the messages of this WindowTypeDescription.
        A list of window detail messages from all the active execution windows based on the window type.


        :param messages: The messages of this WindowTypeDescription.
        :type: list[str]
        """
        self._messages = messages

    def __repr__(self):
        return formatted_flat_dict(self)

    def __eq__(self, other):
        if other is None:
            return False

        return self.__dict__ == other.__dict__

    def __ne__(self, other):
        return not self == other
