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

commonMain.aws.sdk.kotlin.services.amplifybackend.model.CreateBackendConfigRequest.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.amplifybackend.model

import aws.smithy.kotlin.runtime.SdkDsl

/**
 * The request body for CreateBackendConfig.
 */
public class CreateBackendConfigRequest private constructor(builder: Builder) {
    /**
     * The app ID.
     */
    public val appId: kotlin.String? = builder.appId
    /**
     * The app ID for the backend manager.
     */
    public val backendManagerAppId: kotlin.String? = builder.backendManagerAppId

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

    override fun toString(): kotlin.String = buildString {
        append("CreateBackendConfigRequest(")
        append("appId=$appId,")
        append("backendManagerAppId=$backendManagerAppId")
        append(")")
    }

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

        if (appId != other.appId) return false
        if (backendManagerAppId != other.backendManagerAppId) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * The app ID.
         */
        public var appId: kotlin.String? = null
        /**
         * The app ID for the backend manager.
         */
        public var backendManagerAppId: kotlin.String? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.amplifybackend.model.CreateBackendConfigRequest) : this() {
            this.appId = x.appId
            this.backendManagerAppId = x.backendManagerAppId
        }

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

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy