# 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: 20230222


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 ApexFaIntegrationPrerequisitesCheck(object):
    """
    The results of a prerequisites check for APEX FA integration
    """

    #: A constant which can be used with the status property of a ApexFaIntegrationPrerequisitesCheck.
    #: This constant has a value of "PASS"
    STATUS_PASS = "PASS"

    #: A constant which can be used with the status property of a ApexFaIntegrationPrerequisitesCheck.
    #: This constant has a value of "FAIL"
    STATUS_FAIL = "FAIL"

    #: A constant which can be used with the status property of a ApexFaIntegrationPrerequisitesCheck.
    #: This constant has a value of "ERROR"
    STATUS_ERROR = "ERROR"

    #: A constant which can be used with the status property of a ApexFaIntegrationPrerequisitesCheck.
    #: This constant has a value of "UNKNOWN"
    STATUS_UNKNOWN = "UNKNOWN"

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

        :param status:
            The value to assign to the status property of this ApexFaIntegrationPrerequisitesCheck.
            Allowed values for this property are: "PASS", "FAIL", "ERROR", "UNKNOWN", 'UNKNOWN_ENUM_VALUE'.
            Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
        :type status: str

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

        """
        self.swagger_types = {
            'status': 'str',
            'status_details': 'list[str]'
        }
        self.attribute_map = {
            'status': 'status',
            'status_details': 'statusDetails'
        }
        self._status = None
        self._status_details = None

    @property
    def status(self):
        """
        Gets the status of this ApexFaIntegrationPrerequisitesCheck.
        Status indicating the outcome of the prerequisites check.

        Allowed values for this property are: "PASS", "FAIL", "ERROR", "UNKNOWN", 'UNKNOWN_ENUM_VALUE'.
        Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.


        :return: The status of this ApexFaIntegrationPrerequisitesCheck.
        :rtype: str
        """
        return self._status

    @status.setter
    def status(self, status):
        """
        Sets the status of this ApexFaIntegrationPrerequisitesCheck.
        Status indicating the outcome of the prerequisites check.


        :param status: The status of this ApexFaIntegrationPrerequisitesCheck.
        :type: str
        """
        allowed_values = ["PASS", "FAIL", "ERROR", "UNKNOWN"]
        if not value_allowed_none_or_none_sentinel(status, allowed_values):
            status = 'UNKNOWN_ENUM_VALUE'
        self._status = status

    @property
    def status_details(self):
        """
        Gets the status_details of this ApexFaIntegrationPrerequisitesCheck.
        Messages describing the prerequisites check outcome. Messages can provide actionable information when the status indicates a failure.


        :return: The status_details of this ApexFaIntegrationPrerequisitesCheck.
        :rtype: list[str]
        """
        return self._status_details

    @status_details.setter
    def status_details(self, status_details):
        """
        Sets the status_details of this ApexFaIntegrationPrerequisitesCheck.
        Messages describing the prerequisites check outcome. Messages can provide actionable information when the status indicates a failure.


        :param status_details: The status_details of this ApexFaIntegrationPrerequisitesCheck.
        :type: list[str]
        """
        self._status_details = status_details

    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
