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

commonMain.aws.sdk.kotlin.services.sms.model.GetAppResponse.kt Maven / Gradle / Ivy

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

package aws.sdk.kotlin.services.sms.model



public class GetAppResponse private constructor(builder: Builder) {
    /**
     * Information about the application.
     */
    public val appSummary: aws.sdk.kotlin.services.sms.model.AppSummary? = builder.appSummary
    /**
     * The server groups that belong to the application.
     */
    public val serverGroups: List? = builder.serverGroups
    /**
     * The tags associated with the application.
     */
    public val tags: List? = builder.tags

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

    override fun toString(): kotlin.String = buildString {
        append("GetAppResponse(")
        append("appSummary=$appSummary,")
        append("serverGroups=$serverGroups,")
        append("tags=$tags")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = appSummary?.hashCode() ?: 0
        result = 31 * result + (serverGroups?.hashCode() ?: 0)
        result = 31 * result + (tags?.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 GetAppResponse

        if (appSummary != other.appSummary) return false
        if (serverGroups != other.serverGroups) return false
        if (tags != other.tags) return false

        return true
    }

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

    public class Builder {
        /**
         * Information about the application.
         */
        public var appSummary: aws.sdk.kotlin.services.sms.model.AppSummary? = null
        /**
         * The server groups that belong to the application.
         */
        public var serverGroups: List? = null
        /**
         * The tags associated with the application.
         */
        public var tags: List? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.sms.model.GetAppResponse) : this() {
            this.appSummary = x.appSummary
            this.serverGroups = x.serverGroups
            this.tags = x.tags
        }

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

        /**
         * construct an [aws.sdk.kotlin.services.sms.model.AppSummary] inside the given [block]
         */
        public fun appSummary(block: aws.sdk.kotlin.services.sms.model.AppSummary.Builder.() -> kotlin.Unit) {
            this.appSummary = aws.sdk.kotlin.services.sms.model.AppSummary.invoke(block)
        }

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy