
commonMain.aws.sdk.kotlin.services.wellarchitected.model.ShareInvitation.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.wellarchitected.model
/**
* The share invitation.
*/
public class ShareInvitation private constructor(builder: Builder) {
/**
* The alias of the lens.
*
* For Amazon Web Services official lenses, this is either the lens alias, such as `serverless`, or the lens ARN, such as `arn:aws:wellarchitected:us-east-1::lens/serverless`. Note that some operations (such as ExportLens and CreateLensShare) are not permitted on Amazon Web Services official lenses.
*
* For custom lenses, this is the lens ARN, such as `arn:aws:wellarchitected:us-west-2:123456789012:lens/0123456789abcdef01234567890abcdef`.
*
* Each lens is identified by its LensSummary$LensAlias.
*/
public val lensAlias: kotlin.String? = builder.lensAlias
/**
* The ARN for the lens.
*/
public val lensArn: kotlin.String? = builder.lensArn
/**
* The profile ARN.
*/
public val profileArn: kotlin.String? = builder.profileArn
/**
* The ID assigned to the share invitation.
*/
public val shareInvitationId: kotlin.String? = builder.shareInvitationId
/**
* The resource type of the share invitation.
*/
public val shareResourceType: aws.sdk.kotlin.services.wellarchitected.model.ShareResourceType? = builder.shareResourceType
/**
* The ID assigned to the workload. This ID is unique within an Amazon Web Services Region.
*/
public val workloadId: kotlin.String? = builder.workloadId
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.wellarchitected.model.ShareInvitation = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("ShareInvitation(")
append("lensAlias=$lensAlias,")
append("lensArn=$lensArn,")
append("profileArn=$profileArn,")
append("shareInvitationId=$shareInvitationId,")
append("shareResourceType=$shareResourceType,")
append("workloadId=$workloadId")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = lensAlias?.hashCode() ?: 0
result = 31 * result + (lensArn?.hashCode() ?: 0)
result = 31 * result + (profileArn?.hashCode() ?: 0)
result = 31 * result + (shareInvitationId?.hashCode() ?: 0)
result = 31 * result + (shareResourceType?.hashCode() ?: 0)
result = 31 * result + (workloadId?.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 ShareInvitation
if (lensAlias != other.lensAlias) return false
if (lensArn != other.lensArn) return false
if (profileArn != other.profileArn) return false
if (shareInvitationId != other.shareInvitationId) return false
if (shareResourceType != other.shareResourceType) return false
if (workloadId != other.workloadId) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.wellarchitected.model.ShareInvitation = Builder(this).apply(block).build()
public class Builder {
/**
* The alias of the lens.
*
* For Amazon Web Services official lenses, this is either the lens alias, such as `serverless`, or the lens ARN, such as `arn:aws:wellarchitected:us-east-1::lens/serverless`. Note that some operations (such as ExportLens and CreateLensShare) are not permitted on Amazon Web Services official lenses.
*
* For custom lenses, this is the lens ARN, such as `arn:aws:wellarchitected:us-west-2:123456789012:lens/0123456789abcdef01234567890abcdef`.
*
* Each lens is identified by its LensSummary$LensAlias.
*/
public var lensAlias: kotlin.String? = null
/**
* The ARN for the lens.
*/
public var lensArn: kotlin.String? = null
/**
* The profile ARN.
*/
public var profileArn: kotlin.String? = null
/**
* The ID assigned to the share invitation.
*/
public var shareInvitationId: kotlin.String? = null
/**
* The resource type of the share invitation.
*/
public var shareResourceType: aws.sdk.kotlin.services.wellarchitected.model.ShareResourceType? = null
/**
* The ID assigned to the workload. This ID is unique within an Amazon Web Services Region.
*/
public var workloadId: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.wellarchitected.model.ShareInvitation) : this() {
this.lensAlias = x.lensAlias
this.lensArn = x.lensArn
this.profileArn = x.profileArn
this.shareInvitationId = x.shareInvitationId
this.shareResourceType = x.shareResourceType
this.workloadId = x.workloadId
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.wellarchitected.model.ShareInvitation = ShareInvitation(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy