
commonMain.aws.sdk.kotlin.services.connectcases.model.AuditEventField.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.connectcases.model
/**
* Fields for audit event.
*/
public class AuditEventField private constructor(builder: Builder) {
/**
* Unique identifier of field in an Audit History entry.
*/
public val eventFieldId: kotlin.String = requireNotNull(builder.eventFieldId) { "A non-null value must be provided for eventFieldId" }
/**
* Union of potential field value types.
*/
public val newValue: aws.sdk.kotlin.services.connectcases.model.AuditEventFieldValueUnion? = builder.newValue
/**
* Union of potential field value types.
*/
public val oldValue: aws.sdk.kotlin.services.connectcases.model.AuditEventFieldValueUnion? = builder.oldValue
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.connectcases.model.AuditEventField = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("AuditEventField(")
append("eventFieldId=$eventFieldId,")
append("newValue=$newValue,")
append("oldValue=$oldValue")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = eventFieldId.hashCode()
result = 31 * result + (newValue?.hashCode() ?: 0)
result = 31 * result + (oldValue?.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 AuditEventField
if (eventFieldId != other.eventFieldId) return false
if (newValue != other.newValue) return false
if (oldValue != other.oldValue) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.connectcases.model.AuditEventField = Builder(this).apply(block).build()
public class Builder {
/**
* Unique identifier of field in an Audit History entry.
*/
public var eventFieldId: kotlin.String? = null
/**
* Union of potential field value types.
*/
public var newValue: aws.sdk.kotlin.services.connectcases.model.AuditEventFieldValueUnion? = null
/**
* Union of potential field value types.
*/
public var oldValue: aws.sdk.kotlin.services.connectcases.model.AuditEventFieldValueUnion? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.connectcases.model.AuditEventField) : this() {
this.eventFieldId = x.eventFieldId
this.newValue = x.newValue
this.oldValue = x.oldValue
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.connectcases.model.AuditEventField = AuditEventField(this)
internal fun correctErrors(): Builder {
if (eventFieldId == null) eventFieldId = ""
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy