
commonMain.aws.sdk.kotlin.services.wellarchitected.model.Profile.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
/**
* A profile.
*/
public class Profile 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
/**
* Profile questions.
*/
public val profileQuestions: List? = builder.profileQuestions
/**
* The profile version.
*/
public val profileVersion: kotlin.String? = builder.profileVersion
/**
* The ID assigned to the share invitation.
*/
public val shareInvitationId: kotlin.String? = builder.shareInvitationId
/**
* The tags assigned to the profile.
*/
public val tags: Map? = builder.tags
/**
* 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.Profile = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("Profile(")
append("createdAt=$createdAt,")
append("owner=$owner,")
append("profileArn=$profileArn,")
append("profileDescription=$profileDescription,")
append("profileName=$profileName,")
append("profileQuestions=$profileQuestions,")
append("profileVersion=$profileVersion,")
append("shareInvitationId=$shareInvitationId,")
append("tags=$tags,")
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 + (profileQuestions?.hashCode() ?: 0)
result = 31 * result + (profileVersion?.hashCode() ?: 0)
result = 31 * result + (shareInvitationId?.hashCode() ?: 0)
result = 31 * result + (tags?.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 Profile
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 (profileQuestions != other.profileQuestions) return false
if (profileVersion != other.profileVersion) return false
if (shareInvitationId != other.shareInvitationId) return false
if (tags != other.tags) return false
if (updatedAt != other.updatedAt) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.wellarchitected.model.Profile = 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
/**
* Profile questions.
*/
public var profileQuestions: List? = null
/**
* The profile version.
*/
public var profileVersion: kotlin.String? = null
/**
* The ID assigned to the share invitation.
*/
public var shareInvitationId: kotlin.String? = null
/**
* The tags assigned to the profile.
*/
public var tags: Map? = 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.Profile) : this() {
this.createdAt = x.createdAt
this.owner = x.owner
this.profileArn = x.profileArn
this.profileDescription = x.profileDescription
this.profileName = x.profileName
this.profileQuestions = x.profileQuestions
this.profileVersion = x.profileVersion
this.shareInvitationId = x.shareInvitationId
this.tags = x.tags
this.updatedAt = x.updatedAt
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.wellarchitected.model.Profile = Profile(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy