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

commonMain.aws.sdk.kotlin.services.appsync.model.DisassociateMergedGraphqlApiRequest.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.appsync.model

import aws.smithy.kotlin.runtime.SdkDsl

public class DisassociateMergedGraphqlApiRequest private constructor(builder: Builder) {
    /**
     * The ID generated by the AppSync service for the source API association.
     */
    public val associationId: kotlin.String? = builder.associationId
    /**
     * The identifier of the AppSync Source API. This is generated by the AppSync service. In most cases, source APIs (especially in your account) only require the API ID value or ARN of the source API. However, source APIs from other accounts (cross-account use cases) strictly require the full resource ARN of the source API.
     */
    public val sourceApiIdentifier: kotlin.String? = builder.sourceApiIdentifier

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

    override fun toString(): kotlin.String = buildString {
        append("DisassociateMergedGraphqlApiRequest(")
        append("associationId=$associationId,")
        append("sourceApiIdentifier=$sourceApiIdentifier")
        append(")")
    }

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

        if (associationId != other.associationId) return false
        if (sourceApiIdentifier != other.sourceApiIdentifier) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * The ID generated by the AppSync service for the source API association.
         */
        public var associationId: kotlin.String? = null
        /**
         * The identifier of the AppSync Source API. This is generated by the AppSync service. In most cases, source APIs (especially in your account) only require the API ID value or ARN of the source API. However, source APIs from other accounts (cross-account use cases) strictly require the full resource ARN of the source API.
         */
        public var sourceApiIdentifier: kotlin.String? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.appsync.model.DisassociateMergedGraphqlApiRequest) : this() {
            this.associationId = x.associationId
            this.sourceApiIdentifier = x.sourceApiIdentifier
        }

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

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy