All Downloads are FREE. Search and download functionalities are using the official Maven repository.

commonMain.aws.sdk.kotlin.services.wellarchitected.model.Lens.kt Maven / Gradle / Ivy

// Code generated by smithy-kotlin-codegen. DO NOT EDIT!

package aws.sdk.kotlin.services.wellarchitected.model



/**
 * A lens return object.
 */
public class Lens private constructor(builder: Builder) {
    /**
     * The description of the lens.
     */
    public val description: kotlin.String? = builder.description
    /**
     * The ARN of a lens.
     */
    public val lensArn: kotlin.String? = builder.lensArn
    /**
     * The version of a lens.
     */
    public val lensVersion: kotlin.String? = builder.lensVersion
    /**
     * The full name of the lens.
     */
    public val name: kotlin.String? = builder.name
    /**
     * The Amazon Web Services account ID that owns the lens.
     */
    public val owner: kotlin.String? = builder.owner
    /**
     * The ID assigned to the share invitation.
     */
    public val shareInvitationId: kotlin.String? = builder.shareInvitationId
    /**
     * The tags assigned to the lens.
     */
    public val tags: Map? = builder.tags

    public companion object {
        public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.wellarchitected.model.Lens = Builder().apply(block).build()
    }

    override fun toString(): kotlin.String = buildString {
        append("Lens(")
        append("description=$description,")
        append("lensArn=$lensArn,")
        append("lensVersion=$lensVersion,")
        append("name=$name,")
        append("owner=$owner,")
        append("shareInvitationId=$shareInvitationId,")
        append("tags=$tags")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = description?.hashCode() ?: 0
        result = 31 * result + (lensArn?.hashCode() ?: 0)
        result = 31 * result + (lensVersion?.hashCode() ?: 0)
        result = 31 * result + (name?.hashCode() ?: 0)
        result = 31 * result + (owner?.hashCode() ?: 0)
        result = 31 * result + (shareInvitationId?.hashCode() ?: 0)
        result = 31 * result + (tags?.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 Lens

        if (description != other.description) return false
        if (lensArn != other.lensArn) return false
        if (lensVersion != other.lensVersion) return false
        if (name != other.name) return false
        if (owner != other.owner) return false
        if (shareInvitationId != other.shareInvitationId) return false
        if (tags != other.tags) return false

        return true
    }

    public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.wellarchitected.model.Lens = Builder(this).apply(block).build()

    public class Builder {
        /**
         * The description of the lens.
         */
        public var description: kotlin.String? = null
        /**
         * The ARN of a lens.
         */
        public var lensArn: kotlin.String? = null
        /**
         * The version of a lens.
         */
        public var lensVersion: kotlin.String? = null
        /**
         * The full name of the lens.
         */
        public var name: kotlin.String? = null
        /**
         * The Amazon Web Services account ID that owns the lens.
         */
        public var owner: kotlin.String? = null
        /**
         * The ID assigned to the share invitation.
         */
        public var shareInvitationId: kotlin.String? = null
        /**
         * The tags assigned to the lens.
         */
        public var tags: Map? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.wellarchitected.model.Lens) : this() {
            this.description = x.description
            this.lensArn = x.lensArn
            this.lensVersion = x.lensVersion
            this.name = x.name
            this.owner = x.owner
            this.shareInvitationId = x.shareInvitationId
            this.tags = x.tags
        }

        @PublishedApi
        internal fun build(): aws.sdk.kotlin.services.wellarchitected.model.Lens = Lens(this)

        internal fun correctErrors(): Builder {
            return this
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy