
aws.sdk.kotlin.services.devopsguru.model.ServiceIntegrationConfig.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.devopsguru.model
/**
* Information about the integration of DevOps Guru with another Amazon Web Services service, such as
* Amazon Web Services Systems Manager.
*/
class ServiceIntegrationConfig private constructor(builder: Builder) {
/**
* Information about whether DevOps Guru is configured to create an OpsItem in Amazon Web Services Systems Manager
* OpsCenter for each created insight.
*/
val opsCenter: aws.sdk.kotlin.services.devopsguru.model.OpsCenterIntegration? = builder.opsCenter
companion object {
operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.devopsguru.model.ServiceIntegrationConfig = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("ServiceIntegrationConfig(")
append("opsCenter=$opsCenter)")
}
override fun hashCode(): kotlin.Int {
var result = opsCenter?.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 ServiceIntegrationConfig
if (opsCenter != other.opsCenter) return false
return true
}
inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.devopsguru.model.ServiceIntegrationConfig = Builder(this).apply(block).build()
class Builder {
/**
* Information about whether DevOps Guru is configured to create an OpsItem in Amazon Web Services Systems Manager
* OpsCenter for each created insight.
*/
var opsCenter: aws.sdk.kotlin.services.devopsguru.model.OpsCenterIntegration? = null
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.devopsguru.model.ServiceIntegrationConfig) : this() {
this.opsCenter = x.opsCenter
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.devopsguru.model.ServiceIntegrationConfig = ServiceIntegrationConfig(this)
/**
* construct an [aws.sdk.kotlin.services.devopsguru.model.OpsCenterIntegration] inside the given [block]
*/
fun opsCenter(block: aws.sdk.kotlin.services.devopsguru.model.OpsCenterIntegration.Builder.() -> kotlin.Unit) {
this.opsCenter = aws.sdk.kotlin.services.devopsguru.model.OpsCenterIntegration.invoke(block)
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy