
commonMain.aws.sdk.kotlin.services.ssm.model.OpsItemRelatedItemSummary.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 related-item resources for an OpsItem.
*/
public class OpsItemRelatedItemSummary private constructor(builder: Builder) {
/**
* The association ID.
*/
public val associationId: kotlin.String? = builder.associationId
/**
* The association type.
*/
public val associationType: kotlin.String? = builder.associationType
/**
* Information about the user or resource that created an OpsItem event.
*/
public val createdBy: aws.sdk.kotlin.services.ssm.model.OpsItemIdentity? = builder.createdBy
/**
* The time the related-item association was created.
*/
public val createdTime: aws.smithy.kotlin.runtime.time.Instant? = builder.createdTime
/**
* Information about the user or resource that created an OpsItem event.
*/
public val lastModifiedBy: aws.sdk.kotlin.services.ssm.model.OpsItemIdentity? = builder.lastModifiedBy
/**
* The time the related-item association was last updated.
*/
public val lastModifiedTime: aws.smithy.kotlin.runtime.time.Instant? = builder.lastModifiedTime
/**
* The OpsItem ID.
*/
public val opsItemId: kotlin.String? = builder.opsItemId
/**
* The resource type.
*/
public val resourceType: kotlin.String? = builder.resourceType
/**
* The Amazon Resource Name (ARN) of the related-item resource.
*/
public val resourceUri: kotlin.String? = builder.resourceUri
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.ssm.model.OpsItemRelatedItemSummary = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("OpsItemRelatedItemSummary(")
append("associationId=$associationId,")
append("associationType=$associationType,")
append("createdBy=$createdBy,")
append("createdTime=$createdTime,")
append("lastModifiedBy=$lastModifiedBy,")
append("lastModifiedTime=$lastModifiedTime,")
append("opsItemId=$opsItemId,")
append("resourceType=$resourceType,")
append("resourceUri=$resourceUri")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = associationId?.hashCode() ?: 0
result = 31 * result + (associationType?.hashCode() ?: 0)
result = 31 * result + (createdBy?.hashCode() ?: 0)
result = 31 * result + (createdTime?.hashCode() ?: 0)
result = 31 * result + (lastModifiedBy?.hashCode() ?: 0)
result = 31 * result + (lastModifiedTime?.hashCode() ?: 0)
result = 31 * result + (opsItemId?.hashCode() ?: 0)
result = 31 * result + (resourceType?.hashCode() ?: 0)
result = 31 * result + (resourceUri?.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 OpsItemRelatedItemSummary
if (associationId != other.associationId) return false
if (associationType != other.associationType) return false
if (createdBy != other.createdBy) return false
if (createdTime != other.createdTime) return false
if (lastModifiedBy != other.lastModifiedBy) return false
if (lastModifiedTime != other.lastModifiedTime) return false
if (opsItemId != other.opsItemId) return false
if (resourceType != other.resourceType) return false
if (resourceUri != other.resourceUri) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.ssm.model.OpsItemRelatedItemSummary = Builder(this).apply(block).build()
public class Builder {
/**
* The association ID.
*/
public var associationId: kotlin.String? = null
/**
* The association type.
*/
public var associationType: kotlin.String? = null
/**
* Information about the user or resource that created an OpsItem event.
*/
public var createdBy: aws.sdk.kotlin.services.ssm.model.OpsItemIdentity? = null
/**
* The time the related-item association was created.
*/
public var createdTime: aws.smithy.kotlin.runtime.time.Instant? = null
/**
* Information about the user or resource that created an OpsItem event.
*/
public var lastModifiedBy: aws.sdk.kotlin.services.ssm.model.OpsItemIdentity? = null
/**
* The time the related-item association was last updated.
*/
public var lastModifiedTime: aws.smithy.kotlin.runtime.time.Instant? = null
/**
* The OpsItem ID.
*/
public var opsItemId: kotlin.String? = null
/**
* The resource type.
*/
public var resourceType: kotlin.String? = null
/**
* The Amazon Resource Name (ARN) of the related-item resource.
*/
public var resourceUri: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.ssm.model.OpsItemRelatedItemSummary) : this() {
this.associationId = x.associationId
this.associationType = x.associationType
this.createdBy = x.createdBy
this.createdTime = x.createdTime
this.lastModifiedBy = x.lastModifiedBy
this.lastModifiedTime = x.lastModifiedTime
this.opsItemId = x.opsItemId
this.resourceType = x.resourceType
this.resourceUri = x.resourceUri
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.ssm.model.OpsItemRelatedItemSummary = OpsItemRelatedItemSummary(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)
}
/**
* construct an [aws.sdk.kotlin.services.ssm.model.OpsItemIdentity] inside the given [block]
*/
public fun lastModifiedBy(block: aws.sdk.kotlin.services.ssm.model.OpsItemIdentity.Builder.() -> kotlin.Unit) {
this.lastModifiedBy = aws.sdk.kotlin.services.ssm.model.OpsItemIdentity.invoke(block)
}
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy