
commonMain.aws.sdk.kotlin.services.iam.model.SetSecurityTokenServicePreferencesRequest.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.iam.model
public class SetSecurityTokenServicePreferencesRequest private constructor(builder: Builder) {
/**
* The version of the global endpoint token. Version 1 tokens are valid only in Amazon Web Services Regions that are available by default. These tokens do not work in manually enabled Regions, such as Asia Pacific (Hong Kong). Version 2 tokens are valid in all Regions. However, version 2 tokens are longer and might affect systems where you temporarily store tokens.
*
* For information, see [Activating and deactivating STS in an Amazon Web Services Region](https://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_temp_enable-regions.html) in the *IAM User Guide*.
*/
public val globalEndpointTokenVersion: aws.sdk.kotlin.services.iam.model.GlobalEndpointTokenVersion? = builder.globalEndpointTokenVersion
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.iam.model.SetSecurityTokenServicePreferencesRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("SetSecurityTokenServicePreferencesRequest(")
append("globalEndpointTokenVersion=$globalEndpointTokenVersion")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = globalEndpointTokenVersion?.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 SetSecurityTokenServicePreferencesRequest
if (globalEndpointTokenVersion != other.globalEndpointTokenVersion) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.iam.model.SetSecurityTokenServicePreferencesRequest = Builder(this).apply(block).build()
public class Builder {
/**
* The version of the global endpoint token. Version 1 tokens are valid only in Amazon Web Services Regions that are available by default. These tokens do not work in manually enabled Regions, such as Asia Pacific (Hong Kong). Version 2 tokens are valid in all Regions. However, version 2 tokens are longer and might affect systems where you temporarily store tokens.
*
* For information, see [Activating and deactivating STS in an Amazon Web Services Region](https://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_temp_enable-regions.html) in the *IAM User Guide*.
*/
public var globalEndpointTokenVersion: aws.sdk.kotlin.services.iam.model.GlobalEndpointTokenVersion? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.iam.model.SetSecurityTokenServicePreferencesRequest) : this() {
this.globalEndpointTokenVersion = x.globalEndpointTokenVersion
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.iam.model.SetSecurityTokenServicePreferencesRequest = SetSecurityTokenServicePreferencesRequest(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy