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

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

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

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



/**
 * The choice level additional resources for a custom lens.
 *
 * This field does not apply to Amazon Web Services official lenses.
 */
public class AdditionalResources private constructor(builder: Builder) {
    /**
     * The URLs for additional resources, either helpful resources or improvement plans, for a custom lens. Up to five additional URLs can be specified.
     */
    public val content: List? = builder.content
    /**
     * Type of additional resource for a custom lens.
     */
    public val type: aws.sdk.kotlin.services.wellarchitected.model.AdditionalResourceType? = builder.type

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

    override fun toString(): kotlin.String = buildString {
        append("AdditionalResources(")
        append("content=$content,")
        append("type=$type")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = content?.hashCode() ?: 0
        result = 31 * result + (type?.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 AdditionalResources

        if (content != other.content) return false
        if (type != other.type) return false

        return true
    }

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

    public class Builder {
        /**
         * The URLs for additional resources, either helpful resources or improvement plans, for a custom lens. Up to five additional URLs can be specified.
         */
        public var content: List? = null
        /**
         * Type of additional resource for a custom lens.
         */
        public var type: aws.sdk.kotlin.services.wellarchitected.model.AdditionalResourceType? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.wellarchitected.model.AdditionalResources) : this() {
            this.content = x.content
            this.type = x.type
        }

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy