# coding: utf-8
# Copyright (c) 2016, 2021, 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.


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 ServiceCatalogAssociation(object):
    """
    The detailed model for service catalog association.
    """

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

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

        :param service_catalog_id:
            The value to assign to the service_catalog_id property of this ServiceCatalogAssociation.
        :type service_catalog_id: str

        :param entity_id:
            The value to assign to the entity_id property of this ServiceCatalogAssociation.
        :type entity_id: str

        :param entity_type:
            The value to assign to the entity_type property of this ServiceCatalogAssociation.
        :type entity_type: str

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

        """
        self.swagger_types = {
            'id': 'str',
            'service_catalog_id': 'str',
            'entity_id': 'str',
            'entity_type': 'str',
            'time_created': 'datetime'
        }

        self.attribute_map = {
            'id': 'id',
            'service_catalog_id': 'serviceCatalogId',
            'entity_id': 'entityId',
            'entity_type': 'entityType',
            'time_created': 'timeCreated'
        }

        self._id = None
        self._service_catalog_id = None
        self._entity_id = None
        self._entity_type = None
        self._time_created = None

    @property
    def id(self):
        """
        **[Required]** Gets the id of this ServiceCatalogAssociation.
        Identifier of the association.


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

    @id.setter
    def id(self, id):
        """
        Sets the id of this ServiceCatalogAssociation.
        Identifier of the association.


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

    @property
    def service_catalog_id(self):
        """
        **[Required]** Gets the service_catalog_id of this ServiceCatalogAssociation.
        Identifier of the service catalog.


        :return: The service_catalog_id of this ServiceCatalogAssociation.
        :rtype: str
        """
        return self._service_catalog_id

    @service_catalog_id.setter
    def service_catalog_id(self, service_catalog_id):
        """
        Sets the service_catalog_id of this ServiceCatalogAssociation.
        Identifier of the service catalog.


        :param service_catalog_id: The service_catalog_id of this ServiceCatalogAssociation.
        :type: str
        """
        self._service_catalog_id = service_catalog_id

    @property
    def entity_id(self):
        """
        **[Required]** Gets the entity_id of this ServiceCatalogAssociation.
        Identifier of the entity being associated with service catalog.


        :return: The entity_id of this ServiceCatalogAssociation.
        :rtype: str
        """
        return self._entity_id

    @entity_id.setter
    def entity_id(self, entity_id):
        """
        Sets the entity_id of this ServiceCatalogAssociation.
        Identifier of the entity being associated with service catalog.


        :param entity_id: The entity_id of this ServiceCatalogAssociation.
        :type: str
        """
        self._entity_id = entity_id

    @property
    def entity_type(self):
        """
        Gets the entity_type of this ServiceCatalogAssociation.
        The type of the entity that is associated with the service catalog.


        :return: The entity_type of this ServiceCatalogAssociation.
        :rtype: str
        """
        return self._entity_type

    @entity_type.setter
    def entity_type(self, entity_type):
        """
        Sets the entity_type of this ServiceCatalogAssociation.
        The type of the entity that is associated with the service catalog.


        :param entity_type: The entity_type of this ServiceCatalogAssociation.
        :type: str
        """
        self._entity_type = entity_type

    @property
    def time_created(self):
        """
        **[Required]** Gets the time_created of this ServiceCatalogAssociation.
        Timestamp of when the resource was associated with service catalog.


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

    @time_created.setter
    def time_created(self, time_created):
        """
        Sets the time_created of this ServiceCatalogAssociation.
        Timestamp of when the resource was associated with service catalog.


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

    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
