commonMain.aws.sdk.kotlin.services.wellarchitected.model.UpdateReviewTemplateLensReviewRequest.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.SdkDsl
public class UpdateReviewTemplateLensReviewRequest 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 notes associated with the workload.
*
* For a review template, these are the notes that will be associated with the workload when the template is applied.
*/
public val lensNotes: kotlin.String? = builder.lensNotes
/**
* List of pillar notes of a lens review in a workload.
*
* For a review template, these are the notes that will be associated with the workload when the template is applied.
*/
public val pillarNotes: Map? = builder.pillarNotes
/**
* The review template ARN.
*/
public val templateArn: kotlin.String? = builder.templateArn
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.wellarchitected.model.UpdateReviewTemplateLensReviewRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("UpdateReviewTemplateLensReviewRequest(")
append("lensAlias=$lensAlias,")
append("lensNotes=$lensNotes,")
append("pillarNotes=$pillarNotes,")
append("templateArn=$templateArn")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = lensAlias?.hashCode() ?: 0
result = 31 * result + (lensNotes?.hashCode() ?: 0)
result = 31 * result + (pillarNotes?.hashCode() ?: 0)
result = 31 * result + (templateArn?.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 UpdateReviewTemplateLensReviewRequest
if (lensAlias != other.lensAlias) return false
if (lensNotes != other.lensNotes) return false
if (pillarNotes != other.pillarNotes) return false
if (templateArn != other.templateArn) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.wellarchitected.model.UpdateReviewTemplateLensReviewRequest = Builder(this).apply(block).build()
@SdkDsl
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 notes associated with the workload.
*
* For a review template, these are the notes that will be associated with the workload when the template is applied.
*/
public var lensNotes: kotlin.String? = null
/**
* List of pillar notes of a lens review in a workload.
*
* For a review template, these are the notes that will be associated with the workload when the template is applied.
*/
public var pillarNotes: Map? = null
/**
* The review template ARN.
*/
public var templateArn: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.wellarchitected.model.UpdateReviewTemplateLensReviewRequest) : this() {
this.lensAlias = x.lensAlias
this.lensNotes = x.lensNotes
this.pillarNotes = x.pillarNotes
this.templateArn = x.templateArn
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.wellarchitected.model.UpdateReviewTemplateLensReviewRequest = UpdateReviewTemplateLensReviewRequest(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy