
commonMain.aws.sdk.kotlin.services.wellarchitected.model.LensSummary.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.time.Instant
/**
* A lens summary of a lens.
*/
public class LensSummary private constructor(builder: Builder) {
/**
* The date and time recorded.
*/
public val createdAt: aws.smithy.kotlin.runtime.time.Instant? = builder.createdAt
/**
* The description of the lens.
*/
public val description: kotlin.String? = builder.description
/**
* 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 of the lens.
*/
public val lensArn: kotlin.String? = builder.lensArn
/**
* The full name of the lens.
*/
public val lensName: kotlin.String? = builder.lensName
/**
* The status of the lens.
*/
public val lensStatus: aws.sdk.kotlin.services.wellarchitected.model.LensStatus? = builder.lensStatus
/**
* The type of the lens.
*/
public val lensType: aws.sdk.kotlin.services.wellarchitected.model.LensType? = builder.lensType
/**
* The version of the lens.
*/
public val lensVersion: kotlin.String? = builder.lensVersion
/**
* An Amazon Web Services account ID.
*/
public val owner: kotlin.String? = builder.owner
/**
* The date and time recorded.
*/
public val updatedAt: aws.smithy.kotlin.runtime.time.Instant? = builder.updatedAt
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.wellarchitected.model.LensSummary = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("LensSummary(")
append("createdAt=$createdAt,")
append("description=$description,")
append("lensAlias=$lensAlias,")
append("lensArn=$lensArn,")
append("lensName=$lensName,")
append("lensStatus=$lensStatus,")
append("lensType=$lensType,")
append("lensVersion=$lensVersion,")
append("owner=$owner,")
append("updatedAt=$updatedAt")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = createdAt?.hashCode() ?: 0
result = 31 * result + (description?.hashCode() ?: 0)
result = 31 * result + (lensAlias?.hashCode() ?: 0)
result = 31 * result + (lensArn?.hashCode() ?: 0)
result = 31 * result + (lensName?.hashCode() ?: 0)
result = 31 * result + (lensStatus?.hashCode() ?: 0)
result = 31 * result + (lensType?.hashCode() ?: 0)
result = 31 * result + (lensVersion?.hashCode() ?: 0)
result = 31 * result + (owner?.hashCode() ?: 0)
result = 31 * result + (updatedAt?.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 LensSummary
if (createdAt != other.createdAt) return false
if (description != other.description) return false
if (lensAlias != other.lensAlias) return false
if (lensArn != other.lensArn) return false
if (lensName != other.lensName) return false
if (lensStatus != other.lensStatus) return false
if (lensType != other.lensType) return false
if (lensVersion != other.lensVersion) return false
if (owner != other.owner) return false
if (updatedAt != other.updatedAt) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.wellarchitected.model.LensSummary = Builder(this).apply(block).build()
public class Builder {
/**
* The date and time recorded.
*/
public var createdAt: aws.smithy.kotlin.runtime.time.Instant? = null
/**
* The description of the lens.
*/
public var description: 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 of the lens.
*/
public var lensArn: kotlin.String? = null
/**
* The full name of the lens.
*/
public var lensName: kotlin.String? = null
/**
* The status of the lens.
*/
public var lensStatus: aws.sdk.kotlin.services.wellarchitected.model.LensStatus? = null
/**
* The type of the lens.
*/
public var lensType: aws.sdk.kotlin.services.wellarchitected.model.LensType? = null
/**
* The version of the lens.
*/
public var lensVersion: kotlin.String? = null
/**
* An Amazon Web Services account ID.
*/
public var owner: kotlin.String? = null
/**
* The date and time recorded.
*/
public var updatedAt: aws.smithy.kotlin.runtime.time.Instant? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.wellarchitected.model.LensSummary) : this() {
this.createdAt = x.createdAt
this.description = x.description
this.lensAlias = x.lensAlias
this.lensArn = x.lensArn
this.lensName = x.lensName
this.lensStatus = x.lensStatus
this.lensType = x.lensType
this.lensVersion = x.lensVersion
this.owner = x.owner
this.updatedAt = x.updatedAt
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.wellarchitected.model.LensSummary = LensSummary(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy