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

commonMain.aws.sdk.kotlin.services.ssmsap.model.GetApplicationRequest.kt Maven / Gradle / Ivy

// Code generated by smithy-kotlin-codegen. DO NOT EDIT!

package aws.sdk.kotlin.services.ssmsap.model

import aws.smithy.kotlin.runtime.SdkDsl

public class GetApplicationRequest private constructor(builder: Builder) {
    /**
     * The Amazon Resource Name (ARN) of the application registry.
     */
    public val appRegistryArn: kotlin.String? = builder.appRegistryArn
    /**
     * The Amazon Resource Name (ARN) of the application.
     */
    public val applicationArn: kotlin.String? = builder.applicationArn
    /**
     * The ID of the application.
     */
    public val applicationId: kotlin.String? = builder.applicationId

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

    override fun toString(): kotlin.String = buildString {
        append("GetApplicationRequest(")
        append("appRegistryArn=$appRegistryArn,")
        append("applicationArn=$applicationArn,")
        append("applicationId=$applicationId")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = appRegistryArn?.hashCode() ?: 0
        result = 31 * result + (applicationArn?.hashCode() ?: 0)
        result = 31 * result + (applicationId?.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 GetApplicationRequest

        if (appRegistryArn != other.appRegistryArn) return false
        if (applicationArn != other.applicationArn) return false
        if (applicationId != other.applicationId) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * The Amazon Resource Name (ARN) of the application registry.
         */
        public var appRegistryArn: kotlin.String? = null
        /**
         * The Amazon Resource Name (ARN) of the application.
         */
        public var applicationArn: kotlin.String? = null
        /**
         * The ID of the application.
         */
        public var applicationId: kotlin.String? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.ssmsap.model.GetApplicationRequest) : this() {
            this.appRegistryArn = x.appRegistryArn
            this.applicationArn = x.applicationArn
            this.applicationId = x.applicationId
        }

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy