commonMain.aws.sdk.kotlin.services.appflow.model.ExecutionDetails.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of appflow-jvm Show documentation
Show all versions of appflow-jvm Show documentation
The AWS SDK for Kotlin client for Appflow
The newest version!
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.appflow.model
import aws.smithy.kotlin.runtime.SdkDsl
import aws.smithy.kotlin.runtime.time.Instant
/**
* Describes the details of the flow run, including the timestamp, status, and message.
*/
public class ExecutionDetails private constructor(builder: Builder) {
/**
* Describes the details of the most recent flow run.
*/
public val mostRecentExecutionMessage: kotlin.String? = builder.mostRecentExecutionMessage
/**
* Specifies the status of the most recent flow run.
*/
public val mostRecentExecutionStatus: aws.sdk.kotlin.services.appflow.model.ExecutionStatus? = builder.mostRecentExecutionStatus
/**
* Specifies the time of the most recent flow run.
*/
public val mostRecentExecutionTime: aws.smithy.kotlin.runtime.time.Instant? = builder.mostRecentExecutionTime
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.appflow.model.ExecutionDetails = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("ExecutionDetails(")
append("mostRecentExecutionMessage=$mostRecentExecutionMessage,")
append("mostRecentExecutionStatus=$mostRecentExecutionStatus,")
append("mostRecentExecutionTime=$mostRecentExecutionTime")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = mostRecentExecutionMessage?.hashCode() ?: 0
result = 31 * result + (mostRecentExecutionStatus?.hashCode() ?: 0)
result = 31 * result + (mostRecentExecutionTime?.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 ExecutionDetails
if (mostRecentExecutionMessage != other.mostRecentExecutionMessage) return false
if (mostRecentExecutionStatus != other.mostRecentExecutionStatus) return false
if (mostRecentExecutionTime != other.mostRecentExecutionTime) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.appflow.model.ExecutionDetails = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* Describes the details of the most recent flow run.
*/
public var mostRecentExecutionMessage: kotlin.String? = null
/**
* Specifies the status of the most recent flow run.
*/
public var mostRecentExecutionStatus: aws.sdk.kotlin.services.appflow.model.ExecutionStatus? = null
/**
* Specifies the time of the most recent flow run.
*/
public var mostRecentExecutionTime: aws.smithy.kotlin.runtime.time.Instant? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.appflow.model.ExecutionDetails) : this() {
this.mostRecentExecutionMessage = x.mostRecentExecutionMessage
this.mostRecentExecutionStatus = x.mostRecentExecutionStatus
this.mostRecentExecutionTime = x.mostRecentExecutionTime
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.appflow.model.ExecutionDetails = ExecutionDetails(this)
internal fun correctErrors(): Builder {
return this
}
}
}