// 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.

// Data Safe API
//
// APIs for using Oracle Data Safe.
//

package datasafe

import (
	"strings"
)

// TargetDatabaseGroupLifecycleStateEnum Enum with underlying type: string
type TargetDatabaseGroupLifecycleStateEnum string

// Set of constants representing the allowable values for TargetDatabaseGroupLifecycleStateEnum
const (
	TargetDatabaseGroupLifecycleStateCreating       TargetDatabaseGroupLifecycleStateEnum = "CREATING"
	TargetDatabaseGroupLifecycleStateUpdating       TargetDatabaseGroupLifecycleStateEnum = "UPDATING"
	TargetDatabaseGroupLifecycleStateActive         TargetDatabaseGroupLifecycleStateEnum = "ACTIVE"
	TargetDatabaseGroupLifecycleStateDeleting       TargetDatabaseGroupLifecycleStateEnum = "DELETING"
	TargetDatabaseGroupLifecycleStateDeleted        TargetDatabaseGroupLifecycleStateEnum = "DELETED"
	TargetDatabaseGroupLifecycleStateFailed         TargetDatabaseGroupLifecycleStateEnum = "FAILED"
	TargetDatabaseGroupLifecycleStateNeedsAttention TargetDatabaseGroupLifecycleStateEnum = "NEEDS_ATTENTION"
)

var mappingTargetDatabaseGroupLifecycleStateEnum = map[string]TargetDatabaseGroupLifecycleStateEnum{
	"CREATING":        TargetDatabaseGroupLifecycleStateCreating,
	"UPDATING":        TargetDatabaseGroupLifecycleStateUpdating,
	"ACTIVE":          TargetDatabaseGroupLifecycleStateActive,
	"DELETING":        TargetDatabaseGroupLifecycleStateDeleting,
	"DELETED":         TargetDatabaseGroupLifecycleStateDeleted,
	"FAILED":          TargetDatabaseGroupLifecycleStateFailed,
	"NEEDS_ATTENTION": TargetDatabaseGroupLifecycleStateNeedsAttention,
}

var mappingTargetDatabaseGroupLifecycleStateEnumLowerCase = map[string]TargetDatabaseGroupLifecycleStateEnum{
	"creating":        TargetDatabaseGroupLifecycleStateCreating,
	"updating":        TargetDatabaseGroupLifecycleStateUpdating,
	"active":          TargetDatabaseGroupLifecycleStateActive,
	"deleting":        TargetDatabaseGroupLifecycleStateDeleting,
	"deleted":         TargetDatabaseGroupLifecycleStateDeleted,
	"failed":          TargetDatabaseGroupLifecycleStateFailed,
	"needs_attention": TargetDatabaseGroupLifecycleStateNeedsAttention,
}

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

// GetTargetDatabaseGroupLifecycleStateEnumStringValues Enumerates the set of values in String for TargetDatabaseGroupLifecycleStateEnum
func GetTargetDatabaseGroupLifecycleStateEnumStringValues() []string {
	return []string{
		"CREATING",
		"UPDATING",
		"ACTIVE",
		"DELETING",
		"DELETED",
		"FAILED",
		"NEEDS_ATTENTION",
	}
}

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