
commonMain.aws.sdk.kotlin.services.sso.model.GetRoleCredentialsResponse.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.sso.model
import aws.smithy.kotlin.runtime.SdkDsl
public class GetRoleCredentialsResponse private constructor(builder: Builder) {
/**
* The credentials for the role that is assigned to the user.
*/
public val roleCredentials: aws.sdk.kotlin.services.sso.model.RoleCredentials? = builder.roleCredentials
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.sso.model.GetRoleCredentialsResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("GetRoleCredentialsResponse(")
append("roleCredentials=$roleCredentials")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = roleCredentials?.hashCode() ?: 0
return result
}
override fun equals(other: kotlin.Any?): kotlin.Boolean {
if (this === other) return true
if (other == null || this::class != other::class) return false
other as GetRoleCredentialsResponse
if (roleCredentials != other.roleCredentials) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.sso.model.GetRoleCredentialsResponse = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The credentials for the role that is assigned to the user.
*/
public var roleCredentials: aws.sdk.kotlin.services.sso.model.RoleCredentials? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.sso.model.GetRoleCredentialsResponse) : this() {
this.roleCredentials = x.roleCredentials
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.sso.model.GetRoleCredentialsResponse = GetRoleCredentialsResponse(this)
/**
* construct an [aws.sdk.kotlin.services.sso.model.RoleCredentials] inside the given [block]
*/
public fun roleCredentials(block: aws.sdk.kotlin.services.sso.model.RoleCredentials.Builder.() -> kotlin.Unit) {
this.roleCredentials = aws.sdk.kotlin.services.sso.model.RoleCredentials.invoke(block)
}
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy