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

commonMain.aws.sdk.kotlin.services.appsync.model.ApiAssociation.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 an `ApiAssociation` object.
 */
public class ApiAssociation private constructor(builder: Builder) {
    /**
     * The API ID.
     */
    public val apiId: kotlin.String? = builder.apiId
    /**
     * Identifies the status of an association.
     * + **PROCESSING**: The API association is being created. You cannot modify association requests during processing.
     * + **SUCCESS**: The API association was successful. You can modify associations after success.
     * + **FAILED**: The API association has failed. You can modify associations after failure.
     */
    public val associationStatus: aws.sdk.kotlin.services.appsync.model.AssociationStatus? = builder.associationStatus
    /**
     * Details about the last deployment status.
     */
    public val deploymentDetail: kotlin.String? = builder.deploymentDetail
    /**
     * The domain name.
     */
    public val domainName: kotlin.String? = builder.domainName

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

    override fun toString(): kotlin.String = buildString {
        append("ApiAssociation(")
        append("apiId=$apiId,")
        append("associationStatus=$associationStatus,")
        append("deploymentDetail=$deploymentDetail,")
        append("domainName=$domainName")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = apiId?.hashCode() ?: 0
        result = 31 * result + (associationStatus?.hashCode() ?: 0)
        result = 31 * result + (deploymentDetail?.hashCode() ?: 0)
        result = 31 * result + (domainName?.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 ApiAssociation

        if (apiId != other.apiId) return false
        if (associationStatus != other.associationStatus) return false
        if (deploymentDetail != other.deploymentDetail) return false
        if (domainName != other.domainName) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * The API ID.
         */
        public var apiId: kotlin.String? = null
        /**
         * Identifies the status of an association.
         * + **PROCESSING**: The API association is being created. You cannot modify association requests during processing.
         * + **SUCCESS**: The API association was successful. You can modify associations after success.
         * + **FAILED**: The API association has failed. You can modify associations after failure.
         */
        public var associationStatus: aws.sdk.kotlin.services.appsync.model.AssociationStatus? = null
        /**
         * Details about the last deployment status.
         */
        public var deploymentDetail: kotlin.String? = null
        /**
         * The domain name.
         */
        public var domainName: kotlin.String? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.appsync.model.ApiAssociation) : this() {
            this.apiId = x.apiId
            this.associationStatus = x.associationStatus
            this.deploymentDetail = x.deploymentDetail
            this.domainName = x.domainName
        }

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

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy