
commonMain.aws.sdk.kotlin.services.customerprofiles.model.GetWorkflowResponse.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.customerprofiles.model
import aws.smithy.kotlin.runtime.time.Instant
public class GetWorkflowResponse private constructor(builder: Builder) {
/**
* Attributes provided for workflow execution.
*/
public val attributes: aws.sdk.kotlin.services.customerprofiles.model.WorkflowAttributes? = builder.attributes
/**
* Workflow error messages during execution (if any).
*/
public val errorDescription: kotlin.String? = builder.errorDescription
/**
* The timestamp that represents when workflow execution last updated.
*/
public val lastUpdatedAt: aws.smithy.kotlin.runtime.time.Instant? = builder.lastUpdatedAt
/**
* Workflow specific execution metrics.
*/
public val metrics: aws.sdk.kotlin.services.customerprofiles.model.WorkflowMetrics? = builder.metrics
/**
* The timestamp that represents when workflow execution started.
*/
public val startDate: aws.smithy.kotlin.runtime.time.Instant? = builder.startDate
/**
* Status of workflow execution.
*/
public val status: aws.sdk.kotlin.services.customerprofiles.model.Status? = builder.status
/**
* Unique identifier for the workflow.
*/
public val workflowId: kotlin.String? = builder.workflowId
/**
* The type of workflow. The only supported value is APPFLOW_INTEGRATION.
*/
public val workflowType: aws.sdk.kotlin.services.customerprofiles.model.WorkflowType? = builder.workflowType
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.customerprofiles.model.GetWorkflowResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("GetWorkflowResponse(")
append("attributes=$attributes,")
append("errorDescription=$errorDescription,")
append("lastUpdatedAt=$lastUpdatedAt,")
append("metrics=$metrics,")
append("startDate=$startDate,")
append("status=$status,")
append("workflowId=$workflowId,")
append("workflowType=$workflowType")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = attributes?.hashCode() ?: 0
result = 31 * result + (errorDescription?.hashCode() ?: 0)
result = 31 * result + (lastUpdatedAt?.hashCode() ?: 0)
result = 31 * result + (metrics?.hashCode() ?: 0)
result = 31 * result + (startDate?.hashCode() ?: 0)
result = 31 * result + (status?.hashCode() ?: 0)
result = 31 * result + (workflowId?.hashCode() ?: 0)
result = 31 * result + (workflowType?.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 GetWorkflowResponse
if (attributes != other.attributes) return false
if (errorDescription != other.errorDescription) return false
if (lastUpdatedAt != other.lastUpdatedAt) return false
if (metrics != other.metrics) return false
if (startDate != other.startDate) return false
if (status != other.status) return false
if (workflowId != other.workflowId) return false
if (workflowType != other.workflowType) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.customerprofiles.model.GetWorkflowResponse = Builder(this).apply(block).build()
public class Builder {
/**
* Attributes provided for workflow execution.
*/
public var attributes: aws.sdk.kotlin.services.customerprofiles.model.WorkflowAttributes? = null
/**
* Workflow error messages during execution (if any).
*/
public var errorDescription: kotlin.String? = null
/**
* The timestamp that represents when workflow execution last updated.
*/
public var lastUpdatedAt: aws.smithy.kotlin.runtime.time.Instant? = null
/**
* Workflow specific execution metrics.
*/
public var metrics: aws.sdk.kotlin.services.customerprofiles.model.WorkflowMetrics? = null
/**
* The timestamp that represents when workflow execution started.
*/
public var startDate: aws.smithy.kotlin.runtime.time.Instant? = null
/**
* Status of workflow execution.
*/
public var status: aws.sdk.kotlin.services.customerprofiles.model.Status? = null
/**
* Unique identifier for the workflow.
*/
public var workflowId: kotlin.String? = null
/**
* The type of workflow. The only supported value is APPFLOW_INTEGRATION.
*/
public var workflowType: aws.sdk.kotlin.services.customerprofiles.model.WorkflowType? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.customerprofiles.model.GetWorkflowResponse) : this() {
this.attributes = x.attributes
this.errorDescription = x.errorDescription
this.lastUpdatedAt = x.lastUpdatedAt
this.metrics = x.metrics
this.startDate = x.startDate
this.status = x.status
this.workflowId = x.workflowId
this.workflowType = x.workflowType
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.customerprofiles.model.GetWorkflowResponse = GetWorkflowResponse(this)
/**
* construct an [aws.sdk.kotlin.services.customerprofiles.model.WorkflowAttributes] inside the given [block]
*/
public fun attributes(block: aws.sdk.kotlin.services.customerprofiles.model.WorkflowAttributes.Builder.() -> kotlin.Unit) {
this.attributes = aws.sdk.kotlin.services.customerprofiles.model.WorkflowAttributes.invoke(block)
}
/**
* construct an [aws.sdk.kotlin.services.customerprofiles.model.WorkflowMetrics] inside the given [block]
*/
public fun metrics(block: aws.sdk.kotlin.services.customerprofiles.model.WorkflowMetrics.Builder.() -> kotlin.Unit) {
this.metrics = aws.sdk.kotlin.services.customerprofiles.model.WorkflowMetrics.invoke(block)
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy