commonMain.aws.sdk.kotlin.services.glacier.model.CannedAcl.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of glacier-jvm Show documentation
Show all versions of glacier-jvm Show documentation
The AWS Kotlin client for Glacier
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.glacier.model
import kotlin.collections.List
public sealed class CannedAcl {
public abstract val value: kotlin.String
public object AuthenticatedRead : aws.sdk.kotlin.services.glacier.model.CannedAcl() {
override val value: kotlin.String = "authenticated-read"
override fun toString(): kotlin.String = value
}
public object AwsExecRead : aws.sdk.kotlin.services.glacier.model.CannedAcl() {
override val value: kotlin.String = "aws-exec-read"
override fun toString(): kotlin.String = value
}
public object BucketOwnerFullControl : aws.sdk.kotlin.services.glacier.model.CannedAcl() {
override val value: kotlin.String = "bucket-owner-full-control"
override fun toString(): kotlin.String = value
}
public object BucketOwnerRead : aws.sdk.kotlin.services.glacier.model.CannedAcl() {
override val value: kotlin.String = "bucket-owner-read"
override fun toString(): kotlin.String = value
}
public object Private : aws.sdk.kotlin.services.glacier.model.CannedAcl() {
override val value: kotlin.String = "private"
override fun toString(): kotlin.String = value
}
public object PublicRead : aws.sdk.kotlin.services.glacier.model.CannedAcl() {
override val value: kotlin.String = "public-read"
override fun toString(): kotlin.String = value
}
public object PublicReadWrite : aws.sdk.kotlin.services.glacier.model.CannedAcl() {
override val value: kotlin.String = "public-read-write"
override fun toString(): kotlin.String = value
}
public data class SdkUnknown(override val value: kotlin.String) : aws.sdk.kotlin.services.glacier.model.CannedAcl() {
override fun toString(): kotlin.String = value
}
public companion object {
/**
* Convert a raw value to one of the sealed variants or [SdkUnknown]
*/
public fun fromValue(str: kotlin.String): aws.sdk.kotlin.services.glacier.model.CannedAcl = when(str) {
"authenticated-read" -> AuthenticatedRead
"aws-exec-read" -> AwsExecRead
"bucket-owner-full-control" -> BucketOwnerFullControl
"bucket-owner-read" -> BucketOwnerRead
"private" -> Private
"public-read" -> PublicRead
"public-read-write" -> PublicReadWrite
else -> SdkUnknown(str)
}
/**
* Get a list of all possible variants
*/
public fun values(): kotlin.collections.List = listOf(
AuthenticatedRead,
AwsExecRead,
BucketOwnerFullControl,
BucketOwnerRead,
Private,
PublicRead,
PublicReadWrite
)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy