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

commonMain.aws.sdk.kotlin.services.cleanroomsml.model.CreateMlInputChannelRequest.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

public class CreateMlInputChannelRequest private constructor(builder: Builder) {
    /**
     * The associated configured model algorithms that are necessary to create this ML input channel.
     */
    public val configuredModelAlgorithmAssociations: List? = builder.configuredModelAlgorithmAssociations
    /**
     * The description of the ML input channel.
     */
    public val description: kotlin.String? = builder.description
    /**
     * The input data that is used to create this ML input channel.
     */
    public val inputChannel: aws.sdk.kotlin.services.cleanroomsml.model.InputChannel? = builder.inputChannel
    /**
     * The Amazon Resource Name (ARN) of the KMS key that is used to access the input channel.
     */
    public val kmsKeyArn: kotlin.String? = builder.kmsKeyArn
    /**
     * The membership ID of the member that is creating the ML input channel.
     */
    public val membershipIdentifier: kotlin.String? = builder.membershipIdentifier
    /**
     * The name of the ML input channel.
     */
    public val name: kotlin.String? = builder.name
    /**
     * The number of days that the data in the ML input channel is retained.
     */
    public val retentionInDays: kotlin.Int? = builder.retentionInDays
    /**
     * 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.CreateMlInputChannelRequest = Builder().apply(block).build()
    }

    override fun toString(): kotlin.String = buildString {
        append("CreateMlInputChannelRequest(")
        append("configuredModelAlgorithmAssociations=$configuredModelAlgorithmAssociations,")
        append("description=$description,")
        append("inputChannel=$inputChannel,")
        append("kmsKeyArn=$kmsKeyArn,")
        append("membershipIdentifier=$membershipIdentifier,")
        append("name=$name,")
        append("retentionInDays=$retentionInDays,")
        append("tags=$tags")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = configuredModelAlgorithmAssociations?.hashCode() ?: 0
        result = 31 * result + (description?.hashCode() ?: 0)
        result = 31 * result + (inputChannel?.hashCode() ?: 0)
        result = 31 * result + (kmsKeyArn?.hashCode() ?: 0)
        result = 31 * result + (membershipIdentifier?.hashCode() ?: 0)
        result = 31 * result + (name?.hashCode() ?: 0)
        result = 31 * result + (retentionInDays ?: 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 CreateMlInputChannelRequest

        if (configuredModelAlgorithmAssociations != other.configuredModelAlgorithmAssociations) return false
        if (description != other.description) return false
        if (inputChannel != other.inputChannel) return false
        if (kmsKeyArn != other.kmsKeyArn) return false
        if (membershipIdentifier != other.membershipIdentifier) return false
        if (name != other.name) return false
        if (retentionInDays != other.retentionInDays) return false
        if (tags != other.tags) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * The associated configured model algorithms that are necessary to create this ML input channel.
         */
        public var configuredModelAlgorithmAssociations: List? = null
        /**
         * The description of the ML input channel.
         */
        public var description: kotlin.String? = null
        /**
         * The input data that is used to create this ML input channel.
         */
        public var inputChannel: aws.sdk.kotlin.services.cleanroomsml.model.InputChannel? = null
        /**
         * The Amazon Resource Name (ARN) of the KMS key that is used to access the input channel.
         */
        public var kmsKeyArn: kotlin.String? = null
        /**
         * The membership ID of the member that is creating the ML input channel.
         */
        public var membershipIdentifier: kotlin.String? = null
        /**
         * The name of the ML input channel.
         */
        public var name: kotlin.String? = null
        /**
         * The number of days that the data in the ML input channel is retained.
         */
        public var retentionInDays: kotlin.Int? = 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.CreateMlInputChannelRequest) : this() {
            this.configuredModelAlgorithmAssociations = x.configuredModelAlgorithmAssociations
            this.description = x.description
            this.inputChannel = x.inputChannel
            this.kmsKeyArn = x.kmsKeyArn
            this.membershipIdentifier = x.membershipIdentifier
            this.name = x.name
            this.retentionInDays = x.retentionInDays
            this.tags = x.tags
        }

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

        /**
         * construct an [aws.sdk.kotlin.services.cleanroomsml.model.InputChannel] inside the given [block]
         */
        public fun inputChannel(block: aws.sdk.kotlin.services.cleanroomsml.model.InputChannel.Builder.() -> kotlin.Unit) {
            this.inputChannel = aws.sdk.kotlin.services.cleanroomsml.model.InputChannel.invoke(block)
        }

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy