commonMain.aws.sdk.kotlin.services.applicationinsights.model.ConfigurationEvent.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
import aws.smithy.kotlin.runtime.time.Instant
/**
* The event information.
*/
public class ConfigurationEvent private constructor(builder: Builder) {
/**
* The AWS account ID for the owner of the application to which the configuration event belongs.
*/
public val accountId: kotlin.String? = builder.accountId
/**
* The details of the event in plain text.
*/
public val eventDetail: kotlin.String? = builder.eventDetail
/**
* The name of the resource Application Insights attempted to configure.
*/
public val eventResourceName: kotlin.String? = builder.eventResourceName
/**
* The resource type that Application Insights attempted to configure, for example, CLOUDWATCH_ALARM.
*/
public val eventResourceType: aws.sdk.kotlin.services.applicationinsights.model.ConfigurationEventResourceType? = builder.eventResourceType
/**
* The status of the configuration update event. Possible values include INFO, WARN, and ERROR.
*/
public val eventStatus: aws.sdk.kotlin.services.applicationinsights.model.ConfigurationEventStatus? = builder.eventStatus
/**
* The timestamp of the event.
*/
public val eventTime: aws.smithy.kotlin.runtime.time.Instant? = builder.eventTime
/**
* The resource monitored by Application Insights.
*/
public val monitoredResourceArn: kotlin.String? = builder.monitoredResourceArn
/**
* The name of the resource group of the application to which the configuration event belongs.
*/
public val resourceGroupName: kotlin.String? = builder.resourceGroupName
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.applicationinsights.model.ConfigurationEvent = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("ConfigurationEvent(")
append("accountId=$accountId,")
append("eventDetail=$eventDetail,")
append("eventResourceName=$eventResourceName,")
append("eventResourceType=$eventResourceType,")
append("eventStatus=$eventStatus,")
append("eventTime=$eventTime,")
append("monitoredResourceArn=$monitoredResourceArn,")
append("resourceGroupName=$resourceGroupName")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = accountId?.hashCode() ?: 0
result = 31 * result + (eventDetail?.hashCode() ?: 0)
result = 31 * result + (eventResourceName?.hashCode() ?: 0)
result = 31 * result + (eventResourceType?.hashCode() ?: 0)
result = 31 * result + (eventStatus?.hashCode() ?: 0)
result = 31 * result + (eventTime?.hashCode() ?: 0)
result = 31 * result + (monitoredResourceArn?.hashCode() ?: 0)
result = 31 * result + (resourceGroupName?.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 ConfigurationEvent
if (accountId != other.accountId) return false
if (eventDetail != other.eventDetail) return false
if (eventResourceName != other.eventResourceName) return false
if (eventResourceType != other.eventResourceType) return false
if (eventStatus != other.eventStatus) return false
if (eventTime != other.eventTime) return false
if (monitoredResourceArn != other.monitoredResourceArn) return false
if (resourceGroupName != other.resourceGroupName) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.applicationinsights.model.ConfigurationEvent = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The AWS account ID for the owner of the application to which the configuration event belongs.
*/
public var accountId: kotlin.String? = null
/**
* The details of the event in plain text.
*/
public var eventDetail: kotlin.String? = null
/**
* The name of the resource Application Insights attempted to configure.
*/
public var eventResourceName: kotlin.String? = null
/**
* The resource type that Application Insights attempted to configure, for example, CLOUDWATCH_ALARM.
*/
public var eventResourceType: aws.sdk.kotlin.services.applicationinsights.model.ConfigurationEventResourceType? = null
/**
* The status of the configuration update event. Possible values include INFO, WARN, and ERROR.
*/
public var eventStatus: aws.sdk.kotlin.services.applicationinsights.model.ConfigurationEventStatus? = null
/**
* The timestamp of the event.
*/
public var eventTime: aws.smithy.kotlin.runtime.time.Instant? = null
/**
* The resource monitored by Application Insights.
*/
public var monitoredResourceArn: kotlin.String? = null
/**
* The name of the resource group of the application to which the configuration event belongs.
*/
public var resourceGroupName: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.applicationinsights.model.ConfigurationEvent) : this() {
this.accountId = x.accountId
this.eventDetail = x.eventDetail
this.eventResourceName = x.eventResourceName
this.eventResourceType = x.eventResourceType
this.eventStatus = x.eventStatus
this.eventTime = x.eventTime
this.monitoredResourceArn = x.monitoredResourceArn
this.resourceGroupName = x.resourceGroupName
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.applicationinsights.model.ConfigurationEvent = ConfigurationEvent(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy