
commonMain.aws.sdk.kotlin.services.budgets.model.ActionHistoryDetails.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.budgets.model
/**
* The description of the details for the event.
*/
public class ActionHistoryDetails private constructor(builder: Builder) {
/**
* The budget action resource.
*/
public val action: aws.sdk.kotlin.services.budgets.model.Action? = builder.action
/**
* A generic string.
*/
public val message: kotlin.String? = builder.message
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.budgets.model.ActionHistoryDetails = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("ActionHistoryDetails(")
append("action=$action,")
append("message=$message)")
}
override fun hashCode(): kotlin.Int {
var result = action?.hashCode() ?: 0
result = 31 * result + (message?.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 ActionHistoryDetails
if (action != other.action) return false
if (message != other.message) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.budgets.model.ActionHistoryDetails = Builder(this).apply(block).build()
public class Builder {
/**
* The budget action resource.
*/
public var action: aws.sdk.kotlin.services.budgets.model.Action? = null
/**
* A generic string.
*/
public var message: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.budgets.model.ActionHistoryDetails) : this() {
this.action = x.action
this.message = x.message
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.budgets.model.ActionHistoryDetails = ActionHistoryDetails(this)
/**
* construct an [aws.sdk.kotlin.services.budgets.model.Action] inside the given [block]
*/
public fun action(block: aws.sdk.kotlin.services.budgets.model.Action.Builder.() -> kotlin.Unit) {
this.action = aws.sdk.kotlin.services.budgets.model.Action.invoke(block)
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy