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

commonMain.aws.sdk.kotlin.services.ssm.model.DescribeDocumentResponse.kt Maven / Gradle / Ivy

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

package aws.sdk.kotlin.services.ssm.model

import aws.smithy.kotlin.runtime.SdkDsl

public class DescribeDocumentResponse private constructor(builder: Builder) {
    /**
     * Information about the SSM document.
     */
    public val document: aws.sdk.kotlin.services.ssm.model.DocumentDescription? = builder.document

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

    override fun toString(): kotlin.String = buildString {
        append("DescribeDocumentResponse(")
        append("document=$document")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = document?.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 DescribeDocumentResponse

        if (document != other.document) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * Information about the SSM document.
         */
        public var document: aws.sdk.kotlin.services.ssm.model.DocumentDescription? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.ssm.model.DescribeDocumentResponse) : this() {
            this.document = x.document
        }

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

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy