# 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 ComputeHost(object):
    """
    The customer facing object includes host details.
    """

    #: A constant which can be used with the configuration_state property of a ComputeHost.
    #: This constant has a value of "CONFORMANT"
    CONFIGURATION_STATE_CONFORMANT = "CONFORMANT"

    #: A constant which can be used with the configuration_state property of a ComputeHost.
    #: This constant has a value of "NON_CONFORMANT"
    CONFIGURATION_STATE_NON_CONFORMANT = "NON_CONFORMANT"

    #: A constant which can be used with the configuration_state property of a ComputeHost.
    #: This constant has a value of "CHECKING"
    CONFIGURATION_STATE_CHECKING = "CHECKING"

    #: A constant which can be used with the configuration_state property of a ComputeHost.
    #: This constant has a value of "PRE_APPLYING"
    CONFIGURATION_STATE_PRE_APPLYING = "PRE_APPLYING"

    #: A constant which can be used with the configuration_state property of a ComputeHost.
    #: This constant has a value of "APPLYING"
    CONFIGURATION_STATE_APPLYING = "APPLYING"

    #: A constant which can be used with the configuration_state property of a ComputeHost.
    #: This constant has a value of "UNKNOWN"
    CONFIGURATION_STATE_UNKNOWN = "UNKNOWN"

    #: A constant which can be used with the health property of a ComputeHost.
    #: This constant has a value of "HEALTHY"
    HEALTH_HEALTHY = "HEALTHY"

    #: A constant which can be used with the health property of a ComputeHost.
    #: This constant has a value of "UNHEALTHY"
    HEALTH_UNHEALTHY = "UNHEALTHY"

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

    #: A constant which can be used with the lifecycle_state property of a ComputeHost.
    #: This constant has a value of "OCCUPIED"
    LIFECYCLE_STATE_OCCUPIED = "OCCUPIED"

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

    #: A constant which can be used with the lifecycle_state property of a ComputeHost.
    #: This constant has a value of "REPAIR"
    LIFECYCLE_STATE_REPAIR = "REPAIR"

    #: A constant which can be used with the lifecycle_state property of a ComputeHost.
    #: This constant has a value of "UNAVAILABLE"
    LIFECYCLE_STATE_UNAVAILABLE = "UNAVAILABLE"

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

        :param availability_domain:
            The value to assign to the availability_domain property of this ComputeHost.
        :type availability_domain: str

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

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

        :param fault_domain:
            The value to assign to the fault_domain property of this ComputeHost.
        :type fault_domain: str

        :param hpc_island_id:
            The value to assign to the hpc_island_id property of this ComputeHost.
        :type hpc_island_id: str

        :param host_correlation_id:
            The value to assign to the host_correlation_id property of this ComputeHost.
        :type host_correlation_id: str

        :param compute_host_group_id:
            The value to assign to the compute_host_group_id property of this ComputeHost.
        :type compute_host_group_id: str

        :param configuration_state:
            The value to assign to the configuration_state property of this ComputeHost.
            Allowed values for this property are: "CONFORMANT", "NON_CONFORMANT", "CHECKING", "PRE_APPLYING", "APPLYING", "UNKNOWN", 'UNKNOWN_ENUM_VALUE'.
            Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
        :type configuration_state: str

        :param time_configuration_check:
            The value to assign to the time_configuration_check property of this ComputeHost.
        :type time_configuration_check: datetime

        :param configuration_data:
            The value to assign to the configuration_data property of this ComputeHost.
        :type configuration_data: oci.core.models.ComputeHostConfigurationData

        :param recycle_details:
            The value to assign to the recycle_details property of this ComputeHost.
        :type recycle_details: oci.core.models.RecycleDetails

        :param firmware_bundle_id:
            The value to assign to the firmware_bundle_id property of this ComputeHost.
        :type firmware_bundle_id: str

        :param platform:
            The value to assign to the platform property of this ComputeHost.
        :type platform: str

        :param network_block_id:
            The value to assign to the network_block_id property of this ComputeHost.
        :type network_block_id: str

        :param local_block_id:
            The value to assign to the local_block_id property of this ComputeHost.
        :type local_block_id: str

        :param gpu_memory_fabric_id:
            The value to assign to the gpu_memory_fabric_id property of this ComputeHost.
        :type gpu_memory_fabric_id: str

        :param instance_id:
            The value to assign to the instance_id property of this ComputeHost.
        :type instance_id: str

        :param shape:
            The value to assign to the shape property of this ComputeHost.
        :type shape: str

        :param health:
            The value to assign to the health property of this ComputeHost.
            Allowed values for this property are: "HEALTHY", "UNHEALTHY", 'UNKNOWN_ENUM_VALUE'.
            Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
        :type health: str

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

        :param lifecycle_state:
            The value to assign to the lifecycle_state property of this ComputeHost.
            Allowed values for this property are: "AVAILABLE", "OCCUPIED", "PROVISIONING", "REPAIR", "UNAVAILABLE", '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 ComputeHost.
        :type lifecycle_details: dict(str, object)

        :param capacity_reservation_id:
            The value to assign to the capacity_reservation_id property of this ComputeHost.
        :type capacity_reservation_id: str

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

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

        :param time_updated:
            The value to assign to the time_updated property of this ComputeHost.
        :type time_updated: datetime

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

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

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

        """
        self.swagger_types = {
            'availability_domain': 'str',
            'compartment_id': 'str',
            'id': 'str',
            'fault_domain': 'str',
            'hpc_island_id': 'str',
            'host_correlation_id': 'str',
            'compute_host_group_id': 'str',
            'configuration_state': 'str',
            'time_configuration_check': 'datetime',
            'configuration_data': 'ComputeHostConfigurationData',
            'recycle_details': 'RecycleDetails',
            'firmware_bundle_id': 'str',
            'platform': 'str',
            'network_block_id': 'str',
            'local_block_id': 'str',
            'gpu_memory_fabric_id': 'str',
            'instance_id': 'str',
            'shape': 'str',
            'health': 'str',
            'additional_data': 'dict(str, object)',
            'lifecycle_state': 'str',
            'lifecycle_details': 'dict(str, object)',
            'capacity_reservation_id': 'str',
            'impacted_component_details': 'dict(str, object)',
            'time_created': 'datetime',
            'time_updated': 'datetime',
            'defined_tags': 'dict(str, dict(str, object))',
            'display_name': 'str',
            'freeform_tags': 'dict(str, str)'
        }
        self.attribute_map = {
            'availability_domain': 'availabilityDomain',
            'compartment_id': 'compartmentId',
            'id': 'id',
            'fault_domain': 'faultDomain',
            'hpc_island_id': 'hpcIslandId',
            'host_correlation_id': 'hostCorrelationId',
            'compute_host_group_id': 'computeHostGroupId',
            'configuration_state': 'configurationState',
            'time_configuration_check': 'timeConfigurationCheck',
            'configuration_data': 'configurationData',
            'recycle_details': 'recycleDetails',
            'firmware_bundle_id': 'firmwareBundleId',
            'platform': 'platform',
            'network_block_id': 'networkBlockId',
            'local_block_id': 'localBlockId',
            'gpu_memory_fabric_id': 'gpuMemoryFabricId',
            'instance_id': 'instanceId',
            'shape': 'shape',
            'health': 'health',
            'additional_data': 'additionalData',
            'lifecycle_state': 'lifecycleState',
            'lifecycle_details': 'lifecycleDetails',
            'capacity_reservation_id': 'capacityReservationId',
            'impacted_component_details': 'impactedComponentDetails',
            'time_created': 'timeCreated',
            'time_updated': 'timeUpdated',
            'defined_tags': 'definedTags',
            'display_name': 'displayName',
            'freeform_tags': 'freeformTags'
        }
        self._availability_domain = None
        self._compartment_id = None
        self._id = None
        self._fault_domain = None
        self._hpc_island_id = None
        self._host_correlation_id = None
        self._compute_host_group_id = None
        self._configuration_state = None
        self._time_configuration_check = None
        self._configuration_data = None
        self._recycle_details = None
        self._firmware_bundle_id = None
        self._platform = None
        self._network_block_id = None
        self._local_block_id = None
        self._gpu_memory_fabric_id = None
        self._instance_id = None
        self._shape = None
        self._health = None
        self._additional_data = None
        self._lifecycle_state = None
        self._lifecycle_details = None
        self._capacity_reservation_id = None
        self._impacted_component_details = None
        self._time_created = None
        self._time_updated = None
        self._defined_tags = None
        self._display_name = None
        self._freeform_tags = None

    @property
    def availability_domain(self):
        """
        **[Required]** Gets the availability_domain of this ComputeHost.
        The availability domain of the compute host.

        Example: `Uocm:US-CHICAGO-1-AD-2`


        :return: The availability_domain of this ComputeHost.
        :rtype: str
        """
        return self._availability_domain

    @availability_domain.setter
    def availability_domain(self, availability_domain):
        """
        Sets the availability_domain of this ComputeHost.
        The availability domain of the compute host.

        Example: `Uocm:US-CHICAGO-1-AD-2`


        :param availability_domain: The availability_domain of this ComputeHost.
        :type: str
        """
        self._availability_domain = availability_domain

    @property
    def compartment_id(self):
        """
        **[Required]** Gets the compartment_id of this ComputeHost.
        The `OCID`__ for the compartment. This should always be the root
        compartment.

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


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

    @compartment_id.setter
    def compartment_id(self, compartment_id):
        """
        Sets the compartment_id of this ComputeHost.
        The `OCID`__ for the compartment. This should always be the root
        compartment.

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


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

    @property
    def id(self):
        """
        **[Required]** Gets the id of this ComputeHost.
        The `OCID`__ for the Customer-unique host

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


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

    @id.setter
    def id(self, id):
        """
        Sets the id of this ComputeHost.
        The `OCID`__ for the Customer-unique host

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


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

    @property
    def fault_domain(self):
        """
        **[Required]** Gets the fault_domain of this ComputeHost.
        A fault domain is a grouping of hardware and infrastructure within an availability domain.
        Each availability domain contains three fault domains. Fault domains let you distribute your
        instances so that they are not on the same physical hardware within a single availability domain.
        A hardware failure or Compute hardware maintenance that affects one fault domain does not affect
        instances in other fault domains.

        This field is the Fault domain of the host


        :return: The fault_domain of this ComputeHost.
        :rtype: str
        """
        return self._fault_domain

    @fault_domain.setter
    def fault_domain(self, fault_domain):
        """
        Sets the fault_domain of this ComputeHost.
        A fault domain is a grouping of hardware and infrastructure within an availability domain.
        Each availability domain contains three fault domains. Fault domains let you distribute your
        instances so that they are not on the same physical hardware within a single availability domain.
        A hardware failure or Compute hardware maintenance that affects one fault domain does not affect
        instances in other fault domains.

        This field is the Fault domain of the host


        :param fault_domain: The fault_domain of this ComputeHost.
        :type: str
        """
        self._fault_domain = fault_domain

    @property
    def hpc_island_id(self):
        """
        Gets the hpc_island_id of this ComputeHost.
        The `OCID`__ for Customer-unique HPC Island

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


        :return: The hpc_island_id of this ComputeHost.
        :rtype: str
        """
        return self._hpc_island_id

    @hpc_island_id.setter
    def hpc_island_id(self, hpc_island_id):
        """
        Sets the hpc_island_id of this ComputeHost.
        The `OCID`__ for Customer-unique HPC Island

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


        :param hpc_island_id: The hpc_island_id of this ComputeHost.
        :type: str
        """
        self._hpc_island_id = hpc_island_id

    @property
    def host_correlation_id(self):
        """
        Gets the host_correlation_id of this ComputeHost.
        The ID that remains consistent when a host moves between capacity pools within the same tenancy.


        :return: The host_correlation_id of this ComputeHost.
        :rtype: str
        """
        return self._host_correlation_id

    @host_correlation_id.setter
    def host_correlation_id(self, host_correlation_id):
        """
        Sets the host_correlation_id of this ComputeHost.
        The ID that remains consistent when a host moves between capacity pools within the same tenancy.


        :param host_correlation_id: The host_correlation_id of this ComputeHost.
        :type: str
        """
        self._host_correlation_id = host_correlation_id

    @property
    def compute_host_group_id(self):
        """
        Gets the compute_host_group_id of this ComputeHost.
        The `OCID`__ for the Customer-unique host group associated with the Compute Bare Metal Host.

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


        :return: The compute_host_group_id of this ComputeHost.
        :rtype: str
        """
        return self._compute_host_group_id

    @compute_host_group_id.setter
    def compute_host_group_id(self, compute_host_group_id):
        """
        Sets the compute_host_group_id of this ComputeHost.
        The `OCID`__ for the Customer-unique host group associated with the Compute Bare Metal Host.

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


        :param compute_host_group_id: The compute_host_group_id of this ComputeHost.
        :type: str
        """
        self._compute_host_group_id = compute_host_group_id

    @property
    def configuration_state(self):
        """
        Gets the configuration_state of this ComputeHost.
        Configuration state of the Compute Bare Metal Host.

        Allowed values for this property are: "CONFORMANT", "NON_CONFORMANT", "CHECKING", "PRE_APPLYING", "APPLYING", "UNKNOWN", 'UNKNOWN_ENUM_VALUE'.
        Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.


        :return: The configuration_state of this ComputeHost.
        :rtype: str
        """
        return self._configuration_state

    @configuration_state.setter
    def configuration_state(self, configuration_state):
        """
        Sets the configuration_state of this ComputeHost.
        Configuration state of the Compute Bare Metal Host.


        :param configuration_state: The configuration_state of this ComputeHost.
        :type: str
        """
        allowed_values = ["CONFORMANT", "NON_CONFORMANT", "CHECKING", "PRE_APPLYING", "APPLYING", "UNKNOWN"]
        if not value_allowed_none_or_none_sentinel(configuration_state, allowed_values):
            configuration_state = 'UNKNOWN_ENUM_VALUE'
        self._configuration_state = configuration_state

    @property
    def time_configuration_check(self):
        """
        Gets the time_configuration_check of this ComputeHost.
        The date and time that the compute bare metal host configuration check was updated, in the format defined by `RFC3339`__.

        Example: `2016-08-25T21:10:29.600Z`

        __ https://tools.ietf.org/html/rfc3339


        :return: The time_configuration_check of this ComputeHost.
        :rtype: datetime
        """
        return self._time_configuration_check

    @time_configuration_check.setter
    def time_configuration_check(self, time_configuration_check):
        """
        Sets the time_configuration_check of this ComputeHost.
        The date and time that the compute bare metal host configuration check was updated, in the format defined by `RFC3339`__.

        Example: `2016-08-25T21:10:29.600Z`

        __ https://tools.ietf.org/html/rfc3339


        :param time_configuration_check: The time_configuration_check of this ComputeHost.
        :type: datetime
        """
        self._time_configuration_check = time_configuration_check

    @property
    def configuration_data(self):
        """
        Gets the configuration_data of this ComputeHost.

        :return: The configuration_data of this ComputeHost.
        :rtype: oci.core.models.ComputeHostConfigurationData
        """
        return self._configuration_data

    @configuration_data.setter
    def configuration_data(self, configuration_data):
        """
        Sets the configuration_data of this ComputeHost.

        :param configuration_data: The configuration_data of this ComputeHost.
        :type: oci.core.models.ComputeHostConfigurationData
        """
        self._configuration_data = configuration_data

    @property
    def recycle_details(self):
        """
        Gets the recycle_details of this ComputeHost.

        :return: The recycle_details of this ComputeHost.
        :rtype: oci.core.models.RecycleDetails
        """
        return self._recycle_details

    @recycle_details.setter
    def recycle_details(self, recycle_details):
        """
        Sets the recycle_details of this ComputeHost.

        :param recycle_details: The recycle_details of this ComputeHost.
        :type: oci.core.models.RecycleDetails
        """
        self._recycle_details = recycle_details

    @property
    def firmware_bundle_id(self):
        """
        Gets the firmware_bundle_id of this ComputeHost.
        The `OCID`__ for the Customer-unique firmware bundle associated with the Host.

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


        :return: The firmware_bundle_id of this ComputeHost.
        :rtype: str
        """
        return self._firmware_bundle_id

    @firmware_bundle_id.setter
    def firmware_bundle_id(self, firmware_bundle_id):
        """
        Sets the firmware_bundle_id of this ComputeHost.
        The `OCID`__ for the Customer-unique firmware bundle associated with the Host.

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


        :param firmware_bundle_id: The firmware_bundle_id of this ComputeHost.
        :type: str
        """
        self._firmware_bundle_id = firmware_bundle_id

    @property
    def platform(self):
        """
        Gets the platform of this ComputeHost.
        The platform of the host


        :return: The platform of this ComputeHost.
        :rtype: str
        """
        return self._platform

    @platform.setter
    def platform(self, platform):
        """
        Sets the platform of this ComputeHost.
        The platform of the host


        :param platform: The platform of this ComputeHost.
        :type: str
        """
        self._platform = platform

    @property
    def network_block_id(self):
        """
        Gets the network_block_id of this ComputeHost.
        The `OCID`__ for Customer-unique Network Block

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


        :return: The network_block_id of this ComputeHost.
        :rtype: str
        """
        return self._network_block_id

    @network_block_id.setter
    def network_block_id(self, network_block_id):
        """
        Sets the network_block_id of this ComputeHost.
        The `OCID`__ for Customer-unique Network Block

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


        :param network_block_id: The network_block_id of this ComputeHost.
        :type: str
        """
        self._network_block_id = network_block_id

    @property
    def local_block_id(self):
        """
        Gets the local_block_id of this ComputeHost.
        The `OCID`__ for Customer-unique Local Block

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


        :return: The local_block_id of this ComputeHost.
        :rtype: str
        """
        return self._local_block_id

    @local_block_id.setter
    def local_block_id(self, local_block_id):
        """
        Sets the local_block_id of this ComputeHost.
        The `OCID`__ for Customer-unique Local Block

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


        :param local_block_id: The local_block_id of this ComputeHost.
        :type: str
        """
        self._local_block_id = local_block_id

    @property
    def gpu_memory_fabric_id(self):
        """
        Gets the gpu_memory_fabric_id of this ComputeHost.
        The `OCID`__ for Customer-unique GPU Memory Fabric

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


        :return: The gpu_memory_fabric_id of this ComputeHost.
        :rtype: str
        """
        return self._gpu_memory_fabric_id

    @gpu_memory_fabric_id.setter
    def gpu_memory_fabric_id(self, gpu_memory_fabric_id):
        """
        Sets the gpu_memory_fabric_id of this ComputeHost.
        The `OCID`__ for Customer-unique GPU Memory Fabric

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


        :param gpu_memory_fabric_id: The gpu_memory_fabric_id of this ComputeHost.
        :type: str
        """
        self._gpu_memory_fabric_id = gpu_memory_fabric_id

    @property
    def instance_id(self):
        """
        Gets the instance_id of this ComputeHost.
        The public `OCID`__ for the Virtual Machine or Bare Metal instance

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


        :return: The instance_id of this ComputeHost.
        :rtype: str
        """
        return self._instance_id

    @instance_id.setter
    def instance_id(self, instance_id):
        """
        Sets the instance_id of this ComputeHost.
        The public `OCID`__ for the Virtual Machine or Bare Metal instance

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


        :param instance_id: The instance_id of this ComputeHost.
        :type: str
        """
        self._instance_id = instance_id

    @property
    def shape(self):
        """
        **[Required]** Gets the shape of this ComputeHost.
        The shape of host


        :return: The shape of this ComputeHost.
        :rtype: str
        """
        return self._shape

    @shape.setter
    def shape(self, shape):
        """
        Sets the shape of this ComputeHost.
        The shape of host


        :param shape: The shape of this ComputeHost.
        :type: str
        """
        self._shape = shape

    @property
    def health(self):
        """
        **[Required]** Gets the health of this ComputeHost.
        The heathy state of the host

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


        :return: The health of this ComputeHost.
        :rtype: str
        """
        return self._health

    @health.setter
    def health(self, health):
        """
        Sets the health of this ComputeHost.
        The heathy state of the host


        :param health: The health of this ComputeHost.
        :type: str
        """
        allowed_values = ["HEALTHY", "UNHEALTHY"]
        if not value_allowed_none_or_none_sentinel(health, allowed_values):
            health = 'UNKNOWN_ENUM_VALUE'
        self._health = health

    @property
    def additional_data(self):
        """
        Gets the additional_data of this ComputeHost.
        Additional data that can be exposed to the customer.  Will include raw fault codes for strategic customers


        :return: The additional_data of this ComputeHost.
        :rtype: dict(str, object)
        """
        return self._additional_data

    @additional_data.setter
    def additional_data(self, additional_data):
        """
        Sets the additional_data of this ComputeHost.
        Additional data that can be exposed to the customer.  Will include raw fault codes for strategic customers


        :param additional_data: The additional_data of this ComputeHost.
        :type: dict(str, object)
        """
        self._additional_data = additional_data

    @property
    def lifecycle_state(self):
        """
        **[Required]** Gets the lifecycle_state of this ComputeHost.
        The lifecycle state of the host

        Allowed values for this property are: "AVAILABLE", "OCCUPIED", "PROVISIONING", "REPAIR", "UNAVAILABLE", 'UNKNOWN_ENUM_VALUE'.
        Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.


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

    @lifecycle_state.setter
    def lifecycle_state(self, lifecycle_state):
        """
        Sets the lifecycle_state of this ComputeHost.
        The lifecycle state of the host


        :param lifecycle_state: The lifecycle_state of this ComputeHost.
        :type: str
        """
        allowed_values = ["AVAILABLE", "OCCUPIED", "PROVISIONING", "REPAIR", "UNAVAILABLE"]
        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 ComputeHost.
        A free-form description detailing why the host is in its current state.


        :return: The lifecycle_details of this ComputeHost.
        :rtype: dict(str, object)
        """
        return self._lifecycle_details

    @lifecycle_details.setter
    def lifecycle_details(self, lifecycle_details):
        """
        Sets the lifecycle_details of this ComputeHost.
        A free-form description detailing why the host is in its current state.


        :param lifecycle_details: The lifecycle_details of this ComputeHost.
        :type: dict(str, object)
        """
        self._lifecycle_details = lifecycle_details

    @property
    def capacity_reservation_id(self):
        """
        Gets the capacity_reservation_id of this ComputeHost.
        The `OCID`__ for the Capacity Reserver that is currently on host

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


        :return: The capacity_reservation_id of this ComputeHost.
        :rtype: str
        """
        return self._capacity_reservation_id

    @capacity_reservation_id.setter
    def capacity_reservation_id(self, capacity_reservation_id):
        """
        Sets the capacity_reservation_id of this ComputeHost.
        The `OCID`__ for the Capacity Reserver that is currently on host

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


        :param capacity_reservation_id: The capacity_reservation_id of this ComputeHost.
        :type: str
        """
        self._capacity_reservation_id = capacity_reservation_id

    @property
    def impacted_component_details(self):
        """
        Gets the impacted_component_details of this ComputeHost.
        A list that contains impacted components related to an unhealthy host. An impacted component will be a
        free-form structure of key values pairs that will provide more or less details based on data tiering


        :return: The impacted_component_details of this ComputeHost.
        :rtype: dict(str, object)
        """
        return self._impacted_component_details

    @impacted_component_details.setter
    def impacted_component_details(self, impacted_component_details):
        """
        Sets the impacted_component_details of this ComputeHost.
        A list that contains impacted components related to an unhealthy host. An impacted component will be a
        free-form structure of key values pairs that will provide more or less details based on data tiering


        :param impacted_component_details: The impacted_component_details of this ComputeHost.
        :type: dict(str, object)
        """
        self._impacted_component_details = impacted_component_details

    @property
    def time_created(self):
        """
        **[Required]** Gets the time_created of this ComputeHost.
        The date and time that the compute host record was created, in the format defined by `RFC3339`__.

        Example: `2016-08-25T21:10:29.600Z`

        __ https://tools
        .ietf.org/html/rfc3339


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

    @time_created.setter
    def time_created(self, time_created):
        """
        Sets the time_created of this ComputeHost.
        The date and time that the compute host record was created, in the format defined by `RFC3339`__.

        Example: `2016-08-25T21:10:29.600Z`

        __ https://tools
        .ietf.org/html/rfc3339


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

    @property
    def time_updated(self):
        """
        **[Required]** Gets the time_updated of this ComputeHost.
        The date and time that the compute host record was updated, in the format defined by `RFC3339`__.

        Example: `2016-08-25T21:10:29.600Z`

        __ https://tools.ietf.org/html/rfc3339


        :return: The time_updated of this ComputeHost.
        :rtype: datetime
        """
        return self._time_updated

    @time_updated.setter
    def time_updated(self, time_updated):
        """
        Sets the time_updated of this ComputeHost.
        The date and time that the compute host record was updated, in the format defined by `RFC3339`__.

        Example: `2016-08-25T21:10:29.600Z`

        __ https://tools.ietf.org/html/rfc3339


        :param time_updated: The time_updated of this ComputeHost.
        :type: datetime
        """
        self._time_updated = time_updated

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

        Example: `{\"Operations\": {\"CostCenter\": \"42\"}}`

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


        :return: The defined_tags of this ComputeHost.
        :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 ComputeHost.
        Defined tags for this resource. Each key is predefined and scoped to a
        namespace. For more information, see `Resource Tags`__.

        Example: `{\"Operations\": {\"CostCenter\": \"42\"}}`

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


        :param defined_tags: The defined_tags of this ComputeHost.
        :type: dict(str, dict(str, object))
        """
        self._defined_tags = defined_tags

    @property
    def display_name(self):
        """
        Gets the display_name of this ComputeHost.
        A user-friendly name. Does not have to be unique, and it's changeable.
        Avoid entering confidential information.


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

    @display_name.setter
    def display_name(self, display_name):
        """
        Sets the display_name of this ComputeHost.
        A user-friendly name. Does not have to be unique, and it's changeable.
        Avoid entering confidential information.


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

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

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