
commonMain.aws.sdk.kotlin.services.ssm.model.OpsItemEventSummary.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.ssm.model
import aws.smithy.kotlin.runtime.time.Instant
/**
* Summary information about an OpsItem event or that associated an OpsItem with a related item.
*/
public class OpsItemEventSummary private constructor(builder: Builder) {
/**
* Information about the user or resource that created the OpsItem event.
*/
public val createdBy: aws.sdk.kotlin.services.ssm.model.OpsItemIdentity? = builder.createdBy
/**
* The date and time the OpsItem event was created.
*/
public val createdTime: aws.smithy.kotlin.runtime.time.Instant? = builder.createdTime
/**
* Specific information about the OpsItem event.
*/
public val detail: kotlin.String? = builder.detail
/**
* The type of information provided as a detail.
*/
public val detailType: kotlin.String? = builder.detailType
/**
* The ID of the OpsItem event.
*/
public val eventId: kotlin.String? = builder.eventId
/**
* The ID of the OpsItem.
*/
public val opsItemId: kotlin.String? = builder.opsItemId
/**
* The source of the OpsItem event.
*/
public val source: kotlin.String? = builder.source
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.ssm.model.OpsItemEventSummary = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("OpsItemEventSummary(")
append("createdBy=$createdBy,")
append("createdTime=$createdTime,")
append("detail=$detail,")
append("detailType=$detailType,")
append("eventId=$eventId,")
append("opsItemId=$opsItemId,")
append("source=$source")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = createdBy?.hashCode() ?: 0
result = 31 * result + (createdTime?.hashCode() ?: 0)
result = 31 * result + (detail?.hashCode() ?: 0)
result = 31 * result + (detailType?.hashCode() ?: 0)
result = 31 * result + (eventId?.hashCode() ?: 0)
result = 31 * result + (opsItemId?.hashCode() ?: 0)
result = 31 * result + (source?.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 OpsItemEventSummary
if (createdBy != other.createdBy) return false
if (createdTime != other.createdTime) return false
if (detail != other.detail) return false
if (detailType != other.detailType) return false
if (eventId != other.eventId) return false
if (opsItemId != other.opsItemId) return false
if (source != other.source) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.ssm.model.OpsItemEventSummary = Builder(this).apply(block).build()
public class Builder {
/**
* Information about the user or resource that created the OpsItem event.
*/
public var createdBy: aws.sdk.kotlin.services.ssm.model.OpsItemIdentity? = null
/**
* The date and time the OpsItem event was created.
*/
public var createdTime: aws.smithy.kotlin.runtime.time.Instant? = null
/**
* Specific information about the OpsItem event.
*/
public var detail: kotlin.String? = null
/**
* The type of information provided as a detail.
*/
public var detailType: kotlin.String? = null
/**
* The ID of the OpsItem event.
*/
public var eventId: kotlin.String? = null
/**
* The ID of the OpsItem.
*/
public var opsItemId: kotlin.String? = null
/**
* The source of the OpsItem event.
*/
public var source: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.ssm.model.OpsItemEventSummary) : this() {
this.createdBy = x.createdBy
this.createdTime = x.createdTime
this.detail = x.detail
this.detailType = x.detailType
this.eventId = x.eventId
this.opsItemId = x.opsItemId
this.source = x.source
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.ssm.model.OpsItemEventSummary = OpsItemEventSummary(this)
/**
* construct an [aws.sdk.kotlin.services.ssm.model.OpsItemIdentity] inside the given [block]
*/
public fun createdBy(block: aws.sdk.kotlin.services.ssm.model.OpsItemIdentity.Builder.() -> kotlin.Unit) {
this.createdBy = aws.sdk.kotlin.services.ssm.model.OpsItemIdentity.invoke(block)
}
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy