commonMain.aws.sdk.kotlin.services.applicationinsights.model.UpdateProblemRequest.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of applicationinsights-jvm Show documentation
Show all versions of applicationinsights-jvm Show documentation
The AWS SDK for Kotlin client for Application Insights
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.applicationinsights.model
import aws.smithy.kotlin.runtime.SdkDsl
public class UpdateProblemRequest private constructor(builder: Builder) {
/**
* The ID of the problem.
*/
public val problemId: kotlin.String? = builder.problemId
/**
* The status of the problem. Arguments can be passed for only problems that show a status of `RECOVERING`.
*/
public val updateStatus: aws.sdk.kotlin.services.applicationinsights.model.UpdateStatus? = builder.updateStatus
/**
* The visibility of a problem. When you pass a value of `IGNORED`, the problem is removed from the default view, and all notifications for the problem are suspended. When `VISIBLE` is passed, the `IGNORED` action is reversed.
*/
public val visibility: aws.sdk.kotlin.services.applicationinsights.model.Visibility? = builder.visibility
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.applicationinsights.model.UpdateProblemRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("UpdateProblemRequest(")
append("problemId=$problemId,")
append("updateStatus=$updateStatus,")
append("visibility=$visibility")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = problemId?.hashCode() ?: 0
result = 31 * result + (updateStatus?.hashCode() ?: 0)
result = 31 * result + (visibility?.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 UpdateProblemRequest
if (problemId != other.problemId) return false
if (updateStatus != other.updateStatus) return false
if (visibility != other.visibility) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.applicationinsights.model.UpdateProblemRequest = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The ID of the problem.
*/
public var problemId: kotlin.String? = null
/**
* The status of the problem. Arguments can be passed for only problems that show a status of `RECOVERING`.
*/
public var updateStatus: aws.sdk.kotlin.services.applicationinsights.model.UpdateStatus? = null
/**
* The visibility of a problem. When you pass a value of `IGNORED`, the problem is removed from the default view, and all notifications for the problem are suspended. When `VISIBLE` is passed, the `IGNORED` action is reversed.
*/
public var visibility: aws.sdk.kotlin.services.applicationinsights.model.Visibility? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.applicationinsights.model.UpdateProblemRequest) : this() {
this.problemId = x.problemId
this.updateStatus = x.updateStatus
this.visibility = x.visibility
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.applicationinsights.model.UpdateProblemRequest = UpdateProblemRequest(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy