All Downloads are FREE. Search and download functionalities are using the official Maven repository.

commonMain.aws.sdk.kotlin.services.cleanroomsml.model.CreateAudienceModelRequest.kt Maven / Gradle / Ivy

There is a newer version: 1.3.79
Show newest version
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!

package aws.sdk.kotlin.services.cleanroomsml.model

import aws.smithy.kotlin.runtime.SdkDsl
import aws.smithy.kotlin.runtime.time.Instant

public class CreateAudienceModelRequest private constructor(builder: Builder) {
    /**
     * The description of the audience model.
     */
    public val description: kotlin.String? = builder.description
    /**
     * The Amazon Resource Name (ARN) of the KMS key. This key is used to encrypt and decrypt customer-owned data in the trained ML model and the associated data.
     */
    public val kmsKeyArn: kotlin.String? = builder.kmsKeyArn
    /**
     * The name of the audience model resource.
     */
    public val name: kotlin.String? = builder.name
    /**
     * 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
    /**
     * The end date and time of the training window.
     */
    public val trainingDataEndTime: aws.smithy.kotlin.runtime.time.Instant? = builder.trainingDataEndTime
    /**
     * The start date and time of the training window.
     */
    public val trainingDataStartTime: aws.smithy.kotlin.runtime.time.Instant? = builder.trainingDataStartTime
    /**
     * The Amazon Resource Name (ARN) of the training dataset for this audience model.
     */
    public val trainingDatasetArn: kotlin.String? = builder.trainingDatasetArn

    public companion object {
        public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.cleanroomsml.model.CreateAudienceModelRequest = Builder().apply(block).build()
    }

    override fun toString(): kotlin.String = buildString {
        append("CreateAudienceModelRequest(")
        append("description=$description,")
        append("kmsKeyArn=$kmsKeyArn,")
        append("name=$name,")
        append("tags=$tags,")
        append("trainingDataEndTime=$trainingDataEndTime,")
        append("trainingDataStartTime=$trainingDataStartTime,")
        append("trainingDatasetArn=$trainingDatasetArn")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = description?.hashCode() ?: 0
        result = 31 * result + (kmsKeyArn?.hashCode() ?: 0)
        result = 31 * result + (name?.hashCode() ?: 0)
        result = 31 * result + (tags?.hashCode() ?: 0)
        result = 31 * result + (trainingDataEndTime?.hashCode() ?: 0)
        result = 31 * result + (trainingDataStartTime?.hashCode() ?: 0)
        result = 31 * result + (trainingDatasetArn?.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 CreateAudienceModelRequest

        if (description != other.description) return false
        if (kmsKeyArn != other.kmsKeyArn) return false
        if (name != other.name) return false
        if (tags != other.tags) return false
        if (trainingDataEndTime != other.trainingDataEndTime) return false
        if (trainingDataStartTime != other.trainingDataStartTime) return false
        if (trainingDatasetArn != other.trainingDatasetArn) return false

        return true
    }

    public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.cleanroomsml.model.CreateAudienceModelRequest = Builder(this).apply(block).build()

    @SdkDsl
    public class Builder {
        /**
         * The description of the audience model.
         */
        public var description: kotlin.String? = null
        /**
         * The Amazon Resource Name (ARN) of the KMS key. This key is used to encrypt and decrypt customer-owned data in the trained ML model and the associated data.
         */
        public var kmsKeyArn: kotlin.String? = null
        /**
         * The name of the audience model resource.
         */
        public var name: kotlin.String? = 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
        /**
         * The end date and time of the training window.
         */
        public var trainingDataEndTime: aws.smithy.kotlin.runtime.time.Instant? = null
        /**
         * The start date and time of the training window.
         */
        public var trainingDataStartTime: aws.smithy.kotlin.runtime.time.Instant? = null
        /**
         * The Amazon Resource Name (ARN) of the training dataset for this audience model.
         */
        public var trainingDatasetArn: kotlin.String? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.cleanroomsml.model.CreateAudienceModelRequest) : this() {
            this.description = x.description
            this.kmsKeyArn = x.kmsKeyArn
            this.name = x.name
            this.tags = x.tags
            this.trainingDataEndTime = x.trainingDataEndTime
            this.trainingDataStartTime = x.trainingDataStartTime
            this.trainingDatasetArn = x.trainingDatasetArn
        }

        @PublishedApi
        internal fun build(): aws.sdk.kotlin.services.cleanroomsml.model.CreateAudienceModelRequest = CreateAudienceModelRequest(this)

        internal fun correctErrors(): Builder {
            return this
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy