# coding: utf-8
# Copyright (c) 2016, 2024, 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: 20220125

from .dr_plan_execution_options import DrPlanExecutionOptions
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 StopDrillExecutionOptions(DrPlanExecutionOptions):
    """
    Options for stop drill execution.
    """

    def __init__(self, **kwargs):
        """
        Initializes a new StopDrillExecutionOptions object with values from keyword arguments. The default value of the :py:attr:`~oci.disaster_recovery.models.StopDrillExecutionOptions.plan_execution_type` attribute
        of this class is ``STOP_DRILL`` and it should not be changed.
        The following keyword arguments are supported (corresponding to the getters/setters of this class):

        :param plan_execution_type:
            The value to assign to the plan_execution_type property of this StopDrillExecutionOptions.
            Allowed values for this property are: "SWITCHOVER", "SWITCHOVER_PRECHECK", "FAILOVER", "FAILOVER_PRECHECK", "START_DRILL_PRECHECK", "START_DRILL", "STOP_DRILL_PRECHECK", "STOP_DRILL"
        :type plan_execution_type: str

        :param are_prechecks_enabled:
            The value to assign to the are_prechecks_enabled property of this StopDrillExecutionOptions.
        :type are_prechecks_enabled: bool

        :param are_warnings_ignored:
            The value to assign to the are_warnings_ignored property of this StopDrillExecutionOptions.
        :type are_warnings_ignored: bool

        """
        self.swagger_types = {
            'plan_execution_type': 'str',
            'are_prechecks_enabled': 'bool',
            'are_warnings_ignored': 'bool'
        }

        self.attribute_map = {
            'plan_execution_type': 'planExecutionType',
            'are_prechecks_enabled': 'arePrechecksEnabled',
            'are_warnings_ignored': 'areWarningsIgnored'
        }

        self._plan_execution_type = None
        self._are_prechecks_enabled = None
        self._are_warnings_ignored = None
        self._plan_execution_type = 'STOP_DRILL'

    @property
    def are_prechecks_enabled(self):
        """
        Gets the are_prechecks_enabled of this StopDrillExecutionOptions.
        A flag indicating whether a precheck should be executed before the plan execution.

        Example: `true`


        :return: The are_prechecks_enabled of this StopDrillExecutionOptions.
        :rtype: bool
        """
        return self._are_prechecks_enabled

    @are_prechecks_enabled.setter
    def are_prechecks_enabled(self, are_prechecks_enabled):
        """
        Sets the are_prechecks_enabled of this StopDrillExecutionOptions.
        A flag indicating whether a precheck should be executed before the plan execution.

        Example: `true`


        :param are_prechecks_enabled: The are_prechecks_enabled of this StopDrillExecutionOptions.
        :type: bool
        """
        self._are_prechecks_enabled = are_prechecks_enabled

    @property
    def are_warnings_ignored(self):
        """
        Gets the are_warnings_ignored of this StopDrillExecutionOptions.
        A flag indicating whether warnings should be ignored during the plan execution.

        Example: `false`


        :return: The are_warnings_ignored of this StopDrillExecutionOptions.
        :rtype: bool
        """
        return self._are_warnings_ignored

    @are_warnings_ignored.setter
    def are_warnings_ignored(self, are_warnings_ignored):
        """
        Sets the are_warnings_ignored of this StopDrillExecutionOptions.
        A flag indicating whether warnings should be ignored during the plan execution.

        Example: `false`


        :param are_warnings_ignored: The are_warnings_ignored of this StopDrillExecutionOptions.
        :type: bool
        """
        self._are_warnings_ignored = are_warnings_ignored

    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
