All Downloads are FREE. Search and download functionalities are using the official Maven repository.

commonMain.aws.sdk.kotlin.services.bedrockagent.model.DeleteFlowRequest.kt Maven / Gradle / Ivy

There is a newer version: 1.3.77
Show newest version
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!

package aws.sdk.kotlin.services.bedrockagent.model

import aws.smithy.kotlin.runtime.SdkDsl

public class DeleteFlowRequest private constructor(builder: Builder) {
    /**
     * The unique identifier of the flow.
     */
    public val flowIdentifier: kotlin.String? = builder.flowIdentifier
    /**
     * 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.DeleteFlowRequest = Builder().apply(block).build()
    }

    override fun toString(): kotlin.String = buildString {
        append("DeleteFlowRequest(")
        append("flowIdentifier=$flowIdentifier,")
        append("skipResourceInUseCheck=$skipResourceInUseCheck")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = flowIdentifier?.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 DeleteFlowRequest

        if (flowIdentifier != other.flowIdentifier) return false
        if (skipResourceInUseCheck != other.skipResourceInUseCheck) return false

        return true
    }

    public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.bedrockagent.model.DeleteFlowRequest = Builder(this).apply(block).build()

    @SdkDsl
    public class Builder {
        /**
         * The unique identifier of the flow.
         */
        public var flowIdentifier: 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.DeleteFlowRequest) : this() {
            this.flowIdentifier = x.flowIdentifier
            this.skipResourceInUseCheck = x.skipResourceInUseCheck
        }

        @PublishedApi
        internal fun build(): aws.sdk.kotlin.services.bedrockagent.model.DeleteFlowRequest = DeleteFlowRequest(this)

        internal fun correctErrors(): Builder {
            return this
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy