
commonMain.aws.sdk.kotlin.services.iot.model.UpdateRoleAliasRequest.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.iot.model
public class UpdateRoleAliasRequest private constructor(builder: Builder) {
/**
* The number of seconds the credential will be valid.
*
* This value must be less than or equal to the maximum session duration of the IAM role that the role alias references.
*/
public val credentialDurationSeconds: kotlin.Int? = builder.credentialDurationSeconds
/**
* The role alias to update.
*/
public val roleAlias: kotlin.String? = builder.roleAlias
/**
* The role ARN.
*/
public val roleArn: kotlin.String? = builder.roleArn
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.iot.model.UpdateRoleAliasRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("UpdateRoleAliasRequest(")
append("credentialDurationSeconds=$credentialDurationSeconds,")
append("roleAlias=$roleAlias,")
append("roleArn=$roleArn")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = credentialDurationSeconds ?: 0
result = 31 * result + (roleAlias?.hashCode() ?: 0)
result = 31 * result + (roleArn?.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 UpdateRoleAliasRequest
if (credentialDurationSeconds != other.credentialDurationSeconds) return false
if (roleAlias != other.roleAlias) return false
if (roleArn != other.roleArn) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.iot.model.UpdateRoleAliasRequest = Builder(this).apply(block).build()
public class Builder {
/**
* The number of seconds the credential will be valid.
*
* This value must be less than or equal to the maximum session duration of the IAM role that the role alias references.
*/
public var credentialDurationSeconds: kotlin.Int? = null
/**
* The role alias to update.
*/
public var roleAlias: kotlin.String? = null
/**
* The role ARN.
*/
public var roleArn: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.iot.model.UpdateRoleAliasRequest) : this() {
this.credentialDurationSeconds = x.credentialDurationSeconds
this.roleAlias = x.roleAlias
this.roleArn = x.roleArn
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.iot.model.UpdateRoleAliasRequest = UpdateRoleAliasRequest(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy