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

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

The newest version!
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!

package aws.sdk.kotlin.services.appflow.model

import aws.smithy.kotlin.runtime.SdkDsl

public class DeleteFlowRequest private constructor(builder: Builder) {
    /**
     * The specified name of the flow. Spaces are not allowed. Use underscores (_) or hyphens (-) only.
     */
    public val flowName: kotlin.String? = builder.flowName
    /**
     * Indicates whether Amazon AppFlow should delete the flow, even if it is currently in use.
     */
    public val forceDelete: kotlin.Boolean? = builder.forceDelete

    public companion object {
        public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.appflow.model.DeleteFlowRequest = Builder().apply(block).build()
    }

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

    override fun hashCode(): kotlin.Int {
        var result = flowName?.hashCode() ?: 0
        result = 31 * result + (forceDelete?.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 (flowName != other.flowName) return false
        if (forceDelete != other.forceDelete) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * The specified name of the flow. Spaces are not allowed. Use underscores (_) or hyphens (-) only.
         */
        public var flowName: kotlin.String? = null
        /**
         * Indicates whether Amazon AppFlow should delete the flow, even if it is currently in use.
         */
        public var forceDelete: kotlin.Boolean? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.appflow.model.DeleteFlowRequest) : this() {
            this.flowName = x.flowName
            this.forceDelete = x.forceDelete
        }

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

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy