
commonMain.aws.sdk.kotlin.services.wellarchitected.model.GetLensVersionDifferenceRequest.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.wellarchitected.model
public class GetLensVersionDifferenceRequest private constructor(builder: Builder) {
/**
* The base version of the lens.
*/
public val baseLensVersion: kotlin.String? = builder.baseLensVersion
/**
* 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? = requireNotNull(builder.lensAlias) { "A non-null value must be provided for lensAlias" }
/**
* The lens version to target a difference for.
*/
public val targetLensVersion: kotlin.String? = builder.targetLensVersion
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.wellarchitected.model.GetLensVersionDifferenceRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("GetLensVersionDifferenceRequest(")
append("baseLensVersion=$baseLensVersion,")
append("lensAlias=$lensAlias,")
append("targetLensVersion=$targetLensVersion")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = baseLensVersion?.hashCode() ?: 0
result = 31 * result + (lensAlias?.hashCode() ?: 0)
result = 31 * result + (targetLensVersion?.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 GetLensVersionDifferenceRequest
if (baseLensVersion != other.baseLensVersion) return false
if (lensAlias != other.lensAlias) return false
if (targetLensVersion != other.targetLensVersion) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.wellarchitected.model.GetLensVersionDifferenceRequest = Builder(this).apply(block).build()
public class Builder {
/**
* The base version of the lens.
*/
public var baseLensVersion: kotlin.String? = null
/**
* 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 lens version to target a difference for.
*/
public var targetLensVersion: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.wellarchitected.model.GetLensVersionDifferenceRequest) : this() {
this.baseLensVersion = x.baseLensVersion
this.lensAlias = x.lensAlias
this.targetLensVersion = x.targetLensVersion
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.wellarchitected.model.GetLensVersionDifferenceRequest = GetLensVersionDifferenceRequest(this)
internal fun correctErrors(): Builder {
if (lensAlias == null) lensAlias = ""
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy