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

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

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

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



/**
 * Information about the source where the association execution details are stored.
 */
public class OutputSource private constructor(builder: Builder) {
    /**
     * The ID of the output source, for example the URL of an S3 bucket.
     */
    public val outputSourceId: kotlin.String? = builder.outputSourceId
    /**
     * The type of source where the association execution details are stored, for example, Amazon S3.
     */
    public val outputSourceType: kotlin.String? = builder.outputSourceType

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

    override fun toString(): kotlin.String = buildString {
        append("OutputSource(")
        append("outputSourceId=$outputSourceId,")
        append("outputSourceType=$outputSourceType")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = outputSourceId?.hashCode() ?: 0
        result = 31 * result + (outputSourceType?.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 OutputSource

        if (outputSourceId != other.outputSourceId) return false
        if (outputSourceType != other.outputSourceType) return false

        return true
    }

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

    public class Builder {
        /**
         * The ID of the output source, for example the URL of an S3 bucket.
         */
        public var outputSourceId: kotlin.String? = null
        /**
         * The type of source where the association execution details are stored, for example, Amazon S3.
         */
        public var outputSourceType: kotlin.String? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.ssm.model.OutputSource) : this() {
            this.outputSourceId = x.outputSourceId
            this.outputSourceType = x.outputSourceType
        }

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy