# 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 AutonomousDatabaseBackup(object):
    """
    An Autonomous AI Database backup.
    """

    #: A constant which can be used with the type property of a AutonomousDatabaseBackup.
    #: This constant has a value of "INCREMENTAL"
    TYPE_INCREMENTAL = "INCREMENTAL"

    #: A constant which can be used with the type property of a AutonomousDatabaseBackup.
    #: This constant has a value of "FULL"
    TYPE_FULL = "FULL"

    #: A constant which can be used with the type property of a AutonomousDatabaseBackup.
    #: This constant has a value of "LONGTERM"
    TYPE_LONGTERM = "LONGTERM"

    #: A constant which can be used with the type property of a AutonomousDatabaseBackup.
    #: This constant has a value of "VIRTUAL_FULL"
    TYPE_VIRTUAL_FULL = "VIRTUAL_FULL"

    #: A constant which can be used with the type property of a AutonomousDatabaseBackup.
    #: This constant has a value of "CUMULATIVE_INCREMENTAL"
    TYPE_CUMULATIVE_INCREMENTAL = "CUMULATIVE_INCREMENTAL"

    #: A constant which can be used with the type property of a AutonomousDatabaseBackup.
    #: This constant has a value of "ROLL_FORWARD_IMAGE_COPY"
    TYPE_ROLL_FORWARD_IMAGE_COPY = "ROLL_FORWARD_IMAGE_COPY"

    #: A constant which can be used with the lifecycle_state property of a AutonomousDatabaseBackup.
    #: This constant has a value of "CREATING"
    LIFECYCLE_STATE_CREATING = "CREATING"

    #: A constant which can be used with the lifecycle_state property of a AutonomousDatabaseBackup.
    #: This constant has a value of "ACTIVE"
    LIFECYCLE_STATE_ACTIVE = "ACTIVE"

    #: A constant which can be used with the lifecycle_state property of a AutonomousDatabaseBackup.
    #: This constant has a value of "DELETING"
    LIFECYCLE_STATE_DELETING = "DELETING"

    #: A constant which can be used with the lifecycle_state property of a AutonomousDatabaseBackup.
    #: This constant has a value of "DELETED"
    LIFECYCLE_STATE_DELETED = "DELETED"

    #: A constant which can be used with the lifecycle_state property of a AutonomousDatabaseBackup.
    #: This constant has a value of "FAILED"
    LIFECYCLE_STATE_FAILED = "FAILED"

    #: A constant which can be used with the lifecycle_state property of a AutonomousDatabaseBackup.
    #: This constant has a value of "UPDATING"
    LIFECYCLE_STATE_UPDATING = "UPDATING"

    #: A constant which can be used with the infrastructure_type property of a AutonomousDatabaseBackup.
    #: This constant has a value of "CLOUD"
    INFRASTRUCTURE_TYPE_CLOUD = "CLOUD"

    #: A constant which can be used with the infrastructure_type property of a AutonomousDatabaseBackup.
    #: This constant has a value of "CLOUD_AT_CUSTOMER"
    INFRASTRUCTURE_TYPE_CLOUD_AT_CUSTOMER = "CLOUD_AT_CUSTOMER"

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

        :param id:
            The value to assign to the id property of this AutonomousDatabaseBackup.
        :type id: str

        :param compartment_id:
            The value to assign to the compartment_id property of this AutonomousDatabaseBackup.
        :type compartment_id: str

        :param autonomous_database_id:
            The value to assign to the autonomous_database_id property of this AutonomousDatabaseBackup.
        :type autonomous_database_id: str

        :param display_name:
            The value to assign to the display_name property of this AutonomousDatabaseBackup.
        :type display_name: str

        :param type:
            The value to assign to the type property of this AutonomousDatabaseBackup.
            Allowed values for this property are: "INCREMENTAL", "FULL", "LONGTERM", "VIRTUAL_FULL", "CUMULATIVE_INCREMENTAL", "ROLL_FORWARD_IMAGE_COPY", 'UNKNOWN_ENUM_VALUE'.
            Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
        :type type: str

        :param is_automatic:
            The value to assign to the is_automatic property of this AutonomousDatabaseBackup.
        :type is_automatic: bool

        :param time_started:
            The value to assign to the time_started property of this AutonomousDatabaseBackup.
        :type time_started: datetime

        :param time_ended:
            The value to assign to the time_ended property of this AutonomousDatabaseBackup.
        :type time_ended: datetime

        :param lifecycle_details:
            The value to assign to the lifecycle_details property of this AutonomousDatabaseBackup.
        :type lifecycle_details: str

        :param database_size_in_tbs:
            The value to assign to the database_size_in_tbs property of this AutonomousDatabaseBackup.
        :type database_size_in_tbs: float

        :param lifecycle_state:
            The value to assign to the lifecycle_state property of this AutonomousDatabaseBackup.
            Allowed values for this property are: "CREATING", "ACTIVE", "DELETING", "DELETED", "FAILED", "UPDATING", 'UNKNOWN_ENUM_VALUE'.
            Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
        :type lifecycle_state: str

        :param is_restorable:
            The value to assign to the is_restorable property of this AutonomousDatabaseBackup.
        :type is_restorable: bool

        :param key_store_id:
            The value to assign to the key_store_id property of this AutonomousDatabaseBackup.
        :type key_store_id: str

        :param key_store_wallet_name:
            The value to assign to the key_store_wallet_name property of this AutonomousDatabaseBackup.
        :type key_store_wallet_name: str

        :param kms_key_id:
            The value to assign to the kms_key_id property of this AutonomousDatabaseBackup.
        :type kms_key_id: str

        :param vault_id:
            The value to assign to the vault_id property of this AutonomousDatabaseBackup.
        :type vault_id: str

        :param kms_key_version_id:
            The value to assign to the kms_key_version_id property of this AutonomousDatabaseBackup.
        :type kms_key_version_id: str

        :param retention_period_in_days:
            The value to assign to the retention_period_in_days property of this AutonomousDatabaseBackup.
        :type retention_period_in_days: int

        :param time_available_till:
            The value to assign to the time_available_till property of this AutonomousDatabaseBackup.
        :type time_available_till: datetime

        :param db_version:
            The value to assign to the db_version property of this AutonomousDatabaseBackup.
        :type db_version: str

        :param size_in_tbs:
            The value to assign to the size_in_tbs property of this AutonomousDatabaseBackup.
        :type size_in_tbs: float

        :param backup_destination_details:
            The value to assign to the backup_destination_details property of this AutonomousDatabaseBackup.
        :type backup_destination_details: oci.database.models.BackupDestinationDetails

        :param infrastructure_type:
            The value to assign to the infrastructure_type property of this AutonomousDatabaseBackup.
            Allowed values for this property are: "CLOUD", "CLOUD_AT_CUSTOMER", 'UNKNOWN_ENUM_VALUE'.
            Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
        :type infrastructure_type: str

        :param region:
            The value to assign to the region property of this AutonomousDatabaseBackup.
        :type region: str

        :param source_database_details:
            The value to assign to the source_database_details property of this AutonomousDatabaseBackup.
        :type source_database_details: oci.database.models.SourceDatabaseDetails

        """
        self.swagger_types = {
            'id': 'str',
            'compartment_id': 'str',
            'autonomous_database_id': 'str',
            'display_name': 'str',
            'type': 'str',
            'is_automatic': 'bool',
            'time_started': 'datetime',
            'time_ended': 'datetime',
            'lifecycle_details': 'str',
            'database_size_in_tbs': 'float',
            'lifecycle_state': 'str',
            'is_restorable': 'bool',
            'key_store_id': 'str',
            'key_store_wallet_name': 'str',
            'kms_key_id': 'str',
            'vault_id': 'str',
            'kms_key_version_id': 'str',
            'retention_period_in_days': 'int',
            'time_available_till': 'datetime',
            'db_version': 'str',
            'size_in_tbs': 'float',
            'backup_destination_details': 'BackupDestinationDetails',
            'infrastructure_type': 'str',
            'region': 'str',
            'source_database_details': 'SourceDatabaseDetails'
        }
        self.attribute_map = {
            'id': 'id',
            'compartment_id': 'compartmentId',
            'autonomous_database_id': 'autonomousDatabaseId',
            'display_name': 'displayName',
            'type': 'type',
            'is_automatic': 'isAutomatic',
            'time_started': 'timeStarted',
            'time_ended': 'timeEnded',
            'lifecycle_details': 'lifecycleDetails',
            'database_size_in_tbs': 'databaseSizeInTBs',
            'lifecycle_state': 'lifecycleState',
            'is_restorable': 'isRestorable',
            'key_store_id': 'keyStoreId',
            'key_store_wallet_name': 'keyStoreWalletName',
            'kms_key_id': 'kmsKeyId',
            'vault_id': 'vaultId',
            'kms_key_version_id': 'kmsKeyVersionId',
            'retention_period_in_days': 'retentionPeriodInDays',
            'time_available_till': 'timeAvailableTill',
            'db_version': 'dbVersion',
            'size_in_tbs': 'sizeInTBs',
            'backup_destination_details': 'backupDestinationDetails',
            'infrastructure_type': 'infrastructureType',
            'region': 'region',
            'source_database_details': 'sourceDatabaseDetails'
        }
        self._id = None
        self._compartment_id = None
        self._autonomous_database_id = None
        self._display_name = None
        self._type = None
        self._is_automatic = None
        self._time_started = None
        self._time_ended = None
        self._lifecycle_details = None
        self._database_size_in_tbs = None
        self._lifecycle_state = None
        self._is_restorable = None
        self._key_store_id = None
        self._key_store_wallet_name = None
        self._kms_key_id = None
        self._vault_id = None
        self._kms_key_version_id = None
        self._retention_period_in_days = None
        self._time_available_till = None
        self._db_version = None
        self._size_in_tbs = None
        self._backup_destination_details = None
        self._infrastructure_type = None
        self._region = None
        self._source_database_details = None

    @property
    def id(self):
        """
        **[Required]** Gets the id of this AutonomousDatabaseBackup.
        The `OCID`__ of the Autonomous AI Database backup.

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


        :return: The id of this AutonomousDatabaseBackup.
        :rtype: str
        """
        return self._id

    @id.setter
    def id(self, id):
        """
        Sets the id of this AutonomousDatabaseBackup.
        The `OCID`__ of the Autonomous AI Database backup.

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


        :param id: The id of this AutonomousDatabaseBackup.
        :type: str
        """
        self._id = id

    @property
    def compartment_id(self):
        """
        **[Required]** Gets the compartment_id of this AutonomousDatabaseBackup.
        The `OCID`__ of the compartment.

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


        :return: The compartment_id of this AutonomousDatabaseBackup.
        :rtype: str
        """
        return self._compartment_id

    @compartment_id.setter
    def compartment_id(self, compartment_id):
        """
        Sets the compartment_id of this AutonomousDatabaseBackup.
        The `OCID`__ of the compartment.

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


        :param compartment_id: The compartment_id of this AutonomousDatabaseBackup.
        :type: str
        """
        self._compartment_id = compartment_id

    @property
    def autonomous_database_id(self):
        """
        **[Required]** Gets the autonomous_database_id of this AutonomousDatabaseBackup.
        The `OCID`__ of the Autonomous AI Database.

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


        :return: The autonomous_database_id of this AutonomousDatabaseBackup.
        :rtype: str
        """
        return self._autonomous_database_id

    @autonomous_database_id.setter
    def autonomous_database_id(self, autonomous_database_id):
        """
        Sets the autonomous_database_id of this AutonomousDatabaseBackup.
        The `OCID`__ of the Autonomous AI Database.

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


        :param autonomous_database_id: The autonomous_database_id of this AutonomousDatabaseBackup.
        :type: str
        """
        self._autonomous_database_id = autonomous_database_id

    @property
    def display_name(self):
        """
        **[Required]** Gets the display_name of this AutonomousDatabaseBackup.
        The user-friendly name for the backup. The name does not have to be unique.


        :return: The display_name of this AutonomousDatabaseBackup.
        :rtype: str
        """
        return self._display_name

    @display_name.setter
    def display_name(self, display_name):
        """
        Sets the display_name of this AutonomousDatabaseBackup.
        The user-friendly name for the backup. The name does not have to be unique.


        :param display_name: The display_name of this AutonomousDatabaseBackup.
        :type: str
        """
        self._display_name = display_name

    @property
    def type(self):
        """
        **[Required]** Gets the type of this AutonomousDatabaseBackup.
        The type of backup.

        Allowed values for this property are: "INCREMENTAL", "FULL", "LONGTERM", "VIRTUAL_FULL", "CUMULATIVE_INCREMENTAL", "ROLL_FORWARD_IMAGE_COPY", 'UNKNOWN_ENUM_VALUE'.
        Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.


        :return: The type of this AutonomousDatabaseBackup.
        :rtype: str
        """
        return self._type

    @type.setter
    def type(self, type):
        """
        Sets the type of this AutonomousDatabaseBackup.
        The type of backup.


        :param type: The type of this AutonomousDatabaseBackup.
        :type: str
        """
        allowed_values = ["INCREMENTAL", "FULL", "LONGTERM", "VIRTUAL_FULL", "CUMULATIVE_INCREMENTAL", "ROLL_FORWARD_IMAGE_COPY"]
        if not value_allowed_none_or_none_sentinel(type, allowed_values):
            type = 'UNKNOWN_ENUM_VALUE'
        self._type = type

    @property
    def is_automatic(self):
        """
        **[Required]** Gets the is_automatic of this AutonomousDatabaseBackup.
        Indicates whether the backup is user-initiated or automatic.


        :return: The is_automatic of this AutonomousDatabaseBackup.
        :rtype: bool
        """
        return self._is_automatic

    @is_automatic.setter
    def is_automatic(self, is_automatic):
        """
        Sets the is_automatic of this AutonomousDatabaseBackup.
        Indicates whether the backup is user-initiated or automatic.


        :param is_automatic: The is_automatic of this AutonomousDatabaseBackup.
        :type: bool
        """
        self._is_automatic = is_automatic

    @property
    def time_started(self):
        """
        Gets the time_started of this AutonomousDatabaseBackup.
        The date and time the backup started.


        :return: The time_started of this AutonomousDatabaseBackup.
        :rtype: datetime
        """
        return self._time_started

    @time_started.setter
    def time_started(self, time_started):
        """
        Sets the time_started of this AutonomousDatabaseBackup.
        The date and time the backup started.


        :param time_started: The time_started of this AutonomousDatabaseBackup.
        :type: datetime
        """
        self._time_started = time_started

    @property
    def time_ended(self):
        """
        Gets the time_ended of this AutonomousDatabaseBackup.
        The date and time the backup completed.


        :return: The time_ended of this AutonomousDatabaseBackup.
        :rtype: datetime
        """
        return self._time_ended

    @time_ended.setter
    def time_ended(self, time_ended):
        """
        Sets the time_ended of this AutonomousDatabaseBackup.
        The date and time the backup completed.


        :param time_ended: The time_ended of this AutonomousDatabaseBackup.
        :type: datetime
        """
        self._time_ended = time_ended

    @property
    def lifecycle_details(self):
        """
        Gets the lifecycle_details of this AutonomousDatabaseBackup.
        Additional information about the current lifecycle state.


        :return: The lifecycle_details of this AutonomousDatabaseBackup.
        :rtype: str
        """
        return self._lifecycle_details

    @lifecycle_details.setter
    def lifecycle_details(self, lifecycle_details):
        """
        Sets the lifecycle_details of this AutonomousDatabaseBackup.
        Additional information about the current lifecycle state.


        :param lifecycle_details: The lifecycle_details of this AutonomousDatabaseBackup.
        :type: str
        """
        self._lifecycle_details = lifecycle_details

    @property
    def database_size_in_tbs(self):
        """
        Gets the database_size_in_tbs of this AutonomousDatabaseBackup.
        The size of the database in terabytes at the time the backup was taken.


        :return: The database_size_in_tbs of this AutonomousDatabaseBackup.
        :rtype: float
        """
        return self._database_size_in_tbs

    @database_size_in_tbs.setter
    def database_size_in_tbs(self, database_size_in_tbs):
        """
        Sets the database_size_in_tbs of this AutonomousDatabaseBackup.
        The size of the database in terabytes at the time the backup was taken.


        :param database_size_in_tbs: The database_size_in_tbs of this AutonomousDatabaseBackup.
        :type: float
        """
        self._database_size_in_tbs = database_size_in_tbs

    @property
    def lifecycle_state(self):
        """
        **[Required]** Gets the lifecycle_state of this AutonomousDatabaseBackup.
        The current state of the backup.

        Allowed values for this property are: "CREATING", "ACTIVE", "DELETING", "DELETED", "FAILED", "UPDATING", 'UNKNOWN_ENUM_VALUE'.
        Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.


        :return: The lifecycle_state of this AutonomousDatabaseBackup.
        :rtype: str
        """
        return self._lifecycle_state

    @lifecycle_state.setter
    def lifecycle_state(self, lifecycle_state):
        """
        Sets the lifecycle_state of this AutonomousDatabaseBackup.
        The current state of the backup.


        :param lifecycle_state: The lifecycle_state of this AutonomousDatabaseBackup.
        :type: str
        """
        allowed_values = ["CREATING", "ACTIVE", "DELETING", "DELETED", "FAILED", "UPDATING"]
        if not value_allowed_none_or_none_sentinel(lifecycle_state, allowed_values):
            lifecycle_state = 'UNKNOWN_ENUM_VALUE'
        self._lifecycle_state = lifecycle_state

    @property
    def is_restorable(self):
        """
        Gets the is_restorable of this AutonomousDatabaseBackup.
        Indicates whether the backup can be used to restore the associated Autonomous AI Database.


        :return: The is_restorable of this AutonomousDatabaseBackup.
        :rtype: bool
        """
        return self._is_restorable

    @is_restorable.setter
    def is_restorable(self, is_restorable):
        """
        Sets the is_restorable of this AutonomousDatabaseBackup.
        Indicates whether the backup can be used to restore the associated Autonomous AI Database.


        :param is_restorable: The is_restorable of this AutonomousDatabaseBackup.
        :type: bool
        """
        self._is_restorable = is_restorable

    @property
    def key_store_id(self):
        """
        Gets the key_store_id of this AutonomousDatabaseBackup.
        The `OCID`__ of the key store of Oracle Vault.

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


        :return: The key_store_id of this AutonomousDatabaseBackup.
        :rtype: str
        """
        return self._key_store_id

    @key_store_id.setter
    def key_store_id(self, key_store_id):
        """
        Sets the key_store_id of this AutonomousDatabaseBackup.
        The `OCID`__ of the key store of Oracle Vault.

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


        :param key_store_id: The key_store_id of this AutonomousDatabaseBackup.
        :type: str
        """
        self._key_store_id = key_store_id

    @property
    def key_store_wallet_name(self):
        """
        Gets the key_store_wallet_name of this AutonomousDatabaseBackup.
        The wallet name for Oracle Key Vault.


        :return: The key_store_wallet_name of this AutonomousDatabaseBackup.
        :rtype: str
        """
        return self._key_store_wallet_name

    @key_store_wallet_name.setter
    def key_store_wallet_name(self, key_store_wallet_name):
        """
        Sets the key_store_wallet_name of this AutonomousDatabaseBackup.
        The wallet name for Oracle Key Vault.


        :param key_store_wallet_name: The key_store_wallet_name of this AutonomousDatabaseBackup.
        :type: str
        """
        self._key_store_wallet_name = key_store_wallet_name

    @property
    def kms_key_id(self):
        """
        Gets the kms_key_id of this AutonomousDatabaseBackup.
        The OCID of the key container that is used as the master encryption key in database transparent data encryption (TDE) operations.


        :return: The kms_key_id of this AutonomousDatabaseBackup.
        :rtype: str
        """
        return self._kms_key_id

    @kms_key_id.setter
    def kms_key_id(self, kms_key_id):
        """
        Sets the kms_key_id of this AutonomousDatabaseBackup.
        The OCID of the key container that is used as the master encryption key in database transparent data encryption (TDE) operations.


        :param kms_key_id: The kms_key_id of this AutonomousDatabaseBackup.
        :type: str
        """
        self._kms_key_id = kms_key_id

    @property
    def vault_id(self):
        """
        Gets the vault_id of this AutonomousDatabaseBackup.
        The `OCID`__ of the Oracle Cloud Infrastructure `vault`__. This parameter and `secretId` are required for Customer Managed Keys.

        __ https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm
        __ https://docs.oracle.com/iaas/Content/KeyManagement/Concepts/keyoverview.htm#concepts


        :return: The vault_id of this AutonomousDatabaseBackup.
        :rtype: str
        """
        return self._vault_id

    @vault_id.setter
    def vault_id(self, vault_id):
        """
        Sets the vault_id of this AutonomousDatabaseBackup.
        The `OCID`__ of the Oracle Cloud Infrastructure `vault`__. This parameter and `secretId` are required for Customer Managed Keys.

        __ https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm
        __ https://docs.oracle.com/iaas/Content/KeyManagement/Concepts/keyoverview.htm#concepts


        :param vault_id: The vault_id of this AutonomousDatabaseBackup.
        :type: str
        """
        self._vault_id = vault_id

    @property
    def kms_key_version_id(self):
        """
        Gets the kms_key_version_id of this AutonomousDatabaseBackup.
        The OCID of the key container version that is used in database transparent data encryption (TDE) operations KMS Key can have multiple key versions. If none is specified, the current key version (latest) of the Key Id is used for the operation. Autonomous AI Database Serverless does not use key versions, hence is not applicable for Autonomous AI Database Serverless instances.


        :return: The kms_key_version_id of this AutonomousDatabaseBackup.
        :rtype: str
        """
        return self._kms_key_version_id

    @kms_key_version_id.setter
    def kms_key_version_id(self, kms_key_version_id):
        """
        Sets the kms_key_version_id of this AutonomousDatabaseBackup.
        The OCID of the key container version that is used in database transparent data encryption (TDE) operations KMS Key can have multiple key versions. If none is specified, the current key version (latest) of the Key Id is used for the operation. Autonomous AI Database Serverless does not use key versions, hence is not applicable for Autonomous AI Database Serverless instances.


        :param kms_key_version_id: The kms_key_version_id of this AutonomousDatabaseBackup.
        :type: str
        """
        self._kms_key_version_id = kms_key_version_id

    @property
    def retention_period_in_days(self):
        """
        Gets the retention_period_in_days of this AutonomousDatabaseBackup.
        Retention period, in days, for long-term backups


        :return: The retention_period_in_days of this AutonomousDatabaseBackup.
        :rtype: int
        """
        return self._retention_period_in_days

    @retention_period_in_days.setter
    def retention_period_in_days(self, retention_period_in_days):
        """
        Sets the retention_period_in_days of this AutonomousDatabaseBackup.
        Retention period, in days, for long-term backups


        :param retention_period_in_days: The retention_period_in_days of this AutonomousDatabaseBackup.
        :type: int
        """
        self._retention_period_in_days = retention_period_in_days

    @property
    def time_available_till(self):
        """
        Gets the time_available_till of this AutonomousDatabaseBackup.
        Timestamp until when the backup will be available


        :return: The time_available_till of this AutonomousDatabaseBackup.
        :rtype: datetime
        """
        return self._time_available_till

    @time_available_till.setter
    def time_available_till(self, time_available_till):
        """
        Sets the time_available_till of this AutonomousDatabaseBackup.
        Timestamp until when the backup will be available


        :param time_available_till: The time_available_till of this AutonomousDatabaseBackup.
        :type: datetime
        """
        self._time_available_till = time_available_till

    @property
    def db_version(self):
        """
        Gets the db_version of this AutonomousDatabaseBackup.
        A valid Oracle AI Database version for Autonomous AI Database.
        When you specify 23ai for dbversion, the system will provision a 23ai database, but the UI will display it as 26ai.
        When you specify 26ai for dbversion, the system will provision and display a 26ai database as expected.
        For new databases, it is recommended to use either 19c or 26ai.

        **Note** Starting December 2026, 23ai will not be supported as a valid value for this parameter.


        :return: The db_version of this AutonomousDatabaseBackup.
        :rtype: str
        """
        return self._db_version

    @db_version.setter
    def db_version(self, db_version):
        """
        Sets the db_version of this AutonomousDatabaseBackup.
        A valid Oracle AI Database version for Autonomous AI Database.
        When you specify 23ai for dbversion, the system will provision a 23ai database, but the UI will display it as 26ai.
        When you specify 26ai for dbversion, the system will provision and display a 26ai database as expected.
        For new databases, it is recommended to use either 19c or 26ai.

        **Note** Starting December 2026, 23ai will not be supported as a valid value for this parameter.


        :param db_version: The db_version of this AutonomousDatabaseBackup.
        :type: str
        """
        self._db_version = db_version

    @property
    def size_in_tbs(self):
        """
        Gets the size_in_tbs of this AutonomousDatabaseBackup.
        The backup size in terrabytes (TB).


        :return: The size_in_tbs of this AutonomousDatabaseBackup.
        :rtype: float
        """
        return self._size_in_tbs

    @size_in_tbs.setter
    def size_in_tbs(self, size_in_tbs):
        """
        Sets the size_in_tbs of this AutonomousDatabaseBackup.
        The backup size in terrabytes (TB).


        :param size_in_tbs: The size_in_tbs of this AutonomousDatabaseBackup.
        :type: float
        """
        self._size_in_tbs = size_in_tbs

    @property
    def backup_destination_details(self):
        """
        Gets the backup_destination_details of this AutonomousDatabaseBackup.

        :return: The backup_destination_details of this AutonomousDatabaseBackup.
        :rtype: oci.database.models.BackupDestinationDetails
        """
        return self._backup_destination_details

    @backup_destination_details.setter
    def backup_destination_details(self, backup_destination_details):
        """
        Sets the backup_destination_details of this AutonomousDatabaseBackup.

        :param backup_destination_details: The backup_destination_details of this AutonomousDatabaseBackup.
        :type: oci.database.models.BackupDestinationDetails
        """
        self._backup_destination_details = backup_destination_details

    @property
    def infrastructure_type(self):
        """
        Gets the infrastructure_type of this AutonomousDatabaseBackup.
        The infrastructure type this resource belongs to.

        Allowed values for this property are: "CLOUD", "CLOUD_AT_CUSTOMER", 'UNKNOWN_ENUM_VALUE'.
        Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.


        :return: The infrastructure_type of this AutonomousDatabaseBackup.
        :rtype: str
        """
        return self._infrastructure_type

    @infrastructure_type.setter
    def infrastructure_type(self, infrastructure_type):
        """
        Sets the infrastructure_type of this AutonomousDatabaseBackup.
        The infrastructure type this resource belongs to.


        :param infrastructure_type: The infrastructure_type of this AutonomousDatabaseBackup.
        :type: str
        """
        allowed_values = ["CLOUD", "CLOUD_AT_CUSTOMER"]
        if not value_allowed_none_or_none_sentinel(infrastructure_type, allowed_values):
            infrastructure_type = 'UNKNOWN_ENUM_VALUE'
        self._infrastructure_type = infrastructure_type

    @property
    def region(self):
        """
        Gets the region of this AutonomousDatabaseBackup.
        Name of the region in which backup is taken in.


        :return: The region of this AutonomousDatabaseBackup.
        :rtype: str
        """
        return self._region

    @region.setter
    def region(self, region):
        """
        Sets the region of this AutonomousDatabaseBackup.
        Name of the region in which backup is taken in.


        :param region: The region of this AutonomousDatabaseBackup.
        :type: str
        """
        self._region = region

    @property
    def source_database_details(self):
        """
        Gets the source_database_details of this AutonomousDatabaseBackup.

        :return: The source_database_details of this AutonomousDatabaseBackup.
        :rtype: oci.database.models.SourceDatabaseDetails
        """
        return self._source_database_details

    @source_database_details.setter
    def source_database_details(self, source_database_details):
        """
        Sets the source_database_details of this AutonomousDatabaseBackup.

        :param source_database_details: The source_database_details of this AutonomousDatabaseBackup.
        :type: oci.database.models.SourceDatabaseDetails
        """
        self._source_database_details = source_database_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
