
commonMain.aws.sdk.kotlin.services.wellarchitected.model.DeleteLensShareRequest.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.wellarchitected.model
public class DeleteLensShareRequest private constructor(builder: Builder) {
/**
* A unique case-sensitive string used to ensure that this request is idempotent (executes only once).
*
* You should not reuse the same token for other requests. If you retry a request with the same client request token and the same parameters after the original request has completed successfully, the result of the original request is returned.
*
* This token is listed as required, however, if you do not specify it, the Amazon Web Services SDKs automatically generate one for you. If you are not using the Amazon Web Services SDK or the CLI, you must provide this token or the request will fail.
*/
public val clientRequestToken: kotlin.String? = requireNotNull(builder.clientRequestToken) { "A non-null value must be provided for clientRequestToken" }
/**
* 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 ID associated with the share.
*/
public val shareId: kotlin.String? = requireNotNull(builder.shareId) { "A non-null value must be provided for shareId" }
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.wellarchitected.model.DeleteLensShareRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("DeleteLensShareRequest(")
append("clientRequestToken=$clientRequestToken,")
append("lensAlias=$lensAlias,")
append("shareId=$shareId")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = clientRequestToken?.hashCode() ?: 0
result = 31 * result + (lensAlias?.hashCode() ?: 0)
result = 31 * result + (shareId?.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 DeleteLensShareRequest
if (clientRequestToken != other.clientRequestToken) return false
if (lensAlias != other.lensAlias) return false
if (shareId != other.shareId) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.wellarchitected.model.DeleteLensShareRequest = Builder(this).apply(block).build()
public class Builder {
/**
* A unique case-sensitive string used to ensure that this request is idempotent (executes only once).
*
* You should not reuse the same token for other requests. If you retry a request with the same client request token and the same parameters after the original request has completed successfully, the result of the original request is returned.
*
* This token is listed as required, however, if you do not specify it, the Amazon Web Services SDKs automatically generate one for you. If you are not using the Amazon Web Services SDK or the CLI, you must provide this token or the request will fail.
*/
public var clientRequestToken: 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 ID associated with the share.
*/
public var shareId: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.wellarchitected.model.DeleteLensShareRequest) : this() {
this.clientRequestToken = x.clientRequestToken
this.lensAlias = x.lensAlias
this.shareId = x.shareId
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.wellarchitected.model.DeleteLensShareRequest = DeleteLensShareRequest(this)
internal fun correctErrors(): Builder {
if (clientRequestToken == null) clientRequestToken = ""
if (lensAlias == null) lensAlias = ""
if (shareId == null) shareId = ""
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy