commonMain.aws.sdk.kotlin.services.devopsguru.model.UpdateServiceIntegrationConfig.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 updating the integration status of an Amazon Web Services service, such as Amazon Web Services Systems Manager, with DevOps Guru.
*/
public class UpdateServiceIntegrationConfig private constructor(builder: Builder) {
/**
* Information about whether DevOps Guru is configured to encrypt server-side data using KMS.
*/
public val kmsServerSideEncryption: aws.sdk.kotlin.services.devopsguru.model.KmsServerSideEncryptionIntegrationConfig? = builder.kmsServerSideEncryption
/**
* Information about whether DevOps Guru is configured to perform log anomaly detection on Amazon CloudWatch log groups.
*/
public val logsAnomalyDetection: aws.sdk.kotlin.services.devopsguru.model.LogsAnomalyDetectionIntegrationConfig? = builder.logsAnomalyDetection
/**
* Information about whether DevOps Guru is configured to create an OpsItem in Amazon Web Services Systems Manager OpsCenter for each created insight. You can use this to update the configuration.
*/
public val opsCenter: aws.sdk.kotlin.services.devopsguru.model.OpsCenterIntegrationConfig? = builder.opsCenter
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.devopsguru.model.UpdateServiceIntegrationConfig = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("UpdateServiceIntegrationConfig(")
append("kmsServerSideEncryption=$kmsServerSideEncryption,")
append("logsAnomalyDetection=$logsAnomalyDetection,")
append("opsCenter=$opsCenter")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = kmsServerSideEncryption?.hashCode() ?: 0
result = 31 * result + (logsAnomalyDetection?.hashCode() ?: 0)
result = 31 * 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 UpdateServiceIntegrationConfig
if (kmsServerSideEncryption != other.kmsServerSideEncryption) return false
if (logsAnomalyDetection != other.logsAnomalyDetection) return false
if (opsCenter != other.opsCenter) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.devopsguru.model.UpdateServiceIntegrationConfig = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* Information about whether DevOps Guru is configured to encrypt server-side data using KMS.
*/
public var kmsServerSideEncryption: aws.sdk.kotlin.services.devopsguru.model.KmsServerSideEncryptionIntegrationConfig? = null
/**
* Information about whether DevOps Guru is configured to perform log anomaly detection on Amazon CloudWatch log groups.
*/
public var logsAnomalyDetection: aws.sdk.kotlin.services.devopsguru.model.LogsAnomalyDetectionIntegrationConfig? = null
/**
* Information about whether DevOps Guru is configured to create an OpsItem in Amazon Web Services Systems Manager OpsCenter for each created insight. You can use this to update the configuration.
*/
public var opsCenter: aws.sdk.kotlin.services.devopsguru.model.OpsCenterIntegrationConfig? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.devopsguru.model.UpdateServiceIntegrationConfig) : this() {
this.kmsServerSideEncryption = x.kmsServerSideEncryption
this.logsAnomalyDetection = x.logsAnomalyDetection
this.opsCenter = x.opsCenter
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.devopsguru.model.UpdateServiceIntegrationConfig = UpdateServiceIntegrationConfig(this)
/**
* construct an [aws.sdk.kotlin.services.devopsguru.model.KmsServerSideEncryptionIntegrationConfig] inside the given [block]
*/
public fun kmsServerSideEncryption(block: aws.sdk.kotlin.services.devopsguru.model.KmsServerSideEncryptionIntegrationConfig.Builder.() -> kotlin.Unit) {
this.kmsServerSideEncryption = aws.sdk.kotlin.services.devopsguru.model.KmsServerSideEncryptionIntegrationConfig.invoke(block)
}
/**
* construct an [aws.sdk.kotlin.services.devopsguru.model.LogsAnomalyDetectionIntegrationConfig] inside the given [block]
*/
public fun logsAnomalyDetection(block: aws.sdk.kotlin.services.devopsguru.model.LogsAnomalyDetectionIntegrationConfig.Builder.() -> kotlin.Unit) {
this.logsAnomalyDetection = aws.sdk.kotlin.services.devopsguru.model.LogsAnomalyDetectionIntegrationConfig.invoke(block)
}
/**
* construct an [aws.sdk.kotlin.services.devopsguru.model.OpsCenterIntegrationConfig] inside the given [block]
*/
public fun opsCenter(block: aws.sdk.kotlin.services.devopsguru.model.OpsCenterIntegrationConfig.Builder.() -> kotlin.Unit) {
this.opsCenter = aws.sdk.kotlin.services.devopsguru.model.OpsCenterIntegrationConfig.invoke(block)
}
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy