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

aws.sdk.kotlin.services.devopsguru.model.OpsCenterIntegrationConfig.kt Maven / Gradle / Ivy

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

package aws.sdk.kotlin.services.devopsguru.model



/**
 * Information about whether DevOps Guru is configured to create an OpsItem in Amazon Web Services Systems Manager
 * OpsCenter for each created insight.
 */
class OpsCenterIntegrationConfig private constructor(builder: Builder) {
    /**
     * Specifies if DevOps Guru is enabled to create an Amazon Web Services Systems Manager OpsItem for each created
     * insight.
     */
    val optInStatus: aws.sdk.kotlin.services.devopsguru.model.OptInStatus? = builder.optInStatus

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

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

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

        if (optInStatus != other.optInStatus) return false

        return true
    }

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

    class Builder {
        /**
         * Specifies if DevOps Guru is enabled to create an Amazon Web Services Systems Manager OpsItem for each created
         * insight.
         */
        var optInStatus: aws.sdk.kotlin.services.devopsguru.model.OptInStatus? = null

        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.devopsguru.model.OpsCenterIntegrationConfig) : this() {
            this.optInStatus = x.optInStatus
        }

        @PublishedApi
        internal fun build(): aws.sdk.kotlin.services.devopsguru.model.OpsCenterIntegrationConfig = OpsCenterIntegrationConfig(this)
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy