commonMain.aws.sdk.kotlin.services.bedrockagent.model.DeleteFlowVersionRequest.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.bedrockagent.model
import aws.smithy.kotlin.runtime.SdkDsl
public class DeleteFlowVersionRequest private constructor(builder: Builder) {
/**
* The unique identifier of the flow whose version that you want to delete
*/
public val flowIdentifier: kotlin.String? = builder.flowIdentifier
/**
* The version of the flow that you want to delete.
*/
public val flowVersion: kotlin.String? = builder.flowVersion
/**
* By default, this value is `false` and deletion is stopped if the resource is in use. If you set it to `true`, the resource will be deleted even if the resource is in use.
*/
public val skipResourceInUseCheck: kotlin.Boolean? = builder.skipResourceInUseCheck
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.bedrockagent.model.DeleteFlowVersionRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("DeleteFlowVersionRequest(")
append("flowIdentifier=$flowIdentifier,")
append("flowVersion=$flowVersion,")
append("skipResourceInUseCheck=$skipResourceInUseCheck")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = flowIdentifier?.hashCode() ?: 0
result = 31 * result + (flowVersion?.hashCode() ?: 0)
result = 31 * result + (skipResourceInUseCheck?.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 DeleteFlowVersionRequest
if (flowIdentifier != other.flowIdentifier) return false
if (flowVersion != other.flowVersion) return false
if (skipResourceInUseCheck != other.skipResourceInUseCheck) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.bedrockagent.model.DeleteFlowVersionRequest = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The unique identifier of the flow whose version that you want to delete
*/
public var flowIdentifier: kotlin.String? = null
/**
* The version of the flow that you want to delete.
*/
public var flowVersion: kotlin.String? = null
/**
* By default, this value is `false` and deletion is stopped if the resource is in use. If you set it to `true`, the resource will be deleted even if the resource is in use.
*/
public var skipResourceInUseCheck: kotlin.Boolean? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.bedrockagent.model.DeleteFlowVersionRequest) : this() {
this.flowIdentifier = x.flowIdentifier
this.flowVersion = x.flowVersion
this.skipResourceInUseCheck = x.skipResourceInUseCheck
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.bedrockagent.model.DeleteFlowVersionRequest = DeleteFlowVersionRequest(this)
internal fun correctErrors(): Builder {
return this
}
}
}