File: //lib/mysqlsh/lib/python3.8/site-packages/oci/apm_traces/models/auto_activate_toggle_status.py
# coding: utf-8
# Copyright (c) 2016, 2025, 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: 20200630
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 AutoActivateToggleStatus(object):
"""
Response of a auto-activate toggle operation.
"""
#: A constant which can be used with the status property of a AutoActivateToggleStatus.
#: This constant has a value of "SUCCESS"
STATUS_SUCCESS = "SUCCESS"
#: A constant which can be used with the data_key property of a AutoActivateToggleStatus.
#: This constant has a value of "PRIVATE_DATA_KEY"
DATA_KEY_PRIVATE_DATA_KEY = "PRIVATE_DATA_KEY"
#: A constant which can be used with the data_key property of a AutoActivateToggleStatus.
#: This constant has a value of "PUBLIC_DATA_KEY"
DATA_KEY_PUBLIC_DATA_KEY = "PUBLIC_DATA_KEY"
def __init__(self, **kwargs):
"""
Initializes a new AutoActivateToggleStatus 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 AutoActivateToggleStatus.
Allowed values for this property are: "SUCCESS", 'UNKNOWN_ENUM_VALUE'.
Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
:type status: str
:param state:
The value to assign to the state property of this AutoActivateToggleStatus.
:type state: str
:param data_key:
The value to assign to the data_key property of this AutoActivateToggleStatus.
Allowed values for this property are: "PRIVATE_DATA_KEY", "PUBLIC_DATA_KEY", 'UNKNOWN_ENUM_VALUE'.
Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
:type data_key: str
"""
self.swagger_types = {
'status': 'str',
'state': 'str',
'data_key': 'str'
}
self.attribute_map = {
'status': 'status',
'state': 'state',
'data_key': 'dataKey'
}
self._status = None
self._state = None
self._data_key = None
@property
def status(self):
"""
**[Required]** Gets the status of this AutoActivateToggleStatus.
Status of this operation.
Allowed values for this property are: "SUCCESS", 'UNKNOWN_ENUM_VALUE'.
Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
:return: The status of this AutoActivateToggleStatus.
:rtype: str
"""
return self._status
@status.setter
def status(self, status):
"""
Sets the status of this AutoActivateToggleStatus.
Status of this operation.
:param status: The status of this AutoActivateToggleStatus.
:type: str
"""
allowed_values = ["SUCCESS"]
if not value_allowed_none_or_none_sentinel(status, allowed_values):
status = 'UNKNOWN_ENUM_VALUE'
self._status = status
@property
def state(self):
"""
**[Required]** Gets the state of this AutoActivateToggleStatus.
State of autoactivation in this APM Domain. If \"ON\" auto-activate is set to true, if \"OFF\" auto-activate is set to false.
:return: The state of this AutoActivateToggleStatus.
:rtype: str
"""
return self._state
@state.setter
def state(self, state):
"""
Sets the state of this AutoActivateToggleStatus.
State of autoactivation in this APM Domain. If \"ON\" auto-activate is set to true, if \"OFF\" auto-activate is set to false.
:param state: The state of this AutoActivateToggleStatus.
:type: str
"""
self._state = state
@property
def data_key(self):
"""
**[Required]** Gets the data_key of this AutoActivateToggleStatus.
Data key type for which auto-activate needs needs to be turned on or off.
Allowed values for this property are: "PRIVATE_DATA_KEY", "PUBLIC_DATA_KEY", 'UNKNOWN_ENUM_VALUE'.
Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
:return: The data_key of this AutoActivateToggleStatus.
:rtype: str
"""
return self._data_key
@data_key.setter
def data_key(self, data_key):
"""
Sets the data_key of this AutoActivateToggleStatus.
Data key type for which auto-activate needs needs to be turned on or off.
:param data_key: The data_key of this AutoActivateToggleStatus.
:type: str
"""
allowed_values = ["PRIVATE_DATA_KEY", "PUBLIC_DATA_KEY"]
if not value_allowed_none_or_none_sentinel(data_key, allowed_values):
data_key = 'UNKNOWN_ENUM_VALUE'
self._data_key = data_key
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