commonMain.aws.sdk.kotlin.services.cleanroomsml.model.PrivacyConfigurationPolicies.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of cleanroomsml-jvm Show documentation
Show all versions of cleanroomsml-jvm Show documentation
The AWS SDK for Kotlin client for CleanRoomsML
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.cleanroomsml.model
import aws.smithy.kotlin.runtime.SdkDsl
/**
* Information about the privacy configuration policies for a configured model algorithm association.
*/
public class PrivacyConfigurationPolicies private constructor(builder: Builder) {
/**
* Specifies who will receive the trained model export.
*/
public val trainedModelExports: aws.sdk.kotlin.services.cleanroomsml.model.TrainedModelExportsConfigurationPolicy? = builder.trainedModelExports
/**
* Specifies who will receive the trained model inference jobs.
*/
public val trainedModelInferenceJobs: aws.sdk.kotlin.services.cleanroomsml.model.TrainedModelInferenceJobsConfigurationPolicy? = builder.trainedModelInferenceJobs
/**
* Specifies who will receive the trained models.
*/
public val trainedModels: aws.sdk.kotlin.services.cleanroomsml.model.TrainedModelsConfigurationPolicy? = builder.trainedModels
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.cleanroomsml.model.PrivacyConfigurationPolicies = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("PrivacyConfigurationPolicies(")
append("trainedModelExports=$trainedModelExports,")
append("trainedModelInferenceJobs=$trainedModelInferenceJobs,")
append("trainedModels=$trainedModels")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = trainedModelExports?.hashCode() ?: 0
result = 31 * result + (trainedModelInferenceJobs?.hashCode() ?: 0)
result = 31 * result + (trainedModels?.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 PrivacyConfigurationPolicies
if (trainedModelExports != other.trainedModelExports) return false
if (trainedModelInferenceJobs != other.trainedModelInferenceJobs) return false
if (trainedModels != other.trainedModels) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.cleanroomsml.model.PrivacyConfigurationPolicies = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* Specifies who will receive the trained model export.
*/
public var trainedModelExports: aws.sdk.kotlin.services.cleanroomsml.model.TrainedModelExportsConfigurationPolicy? = null
/**
* Specifies who will receive the trained model inference jobs.
*/
public var trainedModelInferenceJobs: aws.sdk.kotlin.services.cleanroomsml.model.TrainedModelInferenceJobsConfigurationPolicy? = null
/**
* Specifies who will receive the trained models.
*/
public var trainedModels: aws.sdk.kotlin.services.cleanroomsml.model.TrainedModelsConfigurationPolicy? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.cleanroomsml.model.PrivacyConfigurationPolicies) : this() {
this.trainedModelExports = x.trainedModelExports
this.trainedModelInferenceJobs = x.trainedModelInferenceJobs
this.trainedModels = x.trainedModels
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.cleanroomsml.model.PrivacyConfigurationPolicies = PrivacyConfigurationPolicies(this)
/**
* construct an [aws.sdk.kotlin.services.cleanroomsml.model.TrainedModelExportsConfigurationPolicy] inside the given [block]
*/
public fun trainedModelExports(block: aws.sdk.kotlin.services.cleanroomsml.model.TrainedModelExportsConfigurationPolicy.Builder.() -> kotlin.Unit) {
this.trainedModelExports = aws.sdk.kotlin.services.cleanroomsml.model.TrainedModelExportsConfigurationPolicy.invoke(block)
}
/**
* construct an [aws.sdk.kotlin.services.cleanroomsml.model.TrainedModelInferenceJobsConfigurationPolicy] inside the given [block]
*/
public fun trainedModelInferenceJobs(block: aws.sdk.kotlin.services.cleanroomsml.model.TrainedModelInferenceJobsConfigurationPolicy.Builder.() -> kotlin.Unit) {
this.trainedModelInferenceJobs = aws.sdk.kotlin.services.cleanroomsml.model.TrainedModelInferenceJobsConfigurationPolicy.invoke(block)
}
/**
* construct an [aws.sdk.kotlin.services.cleanroomsml.model.TrainedModelsConfigurationPolicy] inside the given [block]
*/
public fun trainedModels(block: aws.sdk.kotlin.services.cleanroomsml.model.TrainedModelsConfigurationPolicy.Builder.() -> kotlin.Unit) {
this.trainedModels = aws.sdk.kotlin.services.cleanroomsml.model.TrainedModelsConfigurationPolicy.invoke(block)
}
internal fun correctErrors(): Builder {
return this
}
}
}