// Copyright (c) 2016, 2018, 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.
// Code generated. DO NOT EDIT.

// Marketplace Service API
//
// Use the Marketplace API to manage applications in Oracle Cloud Infrastructure Marketplace. For more information, see Overview of Marketplace (https://docs.oracle.com/iaas/Content/Marketplace/Concepts/marketoverview.htm)
//

package marketplace

import (
	"strings"
)

// IneligibilityReasonEnumEnum Enum with underlying type: string
type IneligibilityReasonEnumEnum string

// Set of constants representing the allowable values for IneligibilityReasonEnumEnum
const (
	IneligibilityReasonEnumIneligibleAccountCountry                      IneligibilityReasonEnumEnum = "INELIGIBLE_ACCOUNT_COUNTRY"
	IneligibilityReasonEnumIneligibleRegion                              IneligibilityReasonEnumEnum = "INELIGIBLE_REGION"
	IneligibilityReasonEnumIneligibleAccountBlacklisted                  IneligibilityReasonEnumEnum = "INELIGIBLE_ACCOUNT_BLACKLISTED"
	IneligibilityReasonEnumIneligibleAccountFeatureDisabled              IneligibilityReasonEnumEnum = "INELIGIBLE_ACCOUNT_FEATURE_DISABLED"
	IneligibilityReasonEnumIneligibleAccountCurrency                     IneligibilityReasonEnumEnum = "INELIGIBLE_ACCOUNT_CURRENCY"
	IneligibilityReasonEnumIneligibleAccountNotPaid                      IneligibilityReasonEnumEnum = "INELIGIBLE_ACCOUNT_NOT_PAID"
	IneligibilityReasonEnumIneligibleAccountInternal                     IneligibilityReasonEnumEnum = "INELIGIBLE_ACCOUNT_INTERNAL"
	IneligibilityReasonEnumIneligibleAccountGovSubscription              IneligibilityReasonEnumEnum = "INELIGIBLE_ACCOUNT_GOV_SUBSCRIPTION"
	IneligibilityReasonEnumIneligiblePaidListingThrottled                IneligibilityReasonEnumEnum = "INELIGIBLE_PAID_LISTING_THROTTLED"
	IneligibilityReasonEnumIneligibleAccountNotAvailable                 IneligibilityReasonEnumEnum = "INELIGIBLE_ACCOUNT_NOT_AVAILABLE"
	IneligibilityReasonEnumIneligibleAccountNotMonthlyInclusive          IneligibilityReasonEnumEnum = "INELIGIBLE_ACCOUNT_NOT_MONTHLY_INCLUSIVE"
	IneligibilityReasonEnumImageMetaDataSo                               IneligibilityReasonEnumEnum = "IMAGE_META_DATA_SO"
	IneligibilityReasonEnumIneligibleAccountTenancyNotAllowedAccessImage IneligibilityReasonEnumEnum = "INELIGIBLE_ACCOUNT_TENANCY_NOT_ALLOWED_ACCESS_IMAGE"
	IneligibilityReasonEnumIneligibleAccountGovLaunchNonGovListing       IneligibilityReasonEnumEnum = "INELIGIBLE_ACCOUNT_GOV_LAUNCH_NON_GOV_LISTING"
	IneligibilityReasonEnumAgreementNotAccepted                          IneligibilityReasonEnumEnum = "AGREEMENT_NOT_ACCEPTED"
	IneligibilityReasonEnumNotAuthorized                                 IneligibilityReasonEnumEnum = "NOT_AUTHORIZED"
	IneligibilityReasonEnumEligible                                      IneligibilityReasonEnumEnum = "ELIGIBLE"
)

var mappingIneligibilityReasonEnumEnum = map[string]IneligibilityReasonEnumEnum{
	"INELIGIBLE_ACCOUNT_COUNTRY":                          IneligibilityReasonEnumIneligibleAccountCountry,
	"INELIGIBLE_REGION":                                   IneligibilityReasonEnumIneligibleRegion,
	"INELIGIBLE_ACCOUNT_BLACKLISTED":                      IneligibilityReasonEnumIneligibleAccountBlacklisted,
	"INELIGIBLE_ACCOUNT_FEATURE_DISABLED":                 IneligibilityReasonEnumIneligibleAccountFeatureDisabled,
	"INELIGIBLE_ACCOUNT_CURRENCY":                         IneligibilityReasonEnumIneligibleAccountCurrency,
	"INELIGIBLE_ACCOUNT_NOT_PAID":                         IneligibilityReasonEnumIneligibleAccountNotPaid,
	"INELIGIBLE_ACCOUNT_INTERNAL":                         IneligibilityReasonEnumIneligibleAccountInternal,
	"INELIGIBLE_ACCOUNT_GOV_SUBSCRIPTION":                 IneligibilityReasonEnumIneligibleAccountGovSubscription,
	"INELIGIBLE_PAID_LISTING_THROTTLED":                   IneligibilityReasonEnumIneligiblePaidListingThrottled,
	"INELIGIBLE_ACCOUNT_NOT_AVAILABLE":                    IneligibilityReasonEnumIneligibleAccountNotAvailable,
	"INELIGIBLE_ACCOUNT_NOT_MONTHLY_INCLUSIVE":            IneligibilityReasonEnumIneligibleAccountNotMonthlyInclusive,
	"IMAGE_META_DATA_SO":                                  IneligibilityReasonEnumImageMetaDataSo,
	"INELIGIBLE_ACCOUNT_TENANCY_NOT_ALLOWED_ACCESS_IMAGE": IneligibilityReasonEnumIneligibleAccountTenancyNotAllowedAccessImage,
	"INELIGIBLE_ACCOUNT_GOV_LAUNCH_NON_GOV_LISTING":       IneligibilityReasonEnumIneligibleAccountGovLaunchNonGovListing,
	"AGREEMENT_NOT_ACCEPTED":                              IneligibilityReasonEnumAgreementNotAccepted,
	"NOT_AUTHORIZED":                                      IneligibilityReasonEnumNotAuthorized,
	"ELIGIBLE":                                            IneligibilityReasonEnumEligible,
}

var mappingIneligibilityReasonEnumEnumLowerCase = map[string]IneligibilityReasonEnumEnum{
	"ineligible_account_country":                          IneligibilityReasonEnumIneligibleAccountCountry,
	"ineligible_region":                                   IneligibilityReasonEnumIneligibleRegion,
	"ineligible_account_blacklisted":                      IneligibilityReasonEnumIneligibleAccountBlacklisted,
	"ineligible_account_feature_disabled":                 IneligibilityReasonEnumIneligibleAccountFeatureDisabled,
	"ineligible_account_currency":                         IneligibilityReasonEnumIneligibleAccountCurrency,
	"ineligible_account_not_paid":                         IneligibilityReasonEnumIneligibleAccountNotPaid,
	"ineligible_account_internal":                         IneligibilityReasonEnumIneligibleAccountInternal,
	"ineligible_account_gov_subscription":                 IneligibilityReasonEnumIneligibleAccountGovSubscription,
	"ineligible_paid_listing_throttled":                   IneligibilityReasonEnumIneligiblePaidListingThrottled,
	"ineligible_account_not_available":                    IneligibilityReasonEnumIneligibleAccountNotAvailable,
	"ineligible_account_not_monthly_inclusive":            IneligibilityReasonEnumIneligibleAccountNotMonthlyInclusive,
	"image_meta_data_so":                                  IneligibilityReasonEnumImageMetaDataSo,
	"ineligible_account_tenancy_not_allowed_access_image": IneligibilityReasonEnumIneligibleAccountTenancyNotAllowedAccessImage,
	"ineligible_account_gov_launch_non_gov_listing":       IneligibilityReasonEnumIneligibleAccountGovLaunchNonGovListing,
	"agreement_not_accepted":                              IneligibilityReasonEnumAgreementNotAccepted,
	"not_authorized":                                      IneligibilityReasonEnumNotAuthorized,
	"eligible":                                            IneligibilityReasonEnumEligible,
}

// GetIneligibilityReasonEnumEnumValues Enumerates the set of values for IneligibilityReasonEnumEnum
func GetIneligibilityReasonEnumEnumValues() []IneligibilityReasonEnumEnum {
	values := make([]IneligibilityReasonEnumEnum, 0)
	for _, v := range mappingIneligibilityReasonEnumEnum {
		values = append(values, v)
	}
	return values
}

// GetIneligibilityReasonEnumEnumStringValues Enumerates the set of values in String for IneligibilityReasonEnumEnum
func GetIneligibilityReasonEnumEnumStringValues() []string {
	return []string{
		"INELIGIBLE_ACCOUNT_COUNTRY",
		"INELIGIBLE_REGION",
		"INELIGIBLE_ACCOUNT_BLACKLISTED",
		"INELIGIBLE_ACCOUNT_FEATURE_DISABLED",
		"INELIGIBLE_ACCOUNT_CURRENCY",
		"INELIGIBLE_ACCOUNT_NOT_PAID",
		"INELIGIBLE_ACCOUNT_INTERNAL",
		"INELIGIBLE_ACCOUNT_GOV_SUBSCRIPTION",
		"INELIGIBLE_PAID_LISTING_THROTTLED",
		"INELIGIBLE_ACCOUNT_NOT_AVAILABLE",
		"INELIGIBLE_ACCOUNT_NOT_MONTHLY_INCLUSIVE",
		"IMAGE_META_DATA_SO",
		"INELIGIBLE_ACCOUNT_TENANCY_NOT_ALLOWED_ACCESS_IMAGE",
		"INELIGIBLE_ACCOUNT_GOV_LAUNCH_NON_GOV_LISTING",
		"AGREEMENT_NOT_ACCEPTED",
		"NOT_AUTHORIZED",
		"ELIGIBLE",
	}
}

// GetMappingIneligibilityReasonEnumEnum performs case Insensitive comparison on enum value and return the desired enum
func GetMappingIneligibilityReasonEnumEnum(val string) (IneligibilityReasonEnumEnum, bool) {
	enum, ok := mappingIneligibilityReasonEnumEnumLowerCase[strings.ToLower(val)]
	return enum, ok
}
