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

commonMain.aws.sdk.kotlin.services.evidently.model.DeleteFeatureRequest.kt Maven / Gradle / Ivy

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

package aws.sdk.kotlin.services.evidently.model

import aws.smithy.kotlin.runtime.SdkDsl

public class DeleteFeatureRequest private constructor(builder: Builder) {
    /**
     * The name of the feature to delete.
     */
    public val feature: kotlin.String = requireNotNull(builder.feature) { "A non-null value must be provided for feature" }
    /**
     * The name or ARN of the project that contains the feature to delete.
     */
    public val project: kotlin.String = requireNotNull(builder.project) { "A non-null value must be provided for project" }

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

    override fun toString(): kotlin.String = buildString {
        append("DeleteFeatureRequest(")
        append("feature=$feature,")
        append("project=$project")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = feature.hashCode()
        result = 31 * result + (project.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 DeleteFeatureRequest

        if (feature != other.feature) return false
        if (project != other.project) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * The name of the feature to delete.
         */
        public var feature: kotlin.String? = null
        /**
         * The name or ARN of the project that contains the feature to delete.
         */
        public var project: kotlin.String? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.evidently.model.DeleteFeatureRequest) : this() {
            this.feature = x.feature
            this.project = x.project
        }

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

        internal fun correctErrors(): Builder {
            if (feature == null) feature = ""
            if (project == null) project = ""
            return this
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy