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

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

/**
 * Describes the ARNs and IDs of associations, Merged APIs, and source APIs.
 */
public class SourceApiAssociationSummary private constructor(builder: Builder) {
    /**
     * The Amazon Resource Name (ARN) of the source API association.
     */
    public val associationArn: kotlin.String? = builder.associationArn
    /**
     * The ID generated by the AppSync service for the source API association.
     */
    public val associationId: kotlin.String? = builder.associationId
    /**
     * The description field.
     */
    public val description: kotlin.String? = builder.description
    /**
     * The Amazon Resource Name (ARN) of the AppSync Merged API.
     */
    public val mergedApiArn: kotlin.String? = builder.mergedApiArn
    /**
     * The ID of the AppSync Merged API.
     */
    public val mergedApiId: kotlin.String? = builder.mergedApiId
    /**
     * The Amazon Resource Name (ARN) of the AppSync Source API.
     */
    public val sourceApiArn: kotlin.String? = builder.sourceApiArn
    /**
     * The ID of the AppSync source API.
     */
    public val sourceApiId: kotlin.String? = builder.sourceApiId

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

    override fun toString(): kotlin.String = buildString {
        append("SourceApiAssociationSummary(")
        append("associationArn=$associationArn,")
        append("associationId=$associationId,")
        append("description=$description,")
        append("mergedApiArn=$mergedApiArn,")
        append("mergedApiId=$mergedApiId,")
        append("sourceApiArn=$sourceApiArn,")
        append("sourceApiId=$sourceApiId")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = associationArn?.hashCode() ?: 0
        result = 31 * result + (associationId?.hashCode() ?: 0)
        result = 31 * result + (description?.hashCode() ?: 0)
        result = 31 * result + (mergedApiArn?.hashCode() ?: 0)
        result = 31 * result + (mergedApiId?.hashCode() ?: 0)
        result = 31 * result + (sourceApiArn?.hashCode() ?: 0)
        result = 31 * result + (sourceApiId?.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 SourceApiAssociationSummary

        if (associationArn != other.associationArn) return false
        if (associationId != other.associationId) return false
        if (description != other.description) return false
        if (mergedApiArn != other.mergedApiArn) return false
        if (mergedApiId != other.mergedApiId) return false
        if (sourceApiArn != other.sourceApiArn) return false
        if (sourceApiId != other.sourceApiId) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * The Amazon Resource Name (ARN) of the source API association.
         */
        public var associationArn: kotlin.String? = null
        /**
         * The ID generated by the AppSync service for the source API association.
         */
        public var associationId: kotlin.String? = null
        /**
         * The description field.
         */
        public var description: kotlin.String? = null
        /**
         * The Amazon Resource Name (ARN) of the AppSync Merged API.
         */
        public var mergedApiArn: kotlin.String? = null
        /**
         * The ID of the AppSync Merged API.
         */
        public var mergedApiId: kotlin.String? = null
        /**
         * The Amazon Resource Name (ARN) of the AppSync Source API.
         */
        public var sourceApiArn: kotlin.String? = null
        /**
         * The ID of the AppSync source API.
         */
        public var sourceApiId: kotlin.String? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.appsync.model.SourceApiAssociationSummary) : this() {
            this.associationArn = x.associationArn
            this.associationId = x.associationId
            this.description = x.description
            this.mergedApiArn = x.mergedApiArn
            this.mergedApiId = x.mergedApiId
            this.sourceApiArn = x.sourceApiArn
            this.sourceApiId = x.sourceApiId
        }

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

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy