# 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: 20220919

from .target_environment import TargetEnvironment
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 OlvmTargetEnvironment(TargetEnvironment):
    """
    OLVM target enviroment
    """

    def __init__(self, **kwargs):
        """
        Initializes a new OlvmTargetEnvironment object with values from keyword arguments. The default value of the :py:attr:`~oci.cloud_migrations.models.OlvmTargetEnvironment.target_environment_type` attribute
        of this class is ``OLVM_TARGET_ENV`` and it should not be changed.
        The following keyword arguments are supported (corresponding to the getters/setters of this class):

        :param target_compartment_id:
            The value to assign to the target_compartment_id property of this OlvmTargetEnvironment.
        :type target_compartment_id: str

        :param target_environment_type:
            The value to assign to the target_environment_type property of this OlvmTargetEnvironment.
            Allowed values for this property are: "VM_TARGET_ENV", "OLVM_TARGET_ENV"
        :type target_environment_type: str

        :param cluster_asset_id:
            The value to assign to the cluster_asset_id property of this OlvmTargetEnvironment.
        :type cluster_asset_id: str

        :param vnic_profile_asset_id:
            The value to assign to the vnic_profile_asset_id property of this OlvmTargetEnvironment.
        :type vnic_profile_asset_id: str

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

        :param preferred_shape_type:
            The value to assign to the preferred_shape_type property of this OlvmTargetEnvironment.
        :type preferred_shape_type: str

        """
        self.swagger_types = {
            'target_compartment_id': 'str',
            'target_environment_type': 'str',
            'cluster_asset_id': 'str',
            'vnic_profile_asset_id': 'str',
            'olvm_templates': 'dict(str, str)',
            'preferred_shape_type': 'str'
        }
        self.attribute_map = {
            'target_compartment_id': 'targetCompartmentId',
            'target_environment_type': 'targetEnvironmentType',
            'cluster_asset_id': 'clusterAssetId',
            'vnic_profile_asset_id': 'vnicProfileAssetId',
            'olvm_templates': 'olvmTemplates',
            'preferred_shape_type': 'preferredShapeType'
        }
        self._target_compartment_id = None
        self._target_environment_type = None
        self._cluster_asset_id = None
        self._vnic_profile_asset_id = None
        self._olvm_templates = None
        self._preferred_shape_type = None
        self._target_environment_type = 'OLVM_TARGET_ENV'

    @property
    def cluster_asset_id(self):
        """
        **[Required]** Gets the cluster_asset_id of this OlvmTargetEnvironment.
        Inventory asset id of the olvm cluster


        :return: The cluster_asset_id of this OlvmTargetEnvironment.
        :rtype: str
        """
        return self._cluster_asset_id

    @cluster_asset_id.setter
    def cluster_asset_id(self, cluster_asset_id):
        """
        Sets the cluster_asset_id of this OlvmTargetEnvironment.
        Inventory asset id of the olvm cluster


        :param cluster_asset_id: The cluster_asset_id of this OlvmTargetEnvironment.
        :type: str
        """
        self._cluster_asset_id = cluster_asset_id

    @property
    def vnic_profile_asset_id(self):
        """
        **[Required]** Gets the vnic_profile_asset_id of this OlvmTargetEnvironment.
        Inventory asset Id of the vnic profile


        :return: The vnic_profile_asset_id of this OlvmTargetEnvironment.
        :rtype: str
        """
        return self._vnic_profile_asset_id

    @vnic_profile_asset_id.setter
    def vnic_profile_asset_id(self, vnic_profile_asset_id):
        """
        Sets the vnic_profile_asset_id of this OlvmTargetEnvironment.
        Inventory asset Id of the vnic profile


        :param vnic_profile_asset_id: The vnic_profile_asset_id of this OlvmTargetEnvironment.
        :type: str
        """
        self._vnic_profile_asset_id = vnic_profile_asset_id

    @property
    def olvm_templates(self):
        """
        Gets the olvm_templates of this OlvmTargetEnvironment.
        OLVM OS type to inventory asset id of the template


        :return: The olvm_templates of this OlvmTargetEnvironment.
        :rtype: dict(str, str)
        """
        return self._olvm_templates

    @olvm_templates.setter
    def olvm_templates(self, olvm_templates):
        """
        Sets the olvm_templates of this OlvmTargetEnvironment.
        OLVM OS type to inventory asset id of the template


        :param olvm_templates: The olvm_templates of this OlvmTargetEnvironment.
        :type: dict(str, str)
        """
        self._olvm_templates = olvm_templates

    @property
    def preferred_shape_type(self):
        """
        Gets the preferred_shape_type of this OlvmTargetEnvironment.
        Preferred VM shape type provided by the customer.


        :return: The preferred_shape_type of this OlvmTargetEnvironment.
        :rtype: str
        """
        return self._preferred_shape_type

    @preferred_shape_type.setter
    def preferred_shape_type(self, preferred_shape_type):
        """
        Sets the preferred_shape_type of this OlvmTargetEnvironment.
        Preferred VM shape type provided by the customer.


        :param preferred_shape_type: The preferred_shape_type of this OlvmTargetEnvironment.
        :type: str
        """
        self._preferred_shape_type = preferred_shape_type

    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
