# 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 .create_target_asset_details import CreateTargetAssetDetails
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 CreateOlvmTargetAssetDetails(CreateTargetAssetDetails):
    """
    Description of the OLVM target asset.
    """

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

        :param migration_plan_id:
            The value to assign to the migration_plan_id property of this CreateOlvmTargetAssetDetails.
        :type migration_plan_id: str

        :param type:
            The value to assign to the type property of this CreateOlvmTargetAssetDetails.
            Allowed values for this property are: "INSTANCE", "OLVM_INSTANCE"
        :type type: str

        :param is_excluded_from_execution:
            The value to assign to the is_excluded_from_execution property of this CreateOlvmTargetAssetDetails.
        :type is_excluded_from_execution: bool

        :param ms_license:
            The value to assign to the ms_license property of this CreateOlvmTargetAssetDetails.
        :type ms_license: str

        """
        self.swagger_types = {
            'migration_plan_id': 'str',
            'type': 'str',
            'is_excluded_from_execution': 'bool',
            'ms_license': 'str'
        }
        self.attribute_map = {
            'migration_plan_id': 'migrationPlanId',
            'type': 'type',
            'is_excluded_from_execution': 'isExcludedFromExecution',
            'ms_license': 'msLicense'
        }
        self._migration_plan_id = None
        self._type = None
        self._is_excluded_from_execution = None
        self._ms_license = None
        self._type = 'OLVM_INSTANCE'

    @property
    def ms_license(self):
        """
        Gets the ms_license of this CreateOlvmTargetAssetDetails.
        Microsoft license for the VM configuration.


        :return: The ms_license of this CreateOlvmTargetAssetDetails.
        :rtype: str
        """
        return self._ms_license

    @ms_license.setter
    def ms_license(self, ms_license):
        """
        Sets the ms_license of this CreateOlvmTargetAssetDetails.
        Microsoft license for the VM configuration.


        :param ms_license: The ms_license of this CreateOlvmTargetAssetDetails.
        :type: str
        """
        self._ms_license = ms_license

    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
