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


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 OlvmInitialization(object):
    """
    Type representing initialization configuration of a virtual machine.
    """

    #: A constant which can be used with the cloud_init_network_protocol property of a OlvmInitialization.
    #: This constant has a value of "ENI"
    CLOUD_INIT_NETWORK_PROTOCOL_ENI = "ENI"

    #: A constant which can be used with the cloud_init_network_protocol property of a OlvmInitialization.
    #: This constant has a value of "OPENSTACK_METADATA"
    CLOUD_INIT_NETWORK_PROTOCOL_OPENSTACK_METADATA = "OPENSTACK_METADATA"

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

        :param active_directory_ou:
            The value to assign to the active_directory_ou property of this OlvmInitialization.
        :type active_directory_ou: str

        :param cloud_init_network_protocol:
            The value to assign to the cloud_init_network_protocol property of this OlvmInitialization.
            Allowed values for this property are: "ENI", "OPENSTACK_METADATA"
        :type cloud_init_network_protocol: str

        :param configuration:
            The value to assign to the configuration property of this OlvmInitialization.
        :type configuration: oci.cloud_bridge.models.OlvmConfiguration

        :param custom_script:
            The value to assign to the custom_script property of this OlvmInitialization.
        :type custom_script: str

        :param dns_search:
            The value to assign to the dns_search property of this OlvmInitialization.
        :type dns_search: str

        :param dns_servers:
            The value to assign to the dns_servers property of this OlvmInitialization.
        :type dns_servers: str

        :param domain:
            The value to assign to the domain property of this OlvmInitialization.
        :type domain: str

        :param host_name:
            The value to assign to the host_name property of this OlvmInitialization.
        :type host_name: str

        :param input_locale:
            The value to assign to the input_locale property of this OlvmInitialization.
        :type input_locale: str

        :param nic_configurations:
            The value to assign to the nic_configurations property of this OlvmInitialization.
        :type nic_configurations: list[oci.cloud_bridge.models.OlvmNicConfiguration]

        :param org_name:
            The value to assign to the org_name property of this OlvmInitialization.
        :type org_name: str

        :param is_regenerate_ids:
            The value to assign to the is_regenerate_ids property of this OlvmInitialization.
        :type is_regenerate_ids: bool

        :param is_regenerate_ssh_keys:
            The value to assign to the is_regenerate_ssh_keys property of this OlvmInitialization.
        :type is_regenerate_ssh_keys: bool

        :param system_locale:
            The value to assign to the system_locale property of this OlvmInitialization.
        :type system_locale: str

        :param timezone:
            The value to assign to the timezone property of this OlvmInitialization.
        :type timezone: str

        :param ui_language:
            The value to assign to the ui_language property of this OlvmInitialization.
        :type ui_language: str

        :param user_locale:
            The value to assign to the user_locale property of this OlvmInitialization.
        :type user_locale: str

        :param username:
            The value to assign to the username property of this OlvmInitialization.
        :type username: str

        :param windows_license_key:
            The value to assign to the windows_license_key property of this OlvmInitialization.
        :type windows_license_key: str

        """
        self.swagger_types = {
            'active_directory_ou': 'str',
            'cloud_init_network_protocol': 'str',
            'configuration': 'OlvmConfiguration',
            'custom_script': 'str',
            'dns_search': 'str',
            'dns_servers': 'str',
            'domain': 'str',
            'host_name': 'str',
            'input_locale': 'str',
            'nic_configurations': 'list[OlvmNicConfiguration]',
            'org_name': 'str',
            'is_regenerate_ids': 'bool',
            'is_regenerate_ssh_keys': 'bool',
            'system_locale': 'str',
            'timezone': 'str',
            'ui_language': 'str',
            'user_locale': 'str',
            'username': 'str',
            'windows_license_key': 'str'
        }
        self.attribute_map = {
            'active_directory_ou': 'activeDirectoryOu',
            'cloud_init_network_protocol': 'cloudInitNetworkProtocol',
            'configuration': 'configuration',
            'custom_script': 'customScript',
            'dns_search': 'dnsSearch',
            'dns_servers': 'dnsServers',
            'domain': 'domain',
            'host_name': 'hostName',
            'input_locale': 'inputLocale',
            'nic_configurations': 'nicConfigurations',
            'org_name': 'orgName',
            'is_regenerate_ids': 'isRegenerateIds',
            'is_regenerate_ssh_keys': 'isRegenerateSshKeys',
            'system_locale': 'systemLocale',
            'timezone': 'timezone',
            'ui_language': 'uiLanguage',
            'user_locale': 'userLocale',
            'username': 'username',
            'windows_license_key': 'windowsLicenseKey'
        }
        self._active_directory_ou = None
        self._cloud_init_network_protocol = None
        self._configuration = None
        self._custom_script = None
        self._dns_search = None
        self._dns_servers = None
        self._domain = None
        self._host_name = None
        self._input_locale = None
        self._nic_configurations = None
        self._org_name = None
        self._is_regenerate_ids = None
        self._is_regenerate_ssh_keys = None
        self._system_locale = None
        self._timezone = None
        self._ui_language = None
        self._user_locale = None
        self._username = None
        self._windows_license_key = None

    @property
    def active_directory_ou(self):
        """
        Gets the active_directory_ou of this OlvmInitialization.
        Active Directory Organizational Unit.


        :return: The active_directory_ou of this OlvmInitialization.
        :rtype: str
        """
        return self._active_directory_ou

    @active_directory_ou.setter
    def active_directory_ou(self, active_directory_ou):
        """
        Sets the active_directory_ou of this OlvmInitialization.
        Active Directory Organizational Unit.


        :param active_directory_ou: The active_directory_ou of this OlvmInitialization.
        :type: str
        """
        self._active_directory_ou = active_directory_ou

    @property
    def cloud_init_network_protocol(self):
        """
        Gets the cloud_init_network_protocol of this OlvmInitialization.
        Defines the values for the cloud-init protocol. This protocol decides how the cloud-init network parameters are formatted before being passed to the virtual machine in order to be processed by cloud-init.

        Allowed values for this property are: "ENI", "OPENSTACK_METADATA"


        :return: The cloud_init_network_protocol of this OlvmInitialization.
        :rtype: str
        """
        return self._cloud_init_network_protocol

    @cloud_init_network_protocol.setter
    def cloud_init_network_protocol(self, cloud_init_network_protocol):
        """
        Sets the cloud_init_network_protocol of this OlvmInitialization.
        Defines the values for the cloud-init protocol. This protocol decides how the cloud-init network parameters are formatted before being passed to the virtual machine in order to be processed by cloud-init.


        :param cloud_init_network_protocol: The cloud_init_network_protocol of this OlvmInitialization.
        :type: str
        """
        allowed_values = ["ENI", "OPENSTACK_METADATA"]
        if not value_allowed_none_or_none_sentinel(cloud_init_network_protocol, allowed_values):
            raise ValueError(
                f"Invalid value for `cloud_init_network_protocol`, must be None or one of {allowed_values}"
            )
        self._cloud_init_network_protocol = cloud_init_network_protocol

    @property
    def configuration(self):
        """
        Gets the configuration of this OlvmInitialization.

        :return: The configuration of this OlvmInitialization.
        :rtype: oci.cloud_bridge.models.OlvmConfiguration
        """
        return self._configuration

    @configuration.setter
    def configuration(self, configuration):
        """
        Sets the configuration of this OlvmInitialization.

        :param configuration: The configuration of this OlvmInitialization.
        :type: oci.cloud_bridge.models.OlvmConfiguration
        """
        self._configuration = configuration

    @property
    def custom_script(self):
        """
        Gets the custom_script of this OlvmInitialization.
        Custom script that will be run when the VM starts.


        :return: The custom_script of this OlvmInitialization.
        :rtype: str
        """
        return self._custom_script

    @custom_script.setter
    def custom_script(self, custom_script):
        """
        Sets the custom_script of this OlvmInitialization.
        Custom script that will be run when the VM starts.


        :param custom_script: The custom_script of this OlvmInitialization.
        :type: str
        """
        self._custom_script = custom_script

    @property
    def dns_search(self):
        """
        Gets the dns_search of this OlvmInitialization.
        DNS Search of the virtual machine.


        :return: The dns_search of this OlvmInitialization.
        :rtype: str
        """
        return self._dns_search

    @dns_search.setter
    def dns_search(self, dns_search):
        """
        Sets the dns_search of this OlvmInitialization.
        DNS Search of the virtual machine.


        :param dns_search: The dns_search of this OlvmInitialization.
        :type: str
        """
        self._dns_search = dns_search

    @property
    def dns_servers(self):
        """
        Gets the dns_servers of this OlvmInitialization.
        DNS Servers of the virtual  machine.


        :return: The dns_servers of this OlvmInitialization.
        :rtype: str
        """
        return self._dns_servers

    @dns_servers.setter
    def dns_servers(self, dns_servers):
        """
        Sets the dns_servers of this OlvmInitialization.
        DNS Servers of the virtual  machine.


        :param dns_servers: The dns_servers of this OlvmInitialization.
        :type: str
        """
        self._dns_servers = dns_servers

    @property
    def domain(self):
        """
        Gets the domain of this OlvmInitialization.
        Domain of the virtual machine.


        :return: The domain of this OlvmInitialization.
        :rtype: str
        """
        return self._domain

    @domain.setter
    def domain(self, domain):
        """
        Sets the domain of this OlvmInitialization.
        Domain of the virtual machine.


        :param domain: The domain of this OlvmInitialization.
        :type: str
        """
        self._domain = domain

    @property
    def host_name(self):
        """
        Gets the host_name of this OlvmInitialization.
        Host name of the virtual machine.


        :return: The host_name of this OlvmInitialization.
        :rtype: str
        """
        return self._host_name

    @host_name.setter
    def host_name(self, host_name):
        """
        Sets the host_name of this OlvmInitialization.
        Host name of the virtual machine.


        :param host_name: The host_name of this OlvmInitialization.
        :type: str
        """
        self._host_name = host_name

    @property
    def input_locale(self):
        """
        Gets the input_locale of this OlvmInitialization.
        Input locale of the virtual machine.


        :return: The input_locale of this OlvmInitialization.
        :rtype: str
        """
        return self._input_locale

    @input_locale.setter
    def input_locale(self, input_locale):
        """
        Sets the input_locale of this OlvmInitialization.
        Input locale of the virtual machine.


        :param input_locale: The input_locale of this OlvmInitialization.
        :type: str
        """
        self._input_locale = input_locale

    @property
    def nic_configurations(self):
        """
        Gets the nic_configurations of this OlvmInitialization.
        The configuration of a virtual network interface.


        :return: The nic_configurations of this OlvmInitialization.
        :rtype: list[oci.cloud_bridge.models.OlvmNicConfiguration]
        """
        return self._nic_configurations

    @nic_configurations.setter
    def nic_configurations(self, nic_configurations):
        """
        Sets the nic_configurations of this OlvmInitialization.
        The configuration of a virtual network interface.


        :param nic_configurations: The nic_configurations of this OlvmInitialization.
        :type: list[oci.cloud_bridge.models.OlvmNicConfiguration]
        """
        self._nic_configurations = nic_configurations

    @property
    def org_name(self):
        """
        Gets the org_name of this OlvmInitialization.
        Organization name.


        :return: The org_name of this OlvmInitialization.
        :rtype: str
        """
        return self._org_name

    @org_name.setter
    def org_name(self, org_name):
        """
        Sets the org_name of this OlvmInitialization.
        Organization name.


        :param org_name: The org_name of this OlvmInitialization.
        :type: str
        """
        self._org_name = org_name

    @property
    def is_regenerate_ids(self):
        """
        Gets the is_regenerate_ids of this OlvmInitialization.
        Indicates if new IDs should be regenerated.


        :return: The is_regenerate_ids of this OlvmInitialization.
        :rtype: bool
        """
        return self._is_regenerate_ids

    @is_regenerate_ids.setter
    def is_regenerate_ids(self, is_regenerate_ids):
        """
        Sets the is_regenerate_ids of this OlvmInitialization.
        Indicates if new IDs should be regenerated.


        :param is_regenerate_ids: The is_regenerate_ids of this OlvmInitialization.
        :type: bool
        """
        self._is_regenerate_ids = is_regenerate_ids

    @property
    def is_regenerate_ssh_keys(self):
        """
        Gets the is_regenerate_ssh_keys of this OlvmInitialization.
        Indicates if new SSH Keys should be regenerated.


        :return: The is_regenerate_ssh_keys of this OlvmInitialization.
        :rtype: bool
        """
        return self._is_regenerate_ssh_keys

    @is_regenerate_ssh_keys.setter
    def is_regenerate_ssh_keys(self, is_regenerate_ssh_keys):
        """
        Sets the is_regenerate_ssh_keys of this OlvmInitialization.
        Indicates if new SSH Keys should be regenerated.


        :param is_regenerate_ssh_keys: The is_regenerate_ssh_keys of this OlvmInitialization.
        :type: bool
        """
        self._is_regenerate_ssh_keys = is_regenerate_ssh_keys

    @property
    def system_locale(self):
        """
        Gets the system_locale of this OlvmInitialization.
        System locale of the virtual machine.


        :return: The system_locale of this OlvmInitialization.
        :rtype: str
        """
        return self._system_locale

    @system_locale.setter
    def system_locale(self, system_locale):
        """
        Sets the system_locale of this OlvmInitialization.
        System locale of the virtual machine.


        :param system_locale: The system_locale of this OlvmInitialization.
        :type: str
        """
        self._system_locale = system_locale

    @property
    def timezone(self):
        """
        Gets the timezone of this OlvmInitialization.
        Timezone of the virtual machine.


        :return: The timezone of this OlvmInitialization.
        :rtype: str
        """
        return self._timezone

    @timezone.setter
    def timezone(self, timezone):
        """
        Sets the timezone of this OlvmInitialization.
        Timezone of the virtual machine.


        :param timezone: The timezone of this OlvmInitialization.
        :type: str
        """
        self._timezone = timezone

    @property
    def ui_language(self):
        """
        Gets the ui_language of this OlvmInitialization.
        UI Language of the virtual machine.


        :return: The ui_language of this OlvmInitialization.
        :rtype: str
        """
        return self._ui_language

    @ui_language.setter
    def ui_language(self, ui_language):
        """
        Sets the ui_language of this OlvmInitialization.
        UI Language of the virtual machine.


        :param ui_language: The ui_language of this OlvmInitialization.
        :type: str
        """
        self._ui_language = ui_language

    @property
    def user_locale(self):
        """
        Gets the user_locale of this OlvmInitialization.
        User Locale of the virtual machine.


        :return: The user_locale of this OlvmInitialization.
        :rtype: str
        """
        return self._user_locale

    @user_locale.setter
    def user_locale(self, user_locale):
        """
        Sets the user_locale of this OlvmInitialization.
        User Locale of the virtual machine.


        :param user_locale: The user_locale of this OlvmInitialization.
        :type: str
        """
        self._user_locale = user_locale

    @property
    def username(self):
        """
        Gets the username of this OlvmInitialization.
        User name of the virtual machine.


        :return: The username of this OlvmInitialization.
        :rtype: str
        """
        return self._username

    @username.setter
    def username(self, username):
        """
        Sets the username of this OlvmInitialization.
        User name of the virtual machine.


        :param username: The username of this OlvmInitialization.
        :type: str
        """
        self._username = username

    @property
    def windows_license_key(self):
        """
        Gets the windows_license_key of this OlvmInitialization.
        Windows License Key of the virtual machine.


        :return: The windows_license_key of this OlvmInitialization.
        :rtype: str
        """
        return self._windows_license_key

    @windows_license_key.setter
    def windows_license_key(self, windows_license_key):
        """
        Sets the windows_license_key of this OlvmInitialization.
        Windows License Key of the virtual machine.


        :param windows_license_key: The windows_license_key of this OlvmInitialization.
        :type: str
        """
        self._windows_license_key = windows_license_key

    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
