
commonMain.aws.sdk.kotlin.services.bedrockdataautomationruntime.model.Blueprint.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.bedrockdataautomationruntime.model
import aws.smithy.kotlin.runtime.SdkDsl
/**
* Structure for single blueprint entity.
*/
public class Blueprint private constructor(builder: Builder) {
/**
* Arn of blueprint.
*/
public val blueprintArn: kotlin.String = requireNotNull(builder.blueprintArn) { "A non-null value must be provided for blueprintArn" }
/**
* Stage of blueprint.
*/
public val stage: aws.sdk.kotlin.services.bedrockdataautomationruntime.model.BlueprintStage? = builder.stage
/**
* Version of blueprint.
*/
public val version: kotlin.String? = builder.version
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.bedrockdataautomationruntime.model.Blueprint = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("Blueprint(")
append("blueprintArn=$blueprintArn,")
append("stage=$stage,")
append("version=$version")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = blueprintArn.hashCode()
result = 31 * result + (stage?.hashCode() ?: 0)
result = 31 * result + (version?.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 Blueprint
if (blueprintArn != other.blueprintArn) return false
if (stage != other.stage) return false
if (version != other.version) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.bedrockdataautomationruntime.model.Blueprint = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* Arn of blueprint.
*/
public var blueprintArn: kotlin.String? = null
/**
* Stage of blueprint.
*/
public var stage: aws.sdk.kotlin.services.bedrockdataautomationruntime.model.BlueprintStage? = null
/**
* Version of blueprint.
*/
public var version: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.bedrockdataautomationruntime.model.Blueprint) : this() {
this.blueprintArn = x.blueprintArn
this.stage = x.stage
this.version = x.version
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.bedrockdataautomationruntime.model.Blueprint = Blueprint(this)
internal fun correctErrors(): Builder {
if (blueprintArn == null) blueprintArn = ""
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy