
commonMain.aws.sdk.kotlin.services.iot.model.RoleAliasDescription.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.iot.model
import aws.smithy.kotlin.runtime.time.Instant
/**
* Role alias description.
*/
public class RoleAliasDescription private constructor(builder: Builder) {
/**
* The UNIX timestamp of when the role alias was created.
*/
public val creationDate: aws.smithy.kotlin.runtime.time.Instant? = builder.creationDate
/**
* The number of seconds for which the credential is valid.
*/
public val credentialDurationSeconds: kotlin.Int? = builder.credentialDurationSeconds
/**
* The UNIX timestamp of when the role alias was last modified.
*/
public val lastModifiedDate: aws.smithy.kotlin.runtime.time.Instant? = builder.lastModifiedDate
/**
* The role alias owner.
*/
public val owner: kotlin.String? = builder.owner
/**
* The role alias.
*/
public val roleAlias: kotlin.String? = builder.roleAlias
/**
* The ARN of the role alias.
*/
public val roleAliasArn: kotlin.String? = builder.roleAliasArn
/**
* 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.RoleAliasDescription = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("RoleAliasDescription(")
append("creationDate=$creationDate,")
append("credentialDurationSeconds=$credentialDurationSeconds,")
append("lastModifiedDate=$lastModifiedDate,")
append("owner=$owner,")
append("roleAlias=$roleAlias,")
append("roleAliasArn=$roleAliasArn,")
append("roleArn=$roleArn")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = creationDate?.hashCode() ?: 0
result = 31 * result + (credentialDurationSeconds ?: 0)
result = 31 * result + (lastModifiedDate?.hashCode() ?: 0)
result = 31 * result + (owner?.hashCode() ?: 0)
result = 31 * result + (roleAlias?.hashCode() ?: 0)
result = 31 * result + (roleAliasArn?.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 RoleAliasDescription
if (creationDate != other.creationDate) return false
if (credentialDurationSeconds != other.credentialDurationSeconds) return false
if (lastModifiedDate != other.lastModifiedDate) return false
if (owner != other.owner) return false
if (roleAlias != other.roleAlias) return false
if (roleAliasArn != other.roleAliasArn) return false
if (roleArn != other.roleArn) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.iot.model.RoleAliasDescription = Builder(this).apply(block).build()
public class Builder {
/**
* The UNIX timestamp of when the role alias was created.
*/
public var creationDate: aws.smithy.kotlin.runtime.time.Instant? = null
/**
* The number of seconds for which the credential is valid.
*/
public var credentialDurationSeconds: kotlin.Int? = null
/**
* The UNIX timestamp of when the role alias was last modified.
*/
public var lastModifiedDate: aws.smithy.kotlin.runtime.time.Instant? = null
/**
* The role alias owner.
*/
public var owner: kotlin.String? = null
/**
* The role alias.
*/
public var roleAlias: kotlin.String? = null
/**
* The ARN of the role alias.
*/
public var roleAliasArn: 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.RoleAliasDescription) : this() {
this.creationDate = x.creationDate
this.credentialDurationSeconds = x.credentialDurationSeconds
this.lastModifiedDate = x.lastModifiedDate
this.owner = x.owner
this.roleAlias = x.roleAlias
this.roleAliasArn = x.roleAliasArn
this.roleArn = x.roleArn
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.iot.model.RoleAliasDescription = RoleAliasDescription(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy