commonMain.aws.sdk.kotlin.services.cleanroomsml.model.CreateConfiguredModelAlgorithmAssociationRequest.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
public class CreateConfiguredModelAlgorithmAssociationRequest private constructor(builder: Builder) {
/**
* The Amazon Resource Name (ARN) of the configured model algorithm that you want to associate.
*/
public val configuredModelAlgorithmArn: kotlin.String? = builder.configuredModelAlgorithmArn
/**
* The description of the configured model algorithm association.
*/
public val description: kotlin.String? = builder.description
/**
* The membership ID of the member who is associating this configured model algorithm.
*/
public val membershipIdentifier: kotlin.String? = builder.membershipIdentifier
/**
* The name of the configured model algorithm association.
*/
public val name: kotlin.String? = builder.name
/**
* Specifies the privacy configuration information for the configured model algorithm association. This information includes the maximum data size that can be exported.
*/
public val privacyConfiguration: aws.sdk.kotlin.services.cleanroomsml.model.PrivacyConfiguration? = builder.privacyConfiguration
/**
* The optional metadata that you apply to the resource to help you categorize and organize them. Each tag consists of a key and an optional value, both of which you define.
*
* The following basic restrictions apply to tags:
* + Maximum number of tags per resource - 50.
* + For each resource, each tag key must be unique, and each tag key can have only one value.
* + Maximum key length - 128 Unicode characters in UTF-8.
* + Maximum value length - 256 Unicode characters in UTF-8.
* + If your tagging schema is used across multiple services and resources, remember that other services may have restrictions on allowed characters. Generally allowed characters are: letters, numbers, and spaces representable in UTF-8, and the following characters: + - = . _ : / @.
* + Tag keys and values are case sensitive.
* + Do not use aws:, AWS:, or any upper or lowercase combination of such as a prefix for keys as it is reserved for AWS use. You cannot edit or delete tag keys with this prefix. Values can have this prefix. If a tag value has aws as its prefix but the key does not, then Clean Rooms ML considers it to be a user tag and will count against the limit of 50 tags. Tags with only the key prefix of aws do not count against your tags per resource limit.
*/
public val tags: Map? = builder.tags
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.cleanroomsml.model.CreateConfiguredModelAlgorithmAssociationRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("CreateConfiguredModelAlgorithmAssociationRequest(")
append("configuredModelAlgorithmArn=$configuredModelAlgorithmArn,")
append("description=$description,")
append("membershipIdentifier=$membershipIdentifier,")
append("name=$name,")
append("privacyConfiguration=$privacyConfiguration,")
append("tags=$tags")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = configuredModelAlgorithmArn?.hashCode() ?: 0
result = 31 * result + (description?.hashCode() ?: 0)
result = 31 * result + (membershipIdentifier?.hashCode() ?: 0)
result = 31 * result + (name?.hashCode() ?: 0)
result = 31 * result + (privacyConfiguration?.hashCode() ?: 0)
result = 31 * result + (tags?.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 CreateConfiguredModelAlgorithmAssociationRequest
if (configuredModelAlgorithmArn != other.configuredModelAlgorithmArn) return false
if (description != other.description) return false
if (membershipIdentifier != other.membershipIdentifier) return false
if (name != other.name) return false
if (privacyConfiguration != other.privacyConfiguration) return false
if (tags != other.tags) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.cleanroomsml.model.CreateConfiguredModelAlgorithmAssociationRequest = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The Amazon Resource Name (ARN) of the configured model algorithm that you want to associate.
*/
public var configuredModelAlgorithmArn: kotlin.String? = null
/**
* The description of the configured model algorithm association.
*/
public var description: kotlin.String? = null
/**
* The membership ID of the member who is associating this configured model algorithm.
*/
public var membershipIdentifier: kotlin.String? = null
/**
* The name of the configured model algorithm association.
*/
public var name: kotlin.String? = null
/**
* Specifies the privacy configuration information for the configured model algorithm association. This information includes the maximum data size that can be exported.
*/
public var privacyConfiguration: aws.sdk.kotlin.services.cleanroomsml.model.PrivacyConfiguration? = null
/**
* The optional metadata that you apply to the resource to help you categorize and organize them. Each tag consists of a key and an optional value, both of which you define.
*
* The following basic restrictions apply to tags:
* + Maximum number of tags per resource - 50.
* + For each resource, each tag key must be unique, and each tag key can have only one value.
* + Maximum key length - 128 Unicode characters in UTF-8.
* + Maximum value length - 256 Unicode characters in UTF-8.
* + If your tagging schema is used across multiple services and resources, remember that other services may have restrictions on allowed characters. Generally allowed characters are: letters, numbers, and spaces representable in UTF-8, and the following characters: + - = . _ : / @.
* + Tag keys and values are case sensitive.
* + Do not use aws:, AWS:, or any upper or lowercase combination of such as a prefix for keys as it is reserved for AWS use. You cannot edit or delete tag keys with this prefix. Values can have this prefix. If a tag value has aws as its prefix but the key does not, then Clean Rooms ML considers it to be a user tag and will count against the limit of 50 tags. Tags with only the key prefix of aws do not count against your tags per resource limit.
*/
public var tags: Map? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.cleanroomsml.model.CreateConfiguredModelAlgorithmAssociationRequest) : this() {
this.configuredModelAlgorithmArn = x.configuredModelAlgorithmArn
this.description = x.description
this.membershipIdentifier = x.membershipIdentifier
this.name = x.name
this.privacyConfiguration = x.privacyConfiguration
this.tags = x.tags
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.cleanroomsml.model.CreateConfiguredModelAlgorithmAssociationRequest = CreateConfiguredModelAlgorithmAssociationRequest(this)
/**
* construct an [aws.sdk.kotlin.services.cleanroomsml.model.PrivacyConfiguration] inside the given [block]
*/
public fun privacyConfiguration(block: aws.sdk.kotlin.services.cleanroomsml.model.PrivacyConfiguration.Builder.() -> kotlin.Unit) {
this.privacyConfiguration = aws.sdk.kotlin.services.cleanroomsml.model.PrivacyConfiguration.invoke(block)
}
internal fun correctErrors(): Builder {
return this
}
}
}