commonMain.aws.sdk.kotlin.services.lookoutequipment.model.UpdateModelRequest.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.lookoutequipment.model
import aws.smithy.kotlin.runtime.SdkDsl
public class UpdateModelRequest private constructor(builder: Builder) {
/**
* Contains the configuration information for the S3 location being used to hold label data.
*/
public val labelsInputConfiguration: aws.sdk.kotlin.services.lookoutequipment.model.LabelsInputConfiguration? = builder.labelsInputConfiguration
/**
* The Amazon S3 location where you want Amazon Lookout for Equipment to save the pointwise model diagnostics for the model. You must also specify the `RoleArn` request parameter.
*/
public val modelDiagnosticsOutputConfiguration: aws.sdk.kotlin.services.lookoutequipment.model.ModelDiagnosticsOutputConfiguration? = builder.modelDiagnosticsOutputConfiguration
/**
* The name of the model to update.
*/
public val modelName: kotlin.String? = builder.modelName
/**
* The ARN of the model to update.
*/
public val roleArn: kotlin.String? = builder.roleArn
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.lookoutequipment.model.UpdateModelRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("UpdateModelRequest(")
append("labelsInputConfiguration=$labelsInputConfiguration,")
append("modelDiagnosticsOutputConfiguration=$modelDiagnosticsOutputConfiguration,")
append("modelName=$modelName,")
append("roleArn=$roleArn")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = labelsInputConfiguration?.hashCode() ?: 0
result = 31 * result + (modelDiagnosticsOutputConfiguration?.hashCode() ?: 0)
result = 31 * result + (modelName?.hashCode() ?: 0)
result = 31 * result + (roleArn?.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 UpdateModelRequest
if (labelsInputConfiguration != other.labelsInputConfiguration) return false
if (modelDiagnosticsOutputConfiguration != other.modelDiagnosticsOutputConfiguration) return false
if (modelName != other.modelName) return false
if (roleArn != other.roleArn) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.lookoutequipment.model.UpdateModelRequest = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* Contains the configuration information for the S3 location being used to hold label data.
*/
public var labelsInputConfiguration: aws.sdk.kotlin.services.lookoutequipment.model.LabelsInputConfiguration? = null
/**
* The Amazon S3 location where you want Amazon Lookout for Equipment to save the pointwise model diagnostics for the model. You must also specify the `RoleArn` request parameter.
*/
public var modelDiagnosticsOutputConfiguration: aws.sdk.kotlin.services.lookoutequipment.model.ModelDiagnosticsOutputConfiguration? = null
/**
* The name of the model to update.
*/
public var modelName: kotlin.String? = null
/**
* The ARN of the model to update.
*/
public var roleArn: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.lookoutequipment.model.UpdateModelRequest) : this() {
this.labelsInputConfiguration = x.labelsInputConfiguration
this.modelDiagnosticsOutputConfiguration = x.modelDiagnosticsOutputConfiguration
this.modelName = x.modelName
this.roleArn = x.roleArn
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.lookoutequipment.model.UpdateModelRequest = UpdateModelRequest(this)
/**
* construct an [aws.sdk.kotlin.services.lookoutequipment.model.LabelsInputConfiguration] inside the given [block]
*/
public fun labelsInputConfiguration(block: aws.sdk.kotlin.services.lookoutequipment.model.LabelsInputConfiguration.Builder.() -> kotlin.Unit) {
this.labelsInputConfiguration = aws.sdk.kotlin.services.lookoutequipment.model.LabelsInputConfiguration.invoke(block)
}
/**
* construct an [aws.sdk.kotlin.services.lookoutequipment.model.ModelDiagnosticsOutputConfiguration] inside the given [block]
*/
public fun modelDiagnosticsOutputConfiguration(block: aws.sdk.kotlin.services.lookoutequipment.model.ModelDiagnosticsOutputConfiguration.Builder.() -> kotlin.Unit) {
this.modelDiagnosticsOutputConfiguration = aws.sdk.kotlin.services.lookoutequipment.model.ModelDiagnosticsOutputConfiguration.invoke(block)
}
internal fun correctErrors(): Builder {
return this
}
}
}