commonMain.aws.sdk.kotlin.services.evidently.model.UpdateFeatureResponse.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of evidently-jvm Show documentation
Show all versions of evidently-jvm Show documentation
The AWS SDK for Kotlin client for Evidently
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.evidently.model
import aws.smithy.kotlin.runtime.SdkDsl
public class UpdateFeatureResponse private constructor(builder: Builder) {
/**
* A structure that contains information about the updated feature.
*/
public val feature: aws.sdk.kotlin.services.evidently.model.Feature? = builder.feature
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.evidently.model.UpdateFeatureResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("UpdateFeatureResponse(")
append("feature=$feature")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = feature?.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 UpdateFeatureResponse
if (feature != other.feature) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.evidently.model.UpdateFeatureResponse = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* A structure that contains information about the updated feature.
*/
public var feature: aws.sdk.kotlin.services.evidently.model.Feature? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.evidently.model.UpdateFeatureResponse) : this() {
this.feature = x.feature
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.evidently.model.UpdateFeatureResponse = UpdateFeatureResponse(this)
/**
* construct an [aws.sdk.kotlin.services.evidently.model.Feature] inside the given [block]
*/
public fun feature(block: aws.sdk.kotlin.services.evidently.model.Feature.Builder.() -> kotlin.Unit) {
this.feature = aws.sdk.kotlin.services.evidently.model.Feature.invoke(block)
}
internal fun correctErrors(): Builder {
return this
}
}
}