# 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 AutonomousDatabaseSoftwareImage(object):
    """
    Autonomous AI Database Software Images created from Autonomous Container Database
    """

    #: A constant which can be used with the lifecycle_state property of a AutonomousDatabaseSoftwareImage.
    #: This constant has a value of "AVAILABLE"
    LIFECYCLE_STATE_AVAILABLE = "AVAILABLE"

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

    #: A constant which can be used with the lifecycle_state property of a AutonomousDatabaseSoftwareImage.
    #: This constant has a value of "PROVISIONING"
    LIFECYCLE_STATE_PROVISIONING = "PROVISIONING"

    #: A constant which can be used with the lifecycle_state property of a AutonomousDatabaseSoftwareImage.
    #: This constant has a value of "EXPIRED"
    LIFECYCLE_STATE_EXPIRED = "EXPIRED"

    #: A constant which can be used with the lifecycle_state property of a AutonomousDatabaseSoftwareImage.
    #: This constant has a value of "TERMINATED"
    LIFECYCLE_STATE_TERMINATED = "TERMINATED"

    #: A constant which can be used with the lifecycle_state property of a AutonomousDatabaseSoftwareImage.
    #: This constant has a value of "TERMINATING"
    LIFECYCLE_STATE_TERMINATING = "TERMINATING"

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

    #: A constant which can be used with the image_shape_family property of a AutonomousDatabaseSoftwareImage.
    #: This constant has a value of "EXACC_SHAPE"
    IMAGE_SHAPE_FAMILY_EXACC_SHAPE = "EXACC_SHAPE"

    #: A constant which can be used with the image_shape_family property of a AutonomousDatabaseSoftwareImage.
    #: This constant has a value of "EXADATA_SHAPE"
    IMAGE_SHAPE_FAMILY_EXADATA_SHAPE = "EXADATA_SHAPE"

    def __init__(self, **kwargs):
        """
        Initializes a new AutonomousDatabaseSoftwareImage 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 AutonomousDatabaseSoftwareImage.
        :type id: str

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

        :param database_version:
            The value to assign to the database_version property of this AutonomousDatabaseSoftwareImage.
        :type database_version: str

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

        :param lifecycle_state:
            The value to assign to the lifecycle_state property of this AutonomousDatabaseSoftwareImage.
            Allowed values for this property are: "AVAILABLE", "FAILED", "PROVISIONING", "EXPIRED", "TERMINATED", "TERMINATING", "UPDATING", 'UNKNOWN_ENUM_VALUE'.
            Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
        :type lifecycle_state: str

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

        :param time_created:
            The value to assign to the time_created property of this AutonomousDatabaseSoftwareImage.
        :type time_created: datetime

        :param release_update:
            The value to assign to the release_update property of this AutonomousDatabaseSoftwareImage.
        :type release_update: str

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

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

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

        :param autonomous_dsi_one_off_patches:
            The value to assign to the autonomous_dsi_one_off_patches property of this AutonomousDatabaseSoftwareImage.
        :type autonomous_dsi_one_off_patches: list[str]

        :param image_shape_family:
            The value to assign to the image_shape_family property of this AutonomousDatabaseSoftwareImage.
            Allowed values for this property are: "EXACC_SHAPE", "EXADATA_SHAPE", 'UNKNOWN_ENUM_VALUE'.
            Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
        :type image_shape_family: str

        :param dst_file_version:
            The value to assign to the dst_file_version property of this AutonomousDatabaseSoftwareImage.
        :type dst_file_version: str

        """
        self.swagger_types = {
            'id': 'str',
            'compartment_id': 'str',
            'database_version': 'str',
            'display_name': 'str',
            'lifecycle_state': 'str',
            'lifecycle_details': 'str',
            'time_created': 'datetime',
            'release_update': 'str',
            'freeform_tags': 'dict(str, str)',
            'defined_tags': 'dict(str, dict(str, object))',
            'system_tags': 'dict(str, dict(str, object))',
            'autonomous_dsi_one_off_patches': 'list[str]',
            'image_shape_family': 'str',
            'dst_file_version': 'str'
        }
        self.attribute_map = {
            'id': 'id',
            'compartment_id': 'compartmentId',
            'database_version': 'databaseVersion',
            'display_name': 'displayName',
            'lifecycle_state': 'lifecycleState',
            'lifecycle_details': 'lifecycleDetails',
            'time_created': 'timeCreated',
            'release_update': 'releaseUpdate',
            'freeform_tags': 'freeformTags',
            'defined_tags': 'definedTags',
            'system_tags': 'systemTags',
            'autonomous_dsi_one_off_patches': 'autonomousDsiOneOffPatches',
            'image_shape_family': 'imageShapeFamily',
            'dst_file_version': 'dstFileVersion'
        }
        self._id = None
        self._compartment_id = None
        self._database_version = None
        self._display_name = None
        self._lifecycle_state = None
        self._lifecycle_details = None
        self._time_created = None
        self._release_update = None
        self._freeform_tags = None
        self._defined_tags = None
        self._system_tags = None
        self._autonomous_dsi_one_off_patches = None
        self._image_shape_family = None
        self._dst_file_version = None

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

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


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

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

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


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

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

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


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

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

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


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

    @property
    def database_version(self):
        """
        **[Required]** Gets the database_version of this AutonomousDatabaseSoftwareImage.
        The database version with which the Autonomous AI Database Software Image is to be built.


        :return: The database_version of this AutonomousDatabaseSoftwareImage.
        :rtype: str
        """
        return self._database_version

    @database_version.setter
    def database_version(self, database_version):
        """
        Sets the database_version of this AutonomousDatabaseSoftwareImage.
        The database version with which the Autonomous AI Database Software Image is to be built.


        :param database_version: The database_version of this AutonomousDatabaseSoftwareImage.
        :type: str
        """
        self._database_version = database_version

    @property
    def display_name(self):
        """
        **[Required]** Gets the display_name of this AutonomousDatabaseSoftwareImage.
        The user-friendly name for the Autonomous AI Database Software Image. The name does not have to be unique.


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

    @display_name.setter
    def display_name(self, display_name):
        """
        Sets the display_name of this AutonomousDatabaseSoftwareImage.
        The user-friendly name for the Autonomous AI Database Software Image. The name does not have to be unique.


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

    @property
    def lifecycle_state(self):
        """
        **[Required]** Gets the lifecycle_state of this AutonomousDatabaseSoftwareImage.
        The current state of the Autonomous AI Database Software Image.

        Allowed values for this property are: "AVAILABLE", "FAILED", "PROVISIONING", "EXPIRED", "TERMINATED", "TERMINATING", "UPDATING", 'UNKNOWN_ENUM_VALUE'.
        Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.


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

    @lifecycle_state.setter
    def lifecycle_state(self, lifecycle_state):
        """
        Sets the lifecycle_state of this AutonomousDatabaseSoftwareImage.
        The current state of the Autonomous AI Database Software Image.


        :param lifecycle_state: The lifecycle_state of this AutonomousDatabaseSoftwareImage.
        :type: str
        """
        allowed_values = ["AVAILABLE", "FAILED", "PROVISIONING", "EXPIRED", "TERMINATED", "TERMINATING", "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 lifecycle_details(self):
        """
        Gets the lifecycle_details of this AutonomousDatabaseSoftwareImage.
        Detailed message for the lifecycle state.


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

    @lifecycle_details.setter
    def lifecycle_details(self, lifecycle_details):
        """
        Sets the lifecycle_details of this AutonomousDatabaseSoftwareImage.
        Detailed message for the lifecycle state.


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

    @property
    def time_created(self):
        """
        **[Required]** Gets the time_created of this AutonomousDatabaseSoftwareImage.
        The date and time the Autonomous AI Database Software Image was created.


        :return: The time_created of this AutonomousDatabaseSoftwareImage.
        :rtype: datetime
        """
        return self._time_created

    @time_created.setter
    def time_created(self, time_created):
        """
        Sets the time_created of this AutonomousDatabaseSoftwareImage.
        The date and time the Autonomous AI Database Software Image was created.


        :param time_created: The time_created of this AutonomousDatabaseSoftwareImage.
        :type: datetime
        """
        self._time_created = time_created

    @property
    def release_update(self):
        """
        **[Required]** Gets the release_update of this AutonomousDatabaseSoftwareImage.
        The Release Updates.


        :return: The release_update of this AutonomousDatabaseSoftwareImage.
        :rtype: str
        """
        return self._release_update

    @release_update.setter
    def release_update(self, release_update):
        """
        Sets the release_update of this AutonomousDatabaseSoftwareImage.
        The Release Updates.


        :param release_update: The release_update of this AutonomousDatabaseSoftwareImage.
        :type: str
        """
        self._release_update = release_update

    @property
    def freeform_tags(self):
        """
        Gets the freeform_tags of this AutonomousDatabaseSoftwareImage.
        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 freeform_tags of this AutonomousDatabaseSoftwareImage.
        :rtype: dict(str, str)
        """
        return self._freeform_tags

    @freeform_tags.setter
    def freeform_tags(self, freeform_tags):
        """
        Sets the freeform_tags of this AutonomousDatabaseSoftwareImage.
        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 freeform_tags: The freeform_tags of this AutonomousDatabaseSoftwareImage.
        :type: dict(str, str)
        """
        self._freeform_tags = freeform_tags

    @property
    def defined_tags(self):
        """
        Gets the defined_tags of this AutonomousDatabaseSoftwareImage.
        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 defined_tags of this AutonomousDatabaseSoftwareImage.
        :rtype: dict(str, dict(str, object))
        """
        return self._defined_tags

    @defined_tags.setter
    def defined_tags(self, defined_tags):
        """
        Sets the defined_tags of this AutonomousDatabaseSoftwareImage.
        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 defined_tags: The defined_tags of this AutonomousDatabaseSoftwareImage.
        :type: dict(str, dict(str, object))
        """
        self._defined_tags = defined_tags

    @property
    def system_tags(self):
        """
        Gets the system_tags of this AutonomousDatabaseSoftwareImage.
        System 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 system_tags of this AutonomousDatabaseSoftwareImage.
        :rtype: dict(str, dict(str, object))
        """
        return self._system_tags

    @system_tags.setter
    def system_tags(self, system_tags):
        """
        Sets the system_tags of this AutonomousDatabaseSoftwareImage.
        System 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 system_tags: The system_tags of this AutonomousDatabaseSoftwareImage.
        :type: dict(str, dict(str, object))
        """
        self._system_tags = system_tags

    @property
    def autonomous_dsi_one_off_patches(self):
        """
        Gets the autonomous_dsi_one_off_patches of this AutonomousDatabaseSoftwareImage.
        One-off patches included in the Autonomous AI Database Software Image


        :return: The autonomous_dsi_one_off_patches of this AutonomousDatabaseSoftwareImage.
        :rtype: list[str]
        """
        return self._autonomous_dsi_one_off_patches

    @autonomous_dsi_one_off_patches.setter
    def autonomous_dsi_one_off_patches(self, autonomous_dsi_one_off_patches):
        """
        Sets the autonomous_dsi_one_off_patches of this AutonomousDatabaseSoftwareImage.
        One-off patches included in the Autonomous AI Database Software Image


        :param autonomous_dsi_one_off_patches: The autonomous_dsi_one_off_patches of this AutonomousDatabaseSoftwareImage.
        :type: list[str]
        """
        self._autonomous_dsi_one_off_patches = autonomous_dsi_one_off_patches

    @property
    def image_shape_family(self):
        """
        **[Required]** Gets the image_shape_family of this AutonomousDatabaseSoftwareImage.
        To what shape the image is meant for.

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


        :return: The image_shape_family of this AutonomousDatabaseSoftwareImage.
        :rtype: str
        """
        return self._image_shape_family

    @image_shape_family.setter
    def image_shape_family(self, image_shape_family):
        """
        Sets the image_shape_family of this AutonomousDatabaseSoftwareImage.
        To what shape the image is meant for.


        :param image_shape_family: The image_shape_family of this AutonomousDatabaseSoftwareImage.
        :type: str
        """
        allowed_values = ["EXACC_SHAPE", "EXADATA_SHAPE"]
        if not value_allowed_none_or_none_sentinel(image_shape_family, allowed_values):
            image_shape_family = 'UNKNOWN_ENUM_VALUE'
        self._image_shape_family = image_shape_family

    @property
    def dst_file_version(self):
        """
        Gets the dst_file_version of this AutonomousDatabaseSoftwareImage.
        DST Time-Zone File version of the Autonomous Container Database.


        :return: The dst_file_version of this AutonomousDatabaseSoftwareImage.
        :rtype: str
        """
        return self._dst_file_version

    @dst_file_version.setter
    def dst_file_version(self, dst_file_version):
        """
        Sets the dst_file_version of this AutonomousDatabaseSoftwareImage.
        DST Time-Zone File version of the Autonomous Container Database.


        :param dst_file_version: The dst_file_version of this AutonomousDatabaseSoftwareImage.
        :type: str
        """
        self._dst_file_version = dst_file_version

    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
