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

commonMain.aws.sdk.kotlin.services.datazone.model.SubscriptionTargetForm.kt Maven / Gradle / Ivy

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

package aws.sdk.kotlin.services.datazone.model



/**
 * The details of the subscription target configuration.
 */
public class SubscriptionTargetForm private constructor(builder: Builder) {
    /**
     * The content of the subscription target configuration.
     */
    public val content: kotlin.String = requireNotNull(builder.content) { "A non-null value must be provided for content" }
    /**
     * The form name included in the subscription target configuration.
     */
    public val formName: kotlin.String = requireNotNull(builder.formName) { "A non-null value must be provided for formName" }

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

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

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

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

        return true
    }

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

    public class Builder {
        /**
         * The content of the subscription target configuration.
         */
        public var content: kotlin.String? = null
        /**
         * The form name included in the subscription target configuration.
         */
        public var formName: kotlin.String? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.datazone.model.SubscriptionTargetForm) : this() {
            this.content = x.content
            this.formName = x.formName
        }

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

        internal fun correctErrors(): Builder {
            if (content == null) content = ""
            if (formName == null) formName = ""
            return this
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy