All Downloads are FREE. Search and download functionalities are using the official Maven repository.

commonMain.aws.sdk.kotlin.services.appstream.model.FleetErrorCode.kt Maven / Gradle / Ivy

There is a newer version: 1.3.99
Show newest version
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!

package aws.sdk.kotlin.services.appstream.model

import kotlin.collections.List

sealed class FleetErrorCode {

    abstract val value: kotlin.String

    object DomainJoinErrorAccessDenied : aws.sdk.kotlin.services.appstream.model.FleetErrorCode() {
        override val value: kotlin.String = "DOMAIN_JOIN_ERROR_ACCESS_DENIED"
        override fun toString(): kotlin.String = value
    }

    object DomainJoinErrorDsMachineAccountQuotaExceeded : aws.sdk.kotlin.services.appstream.model.FleetErrorCode() {
        override val value: kotlin.String = "DOMAIN_JOIN_ERROR_DS_MACHINE_ACCOUNT_QUOTA_EXCEEDED"
        override fun toString(): kotlin.String = value
    }

    object DomainJoinErrorFileNotFound : aws.sdk.kotlin.services.appstream.model.FleetErrorCode() {
        override val value: kotlin.String = "DOMAIN_JOIN_ERROR_FILE_NOT_FOUND"
        override fun toString(): kotlin.String = value
    }

    object DomainJoinErrorInvalidParameter : aws.sdk.kotlin.services.appstream.model.FleetErrorCode() {
        override val value: kotlin.String = "DOMAIN_JOIN_ERROR_INVALID_PARAMETER"
        override fun toString(): kotlin.String = value
    }

    object DomainJoinErrorLogonFailure : aws.sdk.kotlin.services.appstream.model.FleetErrorCode() {
        override val value: kotlin.String = "DOMAIN_JOIN_ERROR_LOGON_FAILURE"
        override fun toString(): kotlin.String = value
    }

    object DomainJoinErrorMoreData : aws.sdk.kotlin.services.appstream.model.FleetErrorCode() {
        override val value: kotlin.String = "DOMAIN_JOIN_ERROR_MORE_DATA"
        override fun toString(): kotlin.String = value
    }

    object DomainJoinErrorNotSupported : aws.sdk.kotlin.services.appstream.model.FleetErrorCode() {
        override val value: kotlin.String = "DOMAIN_JOIN_ERROR_NOT_SUPPORTED"
        override fun toString(): kotlin.String = value
    }

    object DomainJoinErrorNoSuchDomain : aws.sdk.kotlin.services.appstream.model.FleetErrorCode() {
        override val value: kotlin.String = "DOMAIN_JOIN_ERROR_NO_SUCH_DOMAIN"
        override fun toString(): kotlin.String = value
    }

    object DomainJoinInternalServiceError : aws.sdk.kotlin.services.appstream.model.FleetErrorCode() {
        override val value: kotlin.String = "DOMAIN_JOIN_INTERNAL_SERVICE_ERROR"
        override fun toString(): kotlin.String = value
    }

    object DomainJoinNerrInvalidWorkgroupName : aws.sdk.kotlin.services.appstream.model.FleetErrorCode() {
        override val value: kotlin.String = "DOMAIN_JOIN_NERR_INVALID_WORKGROUP_NAME"
        override fun toString(): kotlin.String = value
    }

    object DomainJoinNerrPasswordExpired : aws.sdk.kotlin.services.appstream.model.FleetErrorCode() {
        override val value: kotlin.String = "DOMAIN_JOIN_NERR_PASSWORD_EXPIRED"
        override fun toString(): kotlin.String = value
    }

    object DomainJoinNerrWorkstationNotStarted : aws.sdk.kotlin.services.appstream.model.FleetErrorCode() {
        override val value: kotlin.String = "DOMAIN_JOIN_NERR_WORKSTATION_NOT_STARTED"
        override fun toString(): kotlin.String = value
    }

    object FleetInstanceProvisioningFailure : aws.sdk.kotlin.services.appstream.model.FleetErrorCode() {
        override val value: kotlin.String = "FLEET_INSTANCE_PROVISIONING_FAILURE"
        override fun toString(): kotlin.String = value
    }

    object FleetStopped : aws.sdk.kotlin.services.appstream.model.FleetErrorCode() {
        override val value: kotlin.String = "FLEET_STOPPED"
        override fun toString(): kotlin.String = value
    }

    object IamServiceRoleIsMissing : aws.sdk.kotlin.services.appstream.model.FleetErrorCode() {
        override val value: kotlin.String = "IAM_SERVICE_ROLE_IS_MISSING"
        override fun toString(): kotlin.String = value
    }

    object IamServiceRoleMissingDescribeSecurityGroupsAction : aws.sdk.kotlin.services.appstream.model.FleetErrorCode() {
        override val value: kotlin.String = "IAM_SERVICE_ROLE_MISSING_DESCRIBE_SECURITY_GROUPS_ACTION"
        override fun toString(): kotlin.String = value
    }

    object IamServiceRoleMissingDescribeSubnetAction : aws.sdk.kotlin.services.appstream.model.FleetErrorCode() {
        override val value: kotlin.String = "IAM_SERVICE_ROLE_MISSING_DESCRIBE_SUBNET_ACTION"
        override fun toString(): kotlin.String = value
    }

    object IamServiceRoleMissingEniCreateAction : aws.sdk.kotlin.services.appstream.model.FleetErrorCode() {
        override val value: kotlin.String = "IAM_SERVICE_ROLE_MISSING_ENI_CREATE_ACTION"
        override fun toString(): kotlin.String = value
    }

    object IamServiceRoleMissingEniDeleteAction : aws.sdk.kotlin.services.appstream.model.FleetErrorCode() {
        override val value: kotlin.String = "IAM_SERVICE_ROLE_MISSING_ENI_DELETE_ACTION"
        override fun toString(): kotlin.String = value
    }

    object IamServiceRoleMissingEniDescribeAction : aws.sdk.kotlin.services.appstream.model.FleetErrorCode() {
        override val value: kotlin.String = "IAM_SERVICE_ROLE_MISSING_ENI_DESCRIBE_ACTION"
        override fun toString(): kotlin.String = value
    }

    object IgwNotAttached : aws.sdk.kotlin.services.appstream.model.FleetErrorCode() {
        override val value: kotlin.String = "IGW_NOT_ATTACHED"
        override fun toString(): kotlin.String = value
    }

    object ImageNotFound : aws.sdk.kotlin.services.appstream.model.FleetErrorCode() {
        override val value: kotlin.String = "IMAGE_NOT_FOUND"
        override fun toString(): kotlin.String = value
    }

    object InternalServiceError : aws.sdk.kotlin.services.appstream.model.FleetErrorCode() {
        override val value: kotlin.String = "INTERNAL_SERVICE_ERROR"
        override fun toString(): kotlin.String = value
    }

    object InvalidSubnetConfiguration : aws.sdk.kotlin.services.appstream.model.FleetErrorCode() {
        override val value: kotlin.String = "INVALID_SUBNET_CONFIGURATION"
        override fun toString(): kotlin.String = value
    }

    object MachineRoleIsMissing : aws.sdk.kotlin.services.appstream.model.FleetErrorCode() {
        override val value: kotlin.String = "MACHINE_ROLE_IS_MISSING"
        override fun toString(): kotlin.String = value
    }

    object NetworkInterfaceLimitExceeded : aws.sdk.kotlin.services.appstream.model.FleetErrorCode() {
        override val value: kotlin.String = "NETWORK_INTERFACE_LIMIT_EXCEEDED"
        override fun toString(): kotlin.String = value
    }

    object SecurityGroupsNotFound : aws.sdk.kotlin.services.appstream.model.FleetErrorCode() {
        override val value: kotlin.String = "SECURITY_GROUPS_NOT_FOUND"
        override fun toString(): kotlin.String = value
    }

    object StsDisabledInRegion : aws.sdk.kotlin.services.appstream.model.FleetErrorCode() {
        override val value: kotlin.String = "STS_DISABLED_IN_REGION"
        override fun toString(): kotlin.String = value
    }

    object SubnetHasInsufficientIpAddresses : aws.sdk.kotlin.services.appstream.model.FleetErrorCode() {
        override val value: kotlin.String = "SUBNET_HAS_INSUFFICIENT_IP_ADDRESSES"
        override fun toString(): kotlin.String = value
    }

    object SubnetNotFound : aws.sdk.kotlin.services.appstream.model.FleetErrorCode() {
        override val value: kotlin.String = "SUBNET_NOT_FOUND"
        override fun toString(): kotlin.String = value
    }

    data class SdkUnknown(override val value: kotlin.String) : aws.sdk.kotlin.services.appstream.model.FleetErrorCode() {
        override fun toString(): kotlin.String = value
    }

    companion object {
        /**
         * Convert a raw value to one of the sealed variants or [SdkUnknown]
         */
        fun fromValue(str: kotlin.String): aws.sdk.kotlin.services.appstream.model.FleetErrorCode = when(str) {
            "DOMAIN_JOIN_ERROR_ACCESS_DENIED" -> DomainJoinErrorAccessDenied
            "DOMAIN_JOIN_ERROR_DS_MACHINE_ACCOUNT_QUOTA_EXCEEDED" -> DomainJoinErrorDsMachineAccountQuotaExceeded
            "DOMAIN_JOIN_ERROR_FILE_NOT_FOUND" -> DomainJoinErrorFileNotFound
            "DOMAIN_JOIN_ERROR_INVALID_PARAMETER" -> DomainJoinErrorInvalidParameter
            "DOMAIN_JOIN_ERROR_LOGON_FAILURE" -> DomainJoinErrorLogonFailure
            "DOMAIN_JOIN_ERROR_MORE_DATA" -> DomainJoinErrorMoreData
            "DOMAIN_JOIN_ERROR_NOT_SUPPORTED" -> DomainJoinErrorNotSupported
            "DOMAIN_JOIN_ERROR_NO_SUCH_DOMAIN" -> DomainJoinErrorNoSuchDomain
            "DOMAIN_JOIN_INTERNAL_SERVICE_ERROR" -> DomainJoinInternalServiceError
            "DOMAIN_JOIN_NERR_INVALID_WORKGROUP_NAME" -> DomainJoinNerrInvalidWorkgroupName
            "DOMAIN_JOIN_NERR_PASSWORD_EXPIRED" -> DomainJoinNerrPasswordExpired
            "DOMAIN_JOIN_NERR_WORKSTATION_NOT_STARTED" -> DomainJoinNerrWorkstationNotStarted
            "FLEET_INSTANCE_PROVISIONING_FAILURE" -> FleetInstanceProvisioningFailure
            "FLEET_STOPPED" -> FleetStopped
            "IAM_SERVICE_ROLE_IS_MISSING" -> IamServiceRoleIsMissing
            "IAM_SERVICE_ROLE_MISSING_DESCRIBE_SECURITY_GROUPS_ACTION" -> IamServiceRoleMissingDescribeSecurityGroupsAction
            "IAM_SERVICE_ROLE_MISSING_DESCRIBE_SUBNET_ACTION" -> IamServiceRoleMissingDescribeSubnetAction
            "IAM_SERVICE_ROLE_MISSING_ENI_CREATE_ACTION" -> IamServiceRoleMissingEniCreateAction
            "IAM_SERVICE_ROLE_MISSING_ENI_DELETE_ACTION" -> IamServiceRoleMissingEniDeleteAction
            "IAM_SERVICE_ROLE_MISSING_ENI_DESCRIBE_ACTION" -> IamServiceRoleMissingEniDescribeAction
            "IGW_NOT_ATTACHED" -> IgwNotAttached
            "IMAGE_NOT_FOUND" -> ImageNotFound
            "INTERNAL_SERVICE_ERROR" -> InternalServiceError
            "INVALID_SUBNET_CONFIGURATION" -> InvalidSubnetConfiguration
            "MACHINE_ROLE_IS_MISSING" -> MachineRoleIsMissing
            "NETWORK_INTERFACE_LIMIT_EXCEEDED" -> NetworkInterfaceLimitExceeded
            "SECURITY_GROUPS_NOT_FOUND" -> SecurityGroupsNotFound
            "STS_DISABLED_IN_REGION" -> StsDisabledInRegion
            "SUBNET_HAS_INSUFFICIENT_IP_ADDRESSES" -> SubnetHasInsufficientIpAddresses
            "SUBNET_NOT_FOUND" -> SubnetNotFound
            else -> SdkUnknown(str)
        }

        /**
         * Get a list of all possible variants
         */
        fun values(): kotlin.collections.List = listOf(
            DomainJoinErrorAccessDenied,
            DomainJoinErrorDsMachineAccountQuotaExceeded,
            DomainJoinErrorFileNotFound,
            DomainJoinErrorInvalidParameter,
            DomainJoinErrorLogonFailure,
            DomainJoinErrorMoreData,
            DomainJoinErrorNotSupported,
            DomainJoinErrorNoSuchDomain,
            DomainJoinInternalServiceError,
            DomainJoinNerrInvalidWorkgroupName,
            DomainJoinNerrPasswordExpired,
            DomainJoinNerrWorkstationNotStarted,
            FleetInstanceProvisioningFailure,
            FleetStopped,
            IamServiceRoleIsMissing,
            IamServiceRoleMissingDescribeSecurityGroupsAction,
            IamServiceRoleMissingDescribeSubnetAction,
            IamServiceRoleMissingEniCreateAction,
            IamServiceRoleMissingEniDeleteAction,
            IamServiceRoleMissingEniDescribeAction,
            IgwNotAttached,
            ImageNotFound,
            InternalServiceError,
            InvalidSubnetConfiguration,
            MachineRoleIsMissing,
            NetworkInterfaceLimitExceeded,
            SecurityGroupsNotFound,
            StsDisabledInRegion,
            SubnetHasInsufficientIpAddresses,
            SubnetNotFound
        )
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy