commonMain.aws.sdk.kotlin.services.glue.model.BlueprintRun.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of glue-jvm Show documentation
Show all versions of glue-jvm Show documentation
The AWS SDK for Kotlin client for Glue
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.glue.model
import aws.smithy.kotlin.runtime.time.Instant
/**
* The details of a blueprint run.
*/
public class BlueprintRun private constructor(builder: Builder) {
/**
* The name of the blueprint.
*/
public val blueprintName: kotlin.String? = builder.blueprintName
/**
* The date and time that the blueprint run completed.
*/
public val completedOn: aws.smithy.kotlin.runtime.time.Instant? = builder.completedOn
/**
* Indicates any errors that are seen while running the blueprint.
*/
public val errorMessage: kotlin.String? = builder.errorMessage
/**
* The blueprint parameters as a string. You will have to provide a value for each key that is required from the parameter spec that is defined in the `Blueprint$ParameterSpec`.
*/
public val parameters: kotlin.String? = builder.parameters
/**
* The role ARN. This role will be assumed by the Glue service and will be used to create the workflow and other entities of a workflow.
*/
public val roleArn: kotlin.String? = builder.roleArn
/**
* If there are any errors while creating the entities of a workflow, we try to roll back the created entities until that point and delete them. This attribute indicates the errors seen while trying to delete the entities that are created.
*/
public val rollbackErrorMessage: kotlin.String? = builder.rollbackErrorMessage
/**
* The run ID for this blueprint run.
*/
public val runId: kotlin.String? = builder.runId
/**
* The date and time that the blueprint run started.
*/
public val startedOn: aws.smithy.kotlin.runtime.time.Instant? = builder.startedOn
/**
* The state of the blueprint run. Possible values are:
* + Running — The blueprint run is in progress.
* + Succeeded — The blueprint run completed successfully.
* + Failed — The blueprint run failed and rollback is complete.
* + Rolling Back — The blueprint run failed and rollback is in progress.
*/
public val state: aws.sdk.kotlin.services.glue.model.BlueprintRunState? = builder.state
/**
* The name of a workflow that is created as a result of a successful blueprint run. If a blueprint run has an error, there will not be a workflow created.
*/
public val workflowName: kotlin.String? = builder.workflowName
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.glue.model.BlueprintRun = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("BlueprintRun(")
append("blueprintName=$blueprintName,")
append("completedOn=$completedOn,")
append("errorMessage=$errorMessage,")
append("parameters=$parameters,")
append("roleArn=$roleArn,")
append("rollbackErrorMessage=$rollbackErrorMessage,")
append("runId=$runId,")
append("startedOn=$startedOn,")
append("state=$state,")
append("workflowName=$workflowName")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = blueprintName?.hashCode() ?: 0
result = 31 * result + (completedOn?.hashCode() ?: 0)
result = 31 * result + (errorMessage?.hashCode() ?: 0)
result = 31 * result + (parameters?.hashCode() ?: 0)
result = 31 * result + (roleArn?.hashCode() ?: 0)
result = 31 * result + (rollbackErrorMessage?.hashCode() ?: 0)
result = 31 * result + (runId?.hashCode() ?: 0)
result = 31 * result + (startedOn?.hashCode() ?: 0)
result = 31 * result + (state?.hashCode() ?: 0)
result = 31 * result + (workflowName?.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 BlueprintRun
if (blueprintName != other.blueprintName) return false
if (completedOn != other.completedOn) return false
if (errorMessage != other.errorMessage) return false
if (parameters != other.parameters) return false
if (roleArn != other.roleArn) return false
if (rollbackErrorMessage != other.rollbackErrorMessage) return false
if (runId != other.runId) return false
if (startedOn != other.startedOn) return false
if (state != other.state) return false
if (workflowName != other.workflowName) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.glue.model.BlueprintRun = Builder(this).apply(block).build()
public class Builder {
/**
* The name of the blueprint.
*/
public var blueprintName: kotlin.String? = null
/**
* The date and time that the blueprint run completed.
*/
public var completedOn: aws.smithy.kotlin.runtime.time.Instant? = null
/**
* Indicates any errors that are seen while running the blueprint.
*/
public var errorMessage: kotlin.String? = null
/**
* The blueprint parameters as a string. You will have to provide a value for each key that is required from the parameter spec that is defined in the `Blueprint$ParameterSpec`.
*/
public var parameters: kotlin.String? = null
/**
* The role ARN. This role will be assumed by the Glue service and will be used to create the workflow and other entities of a workflow.
*/
public var roleArn: kotlin.String? = null
/**
* If there are any errors while creating the entities of a workflow, we try to roll back the created entities until that point and delete them. This attribute indicates the errors seen while trying to delete the entities that are created.
*/
public var rollbackErrorMessage: kotlin.String? = null
/**
* The run ID for this blueprint run.
*/
public var runId: kotlin.String? = null
/**
* The date and time that the blueprint run started.
*/
public var startedOn: aws.smithy.kotlin.runtime.time.Instant? = null
/**
* The state of the blueprint run. Possible values are:
* + Running — The blueprint run is in progress.
* + Succeeded — The blueprint run completed successfully.
* + Failed — The blueprint run failed and rollback is complete.
* + Rolling Back — The blueprint run failed and rollback is in progress.
*/
public var state: aws.sdk.kotlin.services.glue.model.BlueprintRunState? = null
/**
* The name of a workflow that is created as a result of a successful blueprint run. If a blueprint run has an error, there will not be a workflow created.
*/
public var workflowName: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.glue.model.BlueprintRun) : this() {
this.blueprintName = x.blueprintName
this.completedOn = x.completedOn
this.errorMessage = x.errorMessage
this.parameters = x.parameters
this.roleArn = x.roleArn
this.rollbackErrorMessage = x.rollbackErrorMessage
this.runId = x.runId
this.startedOn = x.startedOn
this.state = x.state
this.workflowName = x.workflowName
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.glue.model.BlueprintRun = BlueprintRun(this)
internal fun correctErrors(): Builder {
return this
}
}
}