commonMain.aws.sdk.kotlin.services.connect.model.SecurityKey.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.connect.model
import aws.smithy.kotlin.runtime.time.Instant
/**
* Configuration information of the security key.
*/
public class SecurityKey private constructor(builder: Builder) {
/**
* The existing association identifier that uniquely identifies the resource type and storage config for the given instance ID.
*/
public val associationId: kotlin.String? = builder.associationId
/**
* When the security key was created.
*/
public val creationTime: aws.smithy.kotlin.runtime.time.Instant? = builder.creationTime
/**
* The key of the security key.
*/
public val key: kotlin.String? = builder.key
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.connect.model.SecurityKey = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("SecurityKey(")
append("associationId=$associationId,")
append("creationTime=$creationTime,")
append("key=$key")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = associationId?.hashCode() ?: 0
result = 31 * result + (creationTime?.hashCode() ?: 0)
result = 31 * result + (key?.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 SecurityKey
if (associationId != other.associationId) return false
if (creationTime != other.creationTime) return false
if (key != other.key) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.connect.model.SecurityKey = Builder(this).apply(block).build()
public class Builder {
/**
* The existing association identifier that uniquely identifies the resource type and storage config for the given instance ID.
*/
public var associationId: kotlin.String? = null
/**
* When the security key was created.
*/
public var creationTime: aws.smithy.kotlin.runtime.time.Instant? = null
/**
* The key of the security key.
*/
public var key: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.connect.model.SecurityKey) : this() {
this.associationId = x.associationId
this.creationTime = x.creationTime
this.key = x.key
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.connect.model.SecurityKey = SecurityKey(this)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy