
commonMain.aws.sdk.kotlin.services.wellarchitected.model.ProfileShareSummary.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.wellarchitected.model
/**
* Summary of a profile share.
*/
public class ProfileShareSummary private constructor(builder: Builder) {
/**
* The ID associated with the share.
*/
public val shareId: kotlin.String? = builder.shareId
/**
* The Amazon Web Services account ID, IAM role, organization ID, or organizational unit (OU) ID with which the workload, lens, or profile is shared.
*/
public val sharedWith: kotlin.String? = builder.sharedWith
/**
* The status of the share request.
*/
public val status: aws.sdk.kotlin.services.wellarchitected.model.ShareStatus? = builder.status
/**
* Profile share invitation status message.
*/
public val statusMessage: kotlin.String? = builder.statusMessage
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.wellarchitected.model.ProfileShareSummary = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("ProfileShareSummary(")
append("shareId=$shareId,")
append("sharedWith=$sharedWith,")
append("status=$status,")
append("statusMessage=$statusMessage")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = shareId?.hashCode() ?: 0
result = 31 * result + (sharedWith?.hashCode() ?: 0)
result = 31 * result + (status?.hashCode() ?: 0)
result = 31 * result + (statusMessage?.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 ProfileShareSummary
if (shareId != other.shareId) return false
if (sharedWith != other.sharedWith) return false
if (status != other.status) return false
if (statusMessage != other.statusMessage) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.wellarchitected.model.ProfileShareSummary = Builder(this).apply(block).build()
public class Builder {
/**
* The ID associated with the share.
*/
public var shareId: kotlin.String? = null
/**
* The Amazon Web Services account ID, IAM role, organization ID, or organizational unit (OU) ID with which the workload, lens, or profile is shared.
*/
public var sharedWith: kotlin.String? = null
/**
* The status of the share request.
*/
public var status: aws.sdk.kotlin.services.wellarchitected.model.ShareStatus? = null
/**
* Profile share invitation status message.
*/
public var statusMessage: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.wellarchitected.model.ProfileShareSummary) : this() {
this.shareId = x.shareId
this.sharedWith = x.sharedWith
this.status = x.status
this.statusMessage = x.statusMessage
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.wellarchitected.model.ProfileShareSummary = ProfileShareSummary(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy