# 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 CreateDatabaseForStandbyDbSystemDetails(object):
    """
    Details for creating a database for a standby db system with dataguard.

    **Warning:** Oracle recommends that you avoid using any confidential information when you supply string values using the API.
    """

    #: A constant which can be used with the protection_mode property of a CreateDatabaseForStandbyDbSystemDetails.
    #: This constant has a value of "MAXIMUM_AVAILABILITY"
    PROTECTION_MODE_MAXIMUM_AVAILABILITY = "MAXIMUM_AVAILABILITY"

    #: A constant which can be used with the protection_mode property of a CreateDatabaseForStandbyDbSystemDetails.
    #: This constant has a value of "MAXIMUM_PERFORMANCE"
    PROTECTION_MODE_MAXIMUM_PERFORMANCE = "MAXIMUM_PERFORMANCE"

    #: A constant which can be used with the protection_mode property of a CreateDatabaseForStandbyDbSystemDetails.
    #: This constant has a value of "MAXIMUM_PROTECTION"
    PROTECTION_MODE_MAXIMUM_PROTECTION = "MAXIMUM_PROTECTION"

    #: A constant which can be used with the transport_type property of a CreateDatabaseForStandbyDbSystemDetails.
    #: This constant has a value of "SYNC"
    TRANSPORT_TYPE_SYNC = "SYNC"

    #: A constant which can be used with the transport_type property of a CreateDatabaseForStandbyDbSystemDetails.
    #: This constant has a value of "ASYNC"
    TRANSPORT_TYPE_ASYNC = "ASYNC"

    #: A constant which can be used with the transport_type property of a CreateDatabaseForStandbyDbSystemDetails.
    #: This constant has a value of "FASTSYNC"
    TRANSPORT_TYPE_FASTSYNC = "FASTSYNC"

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

        :param admin_password:
            The value to assign to the admin_password property of this CreateDatabaseForStandbyDbSystemDetails.
        :type admin_password: str

        :param tde_wallet_password:
            The value to assign to the tde_wallet_password property of this CreateDatabaseForStandbyDbSystemDetails.
        :type tde_wallet_password: str

        :param database_software_image_id:
            The value to assign to the database_software_image_id property of this CreateDatabaseForStandbyDbSystemDetails.
        :type database_software_image_id: str

        :param is_active_data_guard_enabled:
            The value to assign to the is_active_data_guard_enabled property of this CreateDatabaseForStandbyDbSystemDetails.
        :type is_active_data_guard_enabled: bool

        :param db_domain:
            The value to assign to the db_domain property of this CreateDatabaseForStandbyDbSystemDetails.
        :type db_domain: str

        :param sid_prefix:
            The value to assign to the sid_prefix property of this CreateDatabaseForStandbyDbSystemDetails.
        :type sid_prefix: str

        :param db_unique_name:
            The value to assign to the db_unique_name property of this CreateDatabaseForStandbyDbSystemDetails.
        :type db_unique_name: str

        :param protection_mode:
            The value to assign to the protection_mode property of this CreateDatabaseForStandbyDbSystemDetails.
            Allowed values for this property are: "MAXIMUM_AVAILABILITY", "MAXIMUM_PERFORMANCE", "MAXIMUM_PROTECTION"
        :type protection_mode: str

        :param source_encryption_key_location_details:
            The value to assign to the source_encryption_key_location_details property of this CreateDatabaseForStandbyDbSystemDetails.
        :type source_encryption_key_location_details: oci.database.models.EncryptionKeyLocationDetails

        :param transport_type:
            The value to assign to the transport_type property of this CreateDatabaseForStandbyDbSystemDetails.
            Allowed values for this property are: "SYNC", "ASYNC", "FASTSYNC"
        :type transport_type: str

        :param db_backup_config:
            The value to assign to the db_backup_config property of this CreateDatabaseForStandbyDbSystemDetails.
        :type db_backup_config: oci.database.models.DbBackupConfig

        :param database_freeform_tags:
            The value to assign to the database_freeform_tags property of this CreateDatabaseForStandbyDbSystemDetails.
        :type database_freeform_tags: dict(str, str)

        :param database_defined_tags:
            The value to assign to the database_defined_tags property of this CreateDatabaseForStandbyDbSystemDetails.
        :type database_defined_tags: dict(str, dict(str, object))

        """
        self.swagger_types = {
            'admin_password': 'str',
            'tde_wallet_password': 'str',
            'database_software_image_id': 'str',
            'is_active_data_guard_enabled': 'bool',
            'db_domain': 'str',
            'sid_prefix': 'str',
            'db_unique_name': 'str',
            'protection_mode': 'str',
            'source_encryption_key_location_details': 'EncryptionKeyLocationDetails',
            'transport_type': 'str',
            'db_backup_config': 'DbBackupConfig',
            'database_freeform_tags': 'dict(str, str)',
            'database_defined_tags': 'dict(str, dict(str, object))'
        }
        self.attribute_map = {
            'admin_password': 'adminPassword',
            'tde_wallet_password': 'tdeWalletPassword',
            'database_software_image_id': 'databaseSoftwareImageId',
            'is_active_data_guard_enabled': 'isActiveDataGuardEnabled',
            'db_domain': 'dbDomain',
            'sid_prefix': 'sidPrefix',
            'db_unique_name': 'dbUniqueName',
            'protection_mode': 'protectionMode',
            'source_encryption_key_location_details': 'sourceEncryptionKeyLocationDetails',
            'transport_type': 'transportType',
            'db_backup_config': 'dbBackupConfig',
            'database_freeform_tags': 'databaseFreeformTags',
            'database_defined_tags': 'databaseDefinedTags'
        }
        self._admin_password = None
        self._tde_wallet_password = None
        self._database_software_image_id = None
        self._is_active_data_guard_enabled = None
        self._db_domain = None
        self._sid_prefix = None
        self._db_unique_name = None
        self._protection_mode = None
        self._source_encryption_key_location_details = None
        self._transport_type = None
        self._db_backup_config = None
        self._database_freeform_tags = None
        self._database_defined_tags = None

    @property
    def admin_password(self):
        """
        **[Required]** Gets the admin_password of this CreateDatabaseForStandbyDbSystemDetails.
        For SYS, SYSTEM, and PDB Admin, enter the same password as the primary admin password.


        :return: The admin_password of this CreateDatabaseForStandbyDbSystemDetails.
        :rtype: str
        """
        return self._admin_password

    @admin_password.setter
    def admin_password(self, admin_password):
        """
        Sets the admin_password of this CreateDatabaseForStandbyDbSystemDetails.
        For SYS, SYSTEM, and PDB Admin, enter the same password as the primary admin password.


        :param admin_password: The admin_password of this CreateDatabaseForStandbyDbSystemDetails.
        :type: str
        """
        self._admin_password = admin_password

    @property
    def tde_wallet_password(self):
        """
        Gets the tde_wallet_password of this CreateDatabaseForStandbyDbSystemDetails.
        For TDE Wallet, enter the same password as the primary wallet password.


        :return: The tde_wallet_password of this CreateDatabaseForStandbyDbSystemDetails.
        :rtype: str
        """
        return self._tde_wallet_password

    @tde_wallet_password.setter
    def tde_wallet_password(self, tde_wallet_password):
        """
        Sets the tde_wallet_password of this CreateDatabaseForStandbyDbSystemDetails.
        For TDE Wallet, enter the same password as the primary wallet password.


        :param tde_wallet_password: The tde_wallet_password of this CreateDatabaseForStandbyDbSystemDetails.
        :type: str
        """
        self._tde_wallet_password = tde_wallet_password

    @property
    def database_software_image_id(self):
        """
        Gets the database_software_image_id of this CreateDatabaseForStandbyDbSystemDetails.
        The database software image `OCID`__

        __ https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm


        :return: The database_software_image_id of this CreateDatabaseForStandbyDbSystemDetails.
        :rtype: str
        """
        return self._database_software_image_id

    @database_software_image_id.setter
    def database_software_image_id(self, database_software_image_id):
        """
        Sets the database_software_image_id of this CreateDatabaseForStandbyDbSystemDetails.
        The database software image `OCID`__

        __ https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm


        :param database_software_image_id: The database_software_image_id of this CreateDatabaseForStandbyDbSystemDetails.
        :type: str
        """
        self._database_software_image_id = database_software_image_id

    @property
    def is_active_data_guard_enabled(self):
        """
        Gets the is_active_data_guard_enabled of this CreateDatabaseForStandbyDbSystemDetails.
        True if active Data Guard is enabled.


        :return: The is_active_data_guard_enabled of this CreateDatabaseForStandbyDbSystemDetails.
        :rtype: bool
        """
        return self._is_active_data_guard_enabled

    @is_active_data_guard_enabled.setter
    def is_active_data_guard_enabled(self, is_active_data_guard_enabled):
        """
        Sets the is_active_data_guard_enabled of this CreateDatabaseForStandbyDbSystemDetails.
        True if active Data Guard is enabled.


        :param is_active_data_guard_enabled: The is_active_data_guard_enabled of this CreateDatabaseForStandbyDbSystemDetails.
        :type: bool
        """
        self._is_active_data_guard_enabled = is_active_data_guard_enabled

    @property
    def db_domain(self):
        """
        Gets the db_domain of this CreateDatabaseForStandbyDbSystemDetails.
        The database domain. In a distributed database system, DB_DOMAIN specifies the logical location of the database within the network structure.


        :return: The db_domain of this CreateDatabaseForStandbyDbSystemDetails.
        :rtype: str
        """
        return self._db_domain

    @db_domain.setter
    def db_domain(self, db_domain):
        """
        Sets the db_domain of this CreateDatabaseForStandbyDbSystemDetails.
        The database domain. In a distributed database system, DB_DOMAIN specifies the logical location of the database within the network structure.


        :param db_domain: The db_domain of this CreateDatabaseForStandbyDbSystemDetails.
        :type: str
        """
        self._db_domain = db_domain

    @property
    def sid_prefix(self):
        """
        Gets the sid_prefix of this CreateDatabaseForStandbyDbSystemDetails.
        Specifies a prefix for the `Oracle SID` of the database to be created.


        :return: The sid_prefix of this CreateDatabaseForStandbyDbSystemDetails.
        :rtype: str
        """
        return self._sid_prefix

    @sid_prefix.setter
    def sid_prefix(self, sid_prefix):
        """
        Sets the sid_prefix of this CreateDatabaseForStandbyDbSystemDetails.
        Specifies a prefix for the `Oracle SID` of the database to be created.


        :param sid_prefix: The sid_prefix of this CreateDatabaseForStandbyDbSystemDetails.
        :type: str
        """
        self._sid_prefix = sid_prefix

    @property
    def db_unique_name(self):
        """
        Gets the db_unique_name of this CreateDatabaseForStandbyDbSystemDetails.
        The `DB_UNIQUE_NAME` of the Oracle Database.


        :return: The db_unique_name of this CreateDatabaseForStandbyDbSystemDetails.
        :rtype: str
        """
        return self._db_unique_name

    @db_unique_name.setter
    def db_unique_name(self, db_unique_name):
        """
        Sets the db_unique_name of this CreateDatabaseForStandbyDbSystemDetails.
        The `DB_UNIQUE_NAME` of the Oracle Database.


        :param db_unique_name: The db_unique_name of this CreateDatabaseForStandbyDbSystemDetails.
        :type: str
        """
        self._db_unique_name = db_unique_name

    @property
    def protection_mode(self):
        """
        **[Required]** Gets the protection_mode of this CreateDatabaseForStandbyDbSystemDetails.
        The protection mode of this Data Guard association. For more information, see
        `Oracle Data Guard Protection Modes`__
        in the Oracle Data Guard documentation.

        __ http://docs.oracle.com/database/122/SBYDB/oracle-data-guard-protection-modes.htm#SBYDB02000

        Allowed values for this property are: "MAXIMUM_AVAILABILITY", "MAXIMUM_PERFORMANCE", "MAXIMUM_PROTECTION"


        :return: The protection_mode of this CreateDatabaseForStandbyDbSystemDetails.
        :rtype: str
        """
        return self._protection_mode

    @protection_mode.setter
    def protection_mode(self, protection_mode):
        """
        Sets the protection_mode of this CreateDatabaseForStandbyDbSystemDetails.
        The protection mode of this Data Guard association. For more information, see
        `Oracle Data Guard Protection Modes`__
        in the Oracle Data Guard documentation.

        __ http://docs.oracle.com/database/122/SBYDB/oracle-data-guard-protection-modes.htm#SBYDB02000


        :param protection_mode: The protection_mode of this CreateDatabaseForStandbyDbSystemDetails.
        :type: str
        """
        allowed_values = ["MAXIMUM_AVAILABILITY", "MAXIMUM_PERFORMANCE", "MAXIMUM_PROTECTION"]
        if not value_allowed_none_or_none_sentinel(protection_mode, allowed_values):
            raise ValueError(
                f"Invalid value for `protection_mode`, must be None or one of {allowed_values}"
            )
        self._protection_mode = protection_mode

    @property
    def source_encryption_key_location_details(self):
        """
        Gets the source_encryption_key_location_details of this CreateDatabaseForStandbyDbSystemDetails.

        :return: The source_encryption_key_location_details of this CreateDatabaseForStandbyDbSystemDetails.
        :rtype: oci.database.models.EncryptionKeyLocationDetails
        """
        return self._source_encryption_key_location_details

    @source_encryption_key_location_details.setter
    def source_encryption_key_location_details(self, source_encryption_key_location_details):
        """
        Sets the source_encryption_key_location_details of this CreateDatabaseForStandbyDbSystemDetails.

        :param source_encryption_key_location_details: The source_encryption_key_location_details of this CreateDatabaseForStandbyDbSystemDetails.
        :type: oci.database.models.EncryptionKeyLocationDetails
        """
        self._source_encryption_key_location_details = source_encryption_key_location_details

    @property
    def transport_type(self):
        """
        **[Required]** Gets the transport_type of this CreateDatabaseForStandbyDbSystemDetails.
        The redo transport type to use for this Data Guard association.  Valid values depend on the specified `protectionMode`:

        * MAXIMUM_AVAILABILITY - SYNC or FASTSYNC
        * MAXIMUM_PERFORMANCE - ASYNC
        * MAXIMUM_PROTECTION - SYNC

        For more information, see
        `Redo Transport Services`__
        in the Oracle Data Guard documentation.

        **IMPORTANT** - The only transport type currently supported by the Database service is ASYNC.

        __ http://docs.oracle.com/database/122/SBYDB/oracle-data-guard-redo-transport-services.htm#SBYDB00400

        Allowed values for this property are: "SYNC", "ASYNC", "FASTSYNC"


        :return: The transport_type of this CreateDatabaseForStandbyDbSystemDetails.
        :rtype: str
        """
        return self._transport_type

    @transport_type.setter
    def transport_type(self, transport_type):
        """
        Sets the transport_type of this CreateDatabaseForStandbyDbSystemDetails.
        The redo transport type to use for this Data Guard association.  Valid values depend on the specified `protectionMode`:

        * MAXIMUM_AVAILABILITY - SYNC or FASTSYNC
        * MAXIMUM_PERFORMANCE - ASYNC
        * MAXIMUM_PROTECTION - SYNC

        For more information, see
        `Redo Transport Services`__
        in the Oracle Data Guard documentation.

        **IMPORTANT** - The only transport type currently supported by the Database service is ASYNC.

        __ http://docs.oracle.com/database/122/SBYDB/oracle-data-guard-redo-transport-services.htm#SBYDB00400


        :param transport_type: The transport_type of this CreateDatabaseForStandbyDbSystemDetails.
        :type: str
        """
        allowed_values = ["SYNC", "ASYNC", "FASTSYNC"]
        if not value_allowed_none_or_none_sentinel(transport_type, allowed_values):
            raise ValueError(
                f"Invalid value for `transport_type`, must be None or one of {allowed_values}"
            )
        self._transport_type = transport_type

    @property
    def db_backup_config(self):
        """
        Gets the db_backup_config of this CreateDatabaseForStandbyDbSystemDetails.

        :return: The db_backup_config of this CreateDatabaseForStandbyDbSystemDetails.
        :rtype: oci.database.models.DbBackupConfig
        """
        return self._db_backup_config

    @db_backup_config.setter
    def db_backup_config(self, db_backup_config):
        """
        Sets the db_backup_config of this CreateDatabaseForStandbyDbSystemDetails.

        :param db_backup_config: The db_backup_config of this CreateDatabaseForStandbyDbSystemDetails.
        :type: oci.database.models.DbBackupConfig
        """
        self._db_backup_config = db_backup_config

    @property
    def database_freeform_tags(self):
        """
        Gets the database_freeform_tags of this CreateDatabaseForStandbyDbSystemDetails.
        Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace.
        For more information, see `Resource Tags`__.

        Example: `{\"Department\": \"Finance\"}`

        __ https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm


        :return: The database_freeform_tags of this CreateDatabaseForStandbyDbSystemDetails.
        :rtype: dict(str, str)
        """
        return self._database_freeform_tags

    @database_freeform_tags.setter
    def database_freeform_tags(self, database_freeform_tags):
        """
        Sets the database_freeform_tags of this CreateDatabaseForStandbyDbSystemDetails.
        Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace.
        For more information, see `Resource Tags`__.

        Example: `{\"Department\": \"Finance\"}`

        __ https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm


        :param database_freeform_tags: The database_freeform_tags of this CreateDatabaseForStandbyDbSystemDetails.
        :type: dict(str, str)
        """
        self._database_freeform_tags = database_freeform_tags

    @property
    def database_defined_tags(self):
        """
        Gets the database_defined_tags of this CreateDatabaseForStandbyDbSystemDetails.
        Defined tags for this resource. Each key is predefined and scoped to a namespace.
        For more information, see `Resource Tags`__.

        __ https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm


        :return: The database_defined_tags of this CreateDatabaseForStandbyDbSystemDetails.
        :rtype: dict(str, dict(str, object))
        """
        return self._database_defined_tags

    @database_defined_tags.setter
    def database_defined_tags(self, database_defined_tags):
        """
        Sets the database_defined_tags of this CreateDatabaseForStandbyDbSystemDetails.
        Defined tags for this resource. Each key is predefined and scoped to a namespace.
        For more information, see `Resource Tags`__.

        __ https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm


        :param database_defined_tags: The database_defined_tags of this CreateDatabaseForStandbyDbSystemDetails.
        :type: dict(str, dict(str, object))
        """
        self._database_defined_tags = database_defined_tags

    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
