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

commonMain.aws.sdk.kotlin.services.apprunner.model.AssociateCustomDomainRequest.kt Maven / Gradle / Ivy

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

package aws.sdk.kotlin.services.apprunner.model

import aws.smithy.kotlin.runtime.SdkDsl

public class AssociateCustomDomainRequest private constructor(builder: Builder) {
    /**
     * A custom domain endpoint to associate. Specify a root domain (for example, `example.com`), a subdomain (for example, `login.example.com` or `admin.login.example.com`), or a wildcard (for example, `*.example.com`).
     */
    public val domainName: kotlin.String? = builder.domainName
    /**
     * Set to `true` to associate the subdomain `www.DomainName ` with the App Runner service in addition to the base domain.
     *
     * Default: `true`
     */
    public val enableWwwSubdomain: kotlin.Boolean? = builder.enableWwwSubdomain
    /**
     * The Amazon Resource Name (ARN) of the App Runner service that you want to associate a custom domain name with.
     */
    public val serviceArn: kotlin.String? = builder.serviceArn

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

    override fun toString(): kotlin.String = buildString {
        append("AssociateCustomDomainRequest(")
        append("domainName=$domainName,")
        append("enableWwwSubdomain=$enableWwwSubdomain,")
        append("serviceArn=$serviceArn")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = domainName?.hashCode() ?: 0
        result = 31 * result + (enableWwwSubdomain?.hashCode() ?: 0)
        result = 31 * result + (serviceArn?.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 AssociateCustomDomainRequest

        if (domainName != other.domainName) return false
        if (enableWwwSubdomain != other.enableWwwSubdomain) return false
        if (serviceArn != other.serviceArn) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * A custom domain endpoint to associate. Specify a root domain (for example, `example.com`), a subdomain (for example, `login.example.com` or `admin.login.example.com`), or a wildcard (for example, `*.example.com`).
         */
        public var domainName: kotlin.String? = null
        /**
         * Set to `true` to associate the subdomain `www.DomainName ` with the App Runner service in addition to the base domain.
         *
         * Default: `true`
         */
        public var enableWwwSubdomain: kotlin.Boolean? = null
        /**
         * The Amazon Resource Name (ARN) of the App Runner service that you want to associate a custom domain name with.
         */
        public var serviceArn: kotlin.String? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.apprunner.model.AssociateCustomDomainRequest) : this() {
            this.domainName = x.domainName
            this.enableWwwSubdomain = x.enableWwwSubdomain
            this.serviceArn = x.serviceArn
        }

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

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy