commonMain.aws.sdk.kotlin.services.devopsguru.model.EventSourcesConfig.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of devopsguru-jvm Show documentation
Show all versions of devopsguru-jvm Show documentation
The AWS SDK for Kotlin client for DevOps Guru
The newest version!
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.devopsguru.model
import aws.smithy.kotlin.runtime.SdkDsl
/**
* Information about the integration of DevOps Guru as consumer with another AWS service, such as AWS CodeGuru Profiler via EventBridge.
*/
public class EventSourcesConfig private constructor(builder: Builder) {
/**
* Information about whether DevOps Guru is configured to consume recommendations which are generated from AWS CodeGuru Profiler.
*/
public val amazonCodeGuruProfiler: aws.sdk.kotlin.services.devopsguru.model.AmazonCodeGuruProfilerIntegration? = builder.amazonCodeGuruProfiler
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.devopsguru.model.EventSourcesConfig = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("EventSourcesConfig(")
append("amazonCodeGuruProfiler=$amazonCodeGuruProfiler")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = amazonCodeGuruProfiler?.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 EventSourcesConfig
if (amazonCodeGuruProfiler != other.amazonCodeGuruProfiler) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.devopsguru.model.EventSourcesConfig = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* Information about whether DevOps Guru is configured to consume recommendations which are generated from AWS CodeGuru Profiler.
*/
public var amazonCodeGuruProfiler: aws.sdk.kotlin.services.devopsguru.model.AmazonCodeGuruProfilerIntegration? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.devopsguru.model.EventSourcesConfig) : this() {
this.amazonCodeGuruProfiler = x.amazonCodeGuruProfiler
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.devopsguru.model.EventSourcesConfig = EventSourcesConfig(this)
/**
* construct an [aws.sdk.kotlin.services.devopsguru.model.AmazonCodeGuruProfilerIntegration] inside the given [block]
*/
public fun amazonCodeGuruProfiler(block: aws.sdk.kotlin.services.devopsguru.model.AmazonCodeGuruProfilerIntegration.Builder.() -> kotlin.Unit) {
this.amazonCodeGuruProfiler = aws.sdk.kotlin.services.devopsguru.model.AmazonCodeGuruProfilerIntegration.invoke(block)
}
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy