
commonMain.aws.sdk.kotlin.services.s3control.model.BucketLocationConstraint.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.s3control.model
import kotlin.collections.List
public sealed class BucketLocationConstraint {
public abstract val value: kotlin.String
public object Eu : aws.sdk.kotlin.services.s3control.model.BucketLocationConstraint() {
override val value: kotlin.String = "EU"
override fun toString(): kotlin.String = "Eu"
}
public object ApNortheast1 : aws.sdk.kotlin.services.s3control.model.BucketLocationConstraint() {
override val value: kotlin.String = "ap-northeast-1"
override fun toString(): kotlin.String = "ApNortheast1"
}
public object ApSouth1 : aws.sdk.kotlin.services.s3control.model.BucketLocationConstraint() {
override val value: kotlin.String = "ap-south-1"
override fun toString(): kotlin.String = "ApSouth1"
}
public object ApSoutheast1 : aws.sdk.kotlin.services.s3control.model.BucketLocationConstraint() {
override val value: kotlin.String = "ap-southeast-1"
override fun toString(): kotlin.String = "ApSoutheast1"
}
public object ApSoutheast2 : aws.sdk.kotlin.services.s3control.model.BucketLocationConstraint() {
override val value: kotlin.String = "ap-southeast-2"
override fun toString(): kotlin.String = "ApSoutheast2"
}
public object CnNorth1 : aws.sdk.kotlin.services.s3control.model.BucketLocationConstraint() {
override val value: kotlin.String = "cn-north-1"
override fun toString(): kotlin.String = "CnNorth1"
}
public object EuCentral1 : aws.sdk.kotlin.services.s3control.model.BucketLocationConstraint() {
override val value: kotlin.String = "eu-central-1"
override fun toString(): kotlin.String = "EuCentral1"
}
public object EuWest1 : aws.sdk.kotlin.services.s3control.model.BucketLocationConstraint() {
override val value: kotlin.String = "eu-west-1"
override fun toString(): kotlin.String = "EuWest1"
}
public object SaEast1 : aws.sdk.kotlin.services.s3control.model.BucketLocationConstraint() {
override val value: kotlin.String = "sa-east-1"
override fun toString(): kotlin.String = "SaEast1"
}
public object UsWest1 : aws.sdk.kotlin.services.s3control.model.BucketLocationConstraint() {
override val value: kotlin.String = "us-west-1"
override fun toString(): kotlin.String = "UsWest1"
}
public object UsWest2 : aws.sdk.kotlin.services.s3control.model.BucketLocationConstraint() {
override val value: kotlin.String = "us-west-2"
override fun toString(): kotlin.String = "UsWest2"
}
public data class SdkUnknown(override val value: kotlin.String) : aws.sdk.kotlin.services.s3control.model.BucketLocationConstraint() {
override fun toString(): kotlin.String = "SdkUnknown($value)"
}
public companion object {
/**
* Convert a raw value to one of the sealed variants or [SdkUnknown]
*/
public fun fromValue(value: kotlin.String): aws.sdk.kotlin.services.s3control.model.BucketLocationConstraint = when (value) {
"EU" -> Eu
"ap-northeast-1" -> ApNortheast1
"ap-south-1" -> ApSouth1
"ap-southeast-1" -> ApSoutheast1
"ap-southeast-2" -> ApSoutheast2
"cn-north-1" -> CnNorth1
"eu-central-1" -> EuCentral1
"eu-west-1" -> EuWest1
"sa-east-1" -> SaEast1
"us-west-1" -> UsWest1
"us-west-2" -> UsWest2
else -> SdkUnknown(value)
}
/**
* Get a list of all possible variants
*/
public fun values(): kotlin.collections.List = values
private val values: kotlin.collections.List = listOf(
Eu,
ApNortheast1,
ApSouth1,
ApSoutheast1,
ApSoutheast2,
CnNorth1,
EuCentral1,
EuWest1,
SaEast1,
UsWest1,
UsWest2,
)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy