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

// Database Migration API
//
// Use the Oracle Cloud Infrastructure Database Migration APIs to perform database migration operations.
//

package databasemigration

import (
	"strings"
)

// MigrationStatusEnum Enum with underlying type: string
type MigrationStatusEnum string

// Set of constants representing the allowable values for MigrationStatusEnum
const (
	MigrationStatusReady      MigrationStatusEnum = "READY"
	MigrationStatusAborting   MigrationStatusEnum = "ABORTING"
	MigrationStatusValidating MigrationStatusEnum = "VALIDATING"
	MigrationStatusValidated  MigrationStatusEnum = "VALIDATED"
	MigrationStatusAssessed   MigrationStatusEnum = "ASSESSED"
	MigrationStatusWaiting    MigrationStatusEnum = "WAITING"
	MigrationStatusMigrating  MigrationStatusEnum = "MIGRATING"
	MigrationStatusDone       MigrationStatusEnum = "DONE"
)

var mappingMigrationStatusEnum = map[string]MigrationStatusEnum{
	"READY":      MigrationStatusReady,
	"ABORTING":   MigrationStatusAborting,
	"VALIDATING": MigrationStatusValidating,
	"VALIDATED":  MigrationStatusValidated,
	"ASSESSED":   MigrationStatusAssessed,
	"WAITING":    MigrationStatusWaiting,
	"MIGRATING":  MigrationStatusMigrating,
	"DONE":       MigrationStatusDone,
}

var mappingMigrationStatusEnumLowerCase = map[string]MigrationStatusEnum{
	"ready":      MigrationStatusReady,
	"aborting":   MigrationStatusAborting,
	"validating": MigrationStatusValidating,
	"validated":  MigrationStatusValidated,
	"assessed":   MigrationStatusAssessed,
	"waiting":    MigrationStatusWaiting,
	"migrating":  MigrationStatusMigrating,
	"done":       MigrationStatusDone,
}

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

// GetMigrationStatusEnumStringValues Enumerates the set of values in String for MigrationStatusEnum
func GetMigrationStatusEnumStringValues() []string {
	return []string{
		"READY",
		"ABORTING",
		"VALIDATING",
		"VALIDATED",
		"ASSESSED",
		"WAITING",
		"MIGRATING",
		"DONE",
	}
}

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