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