
commonMain.aws.sdk.kotlin.services.rolesanywhere.model.SubjectSummary.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.rolesanywhere.model
import aws.smithy.kotlin.runtime.time.Instant
/**
* A summary representation of subjects.
*/
public class SubjectSummary private constructor(builder: Builder) {
/**
* The ISO-8601 time stamp of when the certificate was first used in a temporary credential request.
*/
public val createdAt: aws.smithy.kotlin.runtime.time.Instant? = builder.createdAt
/**
* The enabled status of the subject.
*/
public val enabled: kotlin.Boolean? = builder.enabled
/**
* The ISO-8601 time stamp of when the certificate was last used in a temporary credential request.
*/
public val lastSeenAt: aws.smithy.kotlin.runtime.time.Instant? = builder.lastSeenAt
/**
* The ARN of the resource.
*/
public val subjectArn: kotlin.String? = builder.subjectArn
/**
* The id of the resource.
*/
public val subjectId: kotlin.String? = builder.subjectId
/**
* The ISO-8601 timestamp when the subject was last updated.
*/
public val updatedAt: aws.smithy.kotlin.runtime.time.Instant? = builder.updatedAt
/**
* The x509 principal identifier of the authenticating certificate.
*/
public val x509Subject: kotlin.String? = builder.x509Subject
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.rolesanywhere.model.SubjectSummary = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("SubjectSummary(")
append("createdAt=$createdAt,")
append("enabled=$enabled,")
append("lastSeenAt=$lastSeenAt,")
append("subjectArn=$subjectArn,")
append("subjectId=$subjectId,")
append("updatedAt=$updatedAt,")
append("x509Subject=$x509Subject")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = createdAt?.hashCode() ?: 0
result = 31 * result + (enabled?.hashCode() ?: 0)
result = 31 * result + (lastSeenAt?.hashCode() ?: 0)
result = 31 * result + (subjectArn?.hashCode() ?: 0)
result = 31 * result + (subjectId?.hashCode() ?: 0)
result = 31 * result + (updatedAt?.hashCode() ?: 0)
result = 31 * result + (x509Subject?.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 SubjectSummary
if (createdAt != other.createdAt) return false
if (enabled != other.enabled) return false
if (lastSeenAt != other.lastSeenAt) return false
if (subjectArn != other.subjectArn) return false
if (subjectId != other.subjectId) return false
if (updatedAt != other.updatedAt) return false
if (x509Subject != other.x509Subject) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.rolesanywhere.model.SubjectSummary = Builder(this).apply(block).build()
public class Builder {
/**
* The ISO-8601 time stamp of when the certificate was first used in a temporary credential request.
*/
public var createdAt: aws.smithy.kotlin.runtime.time.Instant? = null
/**
* The enabled status of the subject.
*/
public var enabled: kotlin.Boolean? = null
/**
* The ISO-8601 time stamp of when the certificate was last used in a temporary credential request.
*/
public var lastSeenAt: aws.smithy.kotlin.runtime.time.Instant? = null
/**
* The ARN of the resource.
*/
public var subjectArn: kotlin.String? = null
/**
* The id of the resource.
*/
public var subjectId: kotlin.String? = null
/**
* The ISO-8601 timestamp when the subject was last updated.
*/
public var updatedAt: aws.smithy.kotlin.runtime.time.Instant? = null
/**
* The x509 principal identifier of the authenticating certificate.
*/
public var x509Subject: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.rolesanywhere.model.SubjectSummary) : this() {
this.createdAt = x.createdAt
this.enabled = x.enabled
this.lastSeenAt = x.lastSeenAt
this.subjectArn = x.subjectArn
this.subjectId = x.subjectId
this.updatedAt = x.updatedAt
this.x509Subject = x.x509Subject
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.rolesanywhere.model.SubjectSummary = SubjectSummary(this)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy