
commonMain.aws.sdk.kotlin.services.wellarchitected.model.ProfileSummary.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.wellarchitected.model
import aws.smithy.kotlin.runtime.time.Instant
/**
* Summary of a profile.
*/
public class ProfileSummary private constructor(builder: Builder) {
/**
* The date and time recorded.
*/
public val createdAt: aws.smithy.kotlin.runtime.time.Instant? = builder.createdAt
/**
* An Amazon Web Services account ID.
*/
public val owner: kotlin.String? = builder.owner
/**
* The profile ARN.
*/
public val profileArn: kotlin.String? = builder.profileArn
/**
* The profile description.
*/
public val profileDescription: kotlin.String? = builder.profileDescription
/**
* The profile name.
*/
public val profileName: kotlin.String? = builder.profileName
/**
* The profile version.
*/
public val profileVersion: kotlin.String? = builder.profileVersion
/**
* The date and time recorded.
*/
public val updatedAt: aws.smithy.kotlin.runtime.time.Instant? = builder.updatedAt
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.wellarchitected.model.ProfileSummary = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("ProfileSummary(")
append("createdAt=$createdAt,")
append("owner=$owner,")
append("profileArn=$profileArn,")
append("profileDescription=$profileDescription,")
append("profileName=$profileName,")
append("profileVersion=$profileVersion,")
append("updatedAt=$updatedAt")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = createdAt?.hashCode() ?: 0
result = 31 * result + (owner?.hashCode() ?: 0)
result = 31 * result + (profileArn?.hashCode() ?: 0)
result = 31 * result + (profileDescription?.hashCode() ?: 0)
result = 31 * result + (profileName?.hashCode() ?: 0)
result = 31 * result + (profileVersion?.hashCode() ?: 0)
result = 31 * result + (updatedAt?.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 ProfileSummary
if (createdAt != other.createdAt) return false
if (owner != other.owner) return false
if (profileArn != other.profileArn) return false
if (profileDescription != other.profileDescription) return false
if (profileName != other.profileName) return false
if (profileVersion != other.profileVersion) return false
if (updatedAt != other.updatedAt) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.wellarchitected.model.ProfileSummary = Builder(this).apply(block).build()
public class Builder {
/**
* The date and time recorded.
*/
public var createdAt: aws.smithy.kotlin.runtime.time.Instant? = null
/**
* An Amazon Web Services account ID.
*/
public var owner: kotlin.String? = null
/**
* The profile ARN.
*/
public var profileArn: kotlin.String? = null
/**
* The profile description.
*/
public var profileDescription: kotlin.String? = null
/**
* The profile name.
*/
public var profileName: kotlin.String? = null
/**
* The profile version.
*/
public var profileVersion: kotlin.String? = null
/**
* The date and time recorded.
*/
public var updatedAt: aws.smithy.kotlin.runtime.time.Instant? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.wellarchitected.model.ProfileSummary) : this() {
this.createdAt = x.createdAt
this.owner = x.owner
this.profileArn = x.profileArn
this.profileDescription = x.profileDescription
this.profileName = x.profileName
this.profileVersion = x.profileVersion
this.updatedAt = x.updatedAt
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.wellarchitected.model.ProfileSummary = ProfileSummary(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy