
commonMain.aws.sdk.kotlin.services.emr.model.Credentials.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.emr.model
/**
* The credentials that you can use to connect to cluster endpoints. Credentials consist of a username and a password.
*/
public sealed class Credentials {
/**
* The username and password that you use to connect to cluster endpoints.
*/
public data class UsernamePassword(val value: aws.sdk.kotlin.services.emr.model.UsernamePassword) : aws.sdk.kotlin.services.emr.model.Credentials() {
}
public object SdkUnknown : aws.sdk.kotlin.services.emr.model.Credentials() {
}
/**
* Casts this [Credentials] as a [UsernamePassword] and retrieves its [aws.sdk.kotlin.services.emr.model.UsernamePassword] value. Throws an exception if the [Credentials] is not a
* [UsernamePassword].
*/
public fun asUsernamePassword(): aws.sdk.kotlin.services.emr.model.UsernamePassword = (this as Credentials.UsernamePassword).value
/**
* Casts this [Credentials] as a [UsernamePassword] and retrieves its [aws.sdk.kotlin.services.emr.model.UsernamePassword] value. Returns null if the [Credentials] is not a [UsernamePassword].
*/
public fun asUsernamePasswordOrNull(): aws.sdk.kotlin.services.emr.model.UsernamePassword? = (this as? Credentials.UsernamePassword)?.value
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy