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

commonMain.aws.sdk.kotlin.services.appsync.model.GetSourceApiAssociationRequest.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 GetSourceApiAssociationRequest 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 Merged API. This is generated by the AppSync service. In most cases, Merged APIs (especially in your account) only require the API ID value or ARN of the merged API. However, Merged APIs in other accounts (cross-account use cases) strictly require the full resource ARN of the merged API.
     */
    public val mergedApiIdentifier: kotlin.String? = builder.mergedApiIdentifier

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

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

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

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

        return true
    }

    public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.appsync.model.GetSourceApiAssociationRequest = 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 Merged API. This is generated by the AppSync service. In most cases, Merged APIs (especially in your account) only require the API ID value or ARN of the merged API. However, Merged APIs in other accounts (cross-account use cases) strictly require the full resource ARN of the merged API.
         */
        public var mergedApiIdentifier: kotlin.String? = null

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

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

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy