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

commonMain.aws.sdk.kotlin.services.glacier.model.CannedAcl.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.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