commonMain.aws.sdk.kotlin.services.evidently.model.GetExperimentRequest.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 GetExperimentRequest private constructor(builder: Builder) {
/**
* The name of the experiment that you want to see the details of.
*/
public val experiment: kotlin.String = requireNotNull(builder.experiment) { "A non-null value must be provided for experiment" }
/**
* The name or ARN of the project that contains the experiment.
*/
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.GetExperimentRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("GetExperimentRequest(")
append("experiment=$experiment,")
append("project=$project")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = experiment.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 GetExperimentRequest
if (experiment != other.experiment) return false
if (project != other.project) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.evidently.model.GetExperimentRequest = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The name of the experiment that you want to see the details of.
*/
public var experiment: kotlin.String? = null
/**
* The name or ARN of the project that contains the experiment.
*/
public var project: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.evidently.model.GetExperimentRequest) : this() {
this.experiment = x.experiment
this.project = x.project
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.evidently.model.GetExperimentRequest = GetExperimentRequest(this)
internal fun correctErrors(): Builder {
if (experiment == null) experiment = ""
if (project == null) project = ""
return this
}
}
}