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

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

public class UpdateBackendConfigResponse 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
    /**
     * If the request fails, this error is returned.
     */
    public val error: kotlin.String? = builder.error
    /**
     * Describes the Amazon Cognito configurations for the Admin UI auth resource to log in with.
     */
    public val loginAuthConfig: aws.sdk.kotlin.services.amplifybackend.model.LoginAuthConfigReqObj? = builder.loginAuthConfig

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

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

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

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

        return true
    }

    public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.amplifybackend.model.UpdateBackendConfigResponse = 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
        /**
         * If the request fails, this error is returned.
         */
        public var error: kotlin.String? = null
        /**
         * Describes the Amazon Cognito configurations for the Admin UI auth resource to log in with.
         */
        public var loginAuthConfig: aws.sdk.kotlin.services.amplifybackend.model.LoginAuthConfigReqObj? = null

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

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

        /**
         * construct an [aws.sdk.kotlin.services.amplifybackend.model.LoginAuthConfigReqObj] inside the given [block]
         */
        public fun loginAuthConfig(block: aws.sdk.kotlin.services.amplifybackend.model.LoginAuthConfigReqObj.Builder.() -> kotlin.Unit) {
            this.loginAuthConfig = aws.sdk.kotlin.services.amplifybackend.model.LoginAuthConfigReqObj.invoke(block)
        }

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy