1# coding: utf-8
2# Copyright (c) 2016, 2021, Oracle and/or its affiliates.  All rights reserved.
3# 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.
4
5from .database_tools_key_store_content import DatabaseToolsKeyStoreContent
6from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel  # noqa: F401
7from oci.decorators import init_model_state_from_kwargs
8
9
10@init_model_state_from_kwargs
11class DatabaseToolsKeyStoreContentSecretId(DatabaseToolsKeyStoreContent):
12    """
13    The key store content.
14    """
15
16    def __init__(self, **kwargs):
17        """
18        Initializes a new DatabaseToolsKeyStoreContentSecretId object with values from keyword arguments. The default value of the :py:attr:`~oci.database_tools.models.DatabaseToolsKeyStoreContentSecretId.value_type` attribute
19        of this class is ``SECRETID`` and it should not be changed.
20        The following keyword arguments are supported (corresponding to the getters/setters of this class):
21
22        :param value_type:
23            The value to assign to the value_type property of this DatabaseToolsKeyStoreContentSecretId.
24            Allowed values for this property are: "SECRETID"
25        :type value_type: str
26
27        :param secret_id:
28            The value to assign to the secret_id property of this DatabaseToolsKeyStoreContentSecretId.
29        :type secret_id: str
30
31        """
32        self.swagger_types = {
33            'value_type': 'str',
34            'secret_id': 'str'
35        }
36
37        self.attribute_map = {
38            'value_type': 'valueType',
39            'secret_id': 'secretId'
40        }
41
42        self._value_type = None
43        self._secret_id = None
44        self._value_type = 'SECRETID'
45
46    @property
47    def secret_id(self):
48        """
49        Gets the secret_id of this DatabaseToolsKeyStoreContentSecretId.
50        The `OCID`__ of the secret containing the key store.
51
52        __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
53
54
55        :return: The secret_id of this DatabaseToolsKeyStoreContentSecretId.
56        :rtype: str
57        """
58        return self._secret_id
59
60    @secret_id.setter
61    def secret_id(self, secret_id):
62        """
63        Sets the secret_id of this DatabaseToolsKeyStoreContentSecretId.
64        The `OCID`__ of the secret containing the key store.
65
66        __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
67
68
69        :param secret_id: The secret_id of this DatabaseToolsKeyStoreContentSecretId.
70        :type: str
71        """
72        self._secret_id = secret_id
73
74    def __repr__(self):
75        return formatted_flat_dict(self)
76
77    def __eq__(self, other):
78        if other is None:
79            return False
80
81        return self.__dict__ == other.__dict__
82
83    def __ne__(self, other):
84        return not self == other
85