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

// Bastion API
//
// Use the Bastion API to provide restricted and time-limited access to target resources that don't have public endpoints. Bastions let authorized users connect from specific IP addresses to target resources using Secure Shell (SSH) sessions. For more information, see the Bastion documentation (https://docs.oracle.com/iaas/Content/Bastion/home.htm).
//

package bastion

import (
	"strings"
)

// SessionTypeEnum Enum with underlying type: string
type SessionTypeEnum string

// Set of constants representing the allowable values for SessionTypeEnum
const (
	SessionTypeManagedSsh            SessionTypeEnum = "MANAGED_SSH"
	SessionTypePortForwarding        SessionTypeEnum = "PORT_FORWARDING"
	SessionTypeDynamicPortForwarding SessionTypeEnum = "DYNAMIC_PORT_FORWARDING"
)

var mappingSessionTypeEnum = map[string]SessionTypeEnum{
	"MANAGED_SSH":             SessionTypeManagedSsh,
	"PORT_FORWARDING":         SessionTypePortForwarding,
	"DYNAMIC_PORT_FORWARDING": SessionTypeDynamicPortForwarding,
}

var mappingSessionTypeEnumLowerCase = map[string]SessionTypeEnum{
	"managed_ssh":             SessionTypeManagedSsh,
	"port_forwarding":         SessionTypePortForwarding,
	"dynamic_port_forwarding": SessionTypeDynamicPortForwarding,
}

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

// GetSessionTypeEnumStringValues Enumerates the set of values in String for SessionTypeEnum
func GetSessionTypeEnumStringValues() []string {
	return []string{
		"MANAGED_SSH",
		"PORT_FORWARDING",
		"DYNAMIC_PORT_FORWARDING",
	}
}

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