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

commonMain.aws.sdk.kotlin.runtime.config.profile.AwsConfigValue.kt Maven / Gradle / Ivy

There is a newer version: 1.3.76
Show newest version
/*
 * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
 * SPDX-License-Identifier: Apache-2.0
 */
package aws.sdk.kotlin.runtime.config.profile

import aws.sdk.kotlin.runtime.InternalSdkApi

/**
 * Container for the different types of property values within an AWS config profile.
 * A property can either be a string or mapping of strings. Maps cannot be nested.
 */
@InternalSdkApi
public sealed class AwsConfigValue {
    @InternalSdkApi
    public data class String(public val value: kotlin.String) : AwsConfigValue() {
        override fun toString(): kotlin.String = value
    }

    @InternalSdkApi
    public data class Map(public val value: kotlin.collections.Map) :
        AwsConfigValue(),
        kotlin.collections.Map by value {
        override fun toString(): kotlin.String = value.toString()
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy