
commonMain.aws.sdk.kotlin.services.wellarchitected.model.GetLensVersionDifferenceResponse.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.wellarchitected.model
public class GetLensVersionDifferenceResponse private constructor(builder: Builder) {
/**
* The base version of the lens.
*/
public val baseLensVersion: kotlin.String? = builder.baseLensVersion
/**
* The latest version of the lens.
*/
public val latestLensVersion: kotlin.String? = builder.latestLensVersion
/**
* 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 target lens version for the lens.
*/
public val targetLensVersion: kotlin.String? = builder.targetLensVersion
/**
* The differences between the base and latest versions of the lens.
*/
public val versionDifferences: aws.sdk.kotlin.services.wellarchitected.model.VersionDifferences? = builder.versionDifferences
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.wellarchitected.model.GetLensVersionDifferenceResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("GetLensVersionDifferenceResponse(")
append("baseLensVersion=$baseLensVersion,")
append("latestLensVersion=$latestLensVersion,")
append("lensAlias=$lensAlias,")
append("lensArn=$lensArn,")
append("targetLensVersion=$targetLensVersion,")
append("versionDifferences=$versionDifferences")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = baseLensVersion?.hashCode() ?: 0
result = 31 * result + (latestLensVersion?.hashCode() ?: 0)
result = 31 * result + (lensAlias?.hashCode() ?: 0)
result = 31 * result + (lensArn?.hashCode() ?: 0)
result = 31 * result + (targetLensVersion?.hashCode() ?: 0)
result = 31 * result + (versionDifferences?.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 GetLensVersionDifferenceResponse
if (baseLensVersion != other.baseLensVersion) return false
if (latestLensVersion != other.latestLensVersion) return false
if (lensAlias != other.lensAlias) return false
if (lensArn != other.lensArn) return false
if (targetLensVersion != other.targetLensVersion) return false
if (versionDifferences != other.versionDifferences) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.wellarchitected.model.GetLensVersionDifferenceResponse = Builder(this).apply(block).build()
public class Builder {
/**
* The base version of the lens.
*/
public var baseLensVersion: kotlin.String? = null
/**
* The latest version of the lens.
*/
public var latestLensVersion: 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 ARN for the lens.
*/
public var lensArn: kotlin.String? = null
/**
* The target lens version for the lens.
*/
public var targetLensVersion: kotlin.String? = null
/**
* The differences between the base and latest versions of the lens.
*/
public var versionDifferences: aws.sdk.kotlin.services.wellarchitected.model.VersionDifferences? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.wellarchitected.model.GetLensVersionDifferenceResponse) : this() {
this.baseLensVersion = x.baseLensVersion
this.latestLensVersion = x.latestLensVersion
this.lensAlias = x.lensAlias
this.lensArn = x.lensArn
this.targetLensVersion = x.targetLensVersion
this.versionDifferences = x.versionDifferences
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.wellarchitected.model.GetLensVersionDifferenceResponse = GetLensVersionDifferenceResponse(this)
/**
* construct an [aws.sdk.kotlin.services.wellarchitected.model.VersionDifferences] inside the given [block]
*/
public fun versionDifferences(block: aws.sdk.kotlin.services.wellarchitected.model.VersionDifferences.Builder.() -> kotlin.Unit) {
this.versionDifferences = aws.sdk.kotlin.services.wellarchitected.model.VersionDifferences.invoke(block)
}
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy