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

commonMain.aws.sdk.kotlin.services.pinpointsmsvoicev2.model.RegistrationSectionDisplayHints.kt Maven / Gradle / Ivy

There is a newer version: 1.3.78
Show newest version
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!

package aws.sdk.kotlin.services.pinpointsmsvoicev2.model

import aws.smithy.kotlin.runtime.SdkDsl

/**
 * Provides help information on the registration section.
 */
public class RegistrationSectionDisplayHints private constructor(builder: Builder) {
    /**
     * The link to the document the display hint is associated with.
     */
    public val documentationLink: kotlin.String? = builder.documentationLink
    /**
     * The title of the document the display hint is associated with.
     */
    public val documentationTitle: kotlin.String? = builder.documentationTitle
    /**
     * A full description of the display hint.
     */
    public val longDescription: kotlin.String? = builder.longDescription
    /**
     * A short description of the display hint.
     */
    public val shortDescription: kotlin.String = requireNotNull(builder.shortDescription) { "A non-null value must be provided for shortDescription" }
    /**
     * The title of the display hint.
     */
    public val title: kotlin.String = requireNotNull(builder.title) { "A non-null value must be provided for title" }

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

    override fun toString(): kotlin.String = buildString {
        append("RegistrationSectionDisplayHints(")
        append("documentationLink=$documentationLink,")
        append("documentationTitle=$documentationTitle,")
        append("longDescription=$longDescription,")
        append("shortDescription=$shortDescription,")
        append("title=$title")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = documentationLink?.hashCode() ?: 0
        result = 31 * result + (documentationTitle?.hashCode() ?: 0)
        result = 31 * result + (longDescription?.hashCode() ?: 0)
        result = 31 * result + (shortDescription.hashCode())
        result = 31 * result + (title.hashCode())
        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 RegistrationSectionDisplayHints

        if (documentationLink != other.documentationLink) return false
        if (documentationTitle != other.documentationTitle) return false
        if (longDescription != other.longDescription) return false
        if (shortDescription != other.shortDescription) return false
        if (title != other.title) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * The link to the document the display hint is associated with.
         */
        public var documentationLink: kotlin.String? = null
        /**
         * The title of the document the display hint is associated with.
         */
        public var documentationTitle: kotlin.String? = null
        /**
         * A full description of the display hint.
         */
        public var longDescription: kotlin.String? = null
        /**
         * A short description of the display hint.
         */
        public var shortDescription: kotlin.String? = null
        /**
         * The title of the display hint.
         */
        public var title: kotlin.String? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.pinpointsmsvoicev2.model.RegistrationSectionDisplayHints) : this() {
            this.documentationLink = x.documentationLink
            this.documentationTitle = x.documentationTitle
            this.longDescription = x.longDescription
            this.shortDescription = x.shortDescription
            this.title = x.title
        }

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

        internal fun correctErrors(): Builder {
            if (shortDescription == null) shortDescription = ""
            if (title == null) title = ""
            return this
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy