
commonMain.aws.sdk.kotlin.services.sts.model.AssumedRoleUser.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.sts.model
/**
* The identifiers for the temporary security credentials that the operation returns.
*/
public class AssumedRoleUser private constructor(builder: Builder) {
/**
* The ARN of the temporary security credentials that are returned from the AssumeRole action. For more information about ARNs and how to use them in policies, see [IAM Identifiers](https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_identifiers.html) in the *IAM User Guide*.
*/
public val arn: kotlin.String? = builder.arn
/**
* A unique identifier that contains the role ID and the role session name of the role that is being assumed. The role ID is generated by Amazon Web Services when the role is created.
*/
public val assumedRoleId: kotlin.String? = builder.assumedRoleId
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.sts.model.AssumedRoleUser = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("AssumedRoleUser(")
append("arn=$arn,")
append("assumedRoleId=$assumedRoleId)")
}
override fun hashCode(): kotlin.Int {
var result = arn?.hashCode() ?: 0
result = 31 * result + (assumedRoleId?.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 AssumedRoleUser
if (arn != other.arn) return false
if (assumedRoleId != other.assumedRoleId) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.sts.model.AssumedRoleUser = Builder(this).apply(block).build()
public class Builder {
/**
* The ARN of the temporary security credentials that are returned from the AssumeRole action. For more information about ARNs and how to use them in policies, see [IAM Identifiers](https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_identifiers.html) in the *IAM User Guide*.
*/
public var arn: kotlin.String? = null
/**
* A unique identifier that contains the role ID and the role session name of the role that is being assumed. The role ID is generated by Amazon Web Services when the role is created.
*/
public var assumedRoleId: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.sts.model.AssumedRoleUser) : this() {
this.arn = x.arn
this.assumedRoleId = x.assumedRoleId
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.sts.model.AssumedRoleUser = AssumedRoleUser(this)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy