commonMain.aws.sdk.kotlin.services.bedrockagent.model.FlowDataConnectionConfiguration.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of bedrockagent-jvm Show documentation
Show all versions of bedrockagent-jvm Show documentation
The AWS SDK for Kotlin client for Bedrock Agent
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.bedrockagent.model
import aws.smithy.kotlin.runtime.SdkDsl
/**
* The configuration of a connection originating from a node that isn't a Condition node.
*/
public class FlowDataConnectionConfiguration private constructor(builder: Builder) {
/**
* The name of the output in the source node that the connection begins from.
*/
public val sourceOutput: kotlin.String = requireNotNull(builder.sourceOutput) { "A non-null value must be provided for sourceOutput" }
/**
* The name of the input in the target node that the connection ends at.
*/
public val targetInput: kotlin.String = requireNotNull(builder.targetInput) { "A non-null value must be provided for targetInput" }
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.bedrockagent.model.FlowDataConnectionConfiguration = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("FlowDataConnectionConfiguration(")
append("sourceOutput=$sourceOutput,")
append("targetInput=$targetInput")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = sourceOutput.hashCode()
result = 31 * result + (targetInput.hashCode())
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 FlowDataConnectionConfiguration
if (sourceOutput != other.sourceOutput) return false
if (targetInput != other.targetInput) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.bedrockagent.model.FlowDataConnectionConfiguration = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The name of the output in the source node that the connection begins from.
*/
public var sourceOutput: kotlin.String? = null
/**
* The name of the input in the target node that the connection ends at.
*/
public var targetInput: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.bedrockagent.model.FlowDataConnectionConfiguration) : this() {
this.sourceOutput = x.sourceOutput
this.targetInput = x.targetInput
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.bedrockagent.model.FlowDataConnectionConfiguration = FlowDataConnectionConfiguration(this)
internal fun correctErrors(): Builder {
if (sourceOutput == null) sourceOutput = ""
if (targetInput == null) targetInput = ""
return this
}
}
}