# 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 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 OlvmIcon(object):
    """
    Icon of virtual machine or template.
    """

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

        :param comment:
            The value to assign to the comment property of this OlvmIcon.
        :type comment: str

        :param data:
            The value to assign to the data property of this OlvmIcon.
        :type data: str

        :param description:
            The value to assign to the description property of this OlvmIcon.
        :type description: str

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

        :param media_type:
            The value to assign to the media_type property of this OlvmIcon.
        :type media_type: str

        :param name:
            The value to assign to the name property of this OlvmIcon.
        :type name: str

        """
        self.swagger_types = {
            'comment': 'str',
            'data': 'str',
            'description': 'str',
            'id': 'str',
            'media_type': 'str',
            'name': 'str'
        }
        self.attribute_map = {
            'comment': 'comment',
            'data': 'data',
            'description': 'description',
            'id': 'id',
            'media_type': 'mediaType',
            'name': 'name'
        }
        self._comment = None
        self._data = None
        self._description = None
        self._id = None
        self._media_type = None
        self._name = None

    @property
    def comment(self):
        """
        Gets the comment of this OlvmIcon.
        Free text containing comments about this object.


        :return: The comment of this OlvmIcon.
        :rtype: str
        """
        return self._comment

    @comment.setter
    def comment(self, comment):
        """
        Sets the comment of this OlvmIcon.
        Free text containing comments about this object.


        :param comment: The comment of this OlvmIcon.
        :type: str
        """
        self._comment = comment

    @property
    def data(self):
        """
        Gets the data of this OlvmIcon.
        Base64 encode content of the icon file.


        :return: The data of this OlvmIcon.
        :rtype: str
        """
        return self._data

    @data.setter
    def data(self, data):
        """
        Sets the data of this OlvmIcon.
        Base64 encode content of the icon file.


        :param data: The data of this OlvmIcon.
        :type: str
        """
        self._data = data

    @property
    def description(self):
        """
        Gets the description of this OlvmIcon.
        A human-readable description in plain text.


        :return: The description of this OlvmIcon.
        :rtype: str
        """
        return self._description

    @description.setter
    def description(self, description):
        """
        Sets the description of this OlvmIcon.
        A human-readable description in plain text.


        :param description: The description of this OlvmIcon.
        :type: str
        """
        self._description = description

    @property
    def id(self):
        """
        Gets the id of this OlvmIcon.
        A unique identifier.


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

    @id.setter
    def id(self, id):
        """
        Sets the id of this OlvmIcon.
        A unique identifier.


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

    @property
    def media_type(self):
        """
        Gets the media_type of this OlvmIcon.
        Format of icon file.


        :return: The media_type of this OlvmIcon.
        :rtype: str
        """
        return self._media_type

    @media_type.setter
    def media_type(self, media_type):
        """
        Sets the media_type of this OlvmIcon.
        Format of icon file.


        :param media_type: The media_type of this OlvmIcon.
        :type: str
        """
        self._media_type = media_type

    @property
    def name(self):
        """
        Gets the name of this OlvmIcon.
        Name of the property.


        :return: The name of this OlvmIcon.
        :rtype: str
        """
        return self._name

    @name.setter
    def name(self, name):
        """
        Sets the name of this OlvmIcon.
        Name of the property.


        :param name: The name of this OlvmIcon.
        :type: str
        """
        self._name = name

    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
