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

commonMain.aws.sdk.kotlin.services.applicationdiscoveryservice.model.StartImportTaskRequest.kt Maven / Gradle / Ivy

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

package aws.sdk.kotlin.services.applicationdiscoveryservice.model



public class StartImportTaskRequest private constructor(builder: Builder) {
    /**
     * Optional. A unique token that you can provide to prevent the same import request from occurring more than once. If you don't provide a token, a token is automatically generated.
     *
     * Sending more than one `StartImportTask` request with the same client request token will return information about the original import task with that client request token.
     */
    public val clientRequestToken: kotlin.String? = builder.clientRequestToken
    /**
     * The URL for your import file that you've uploaded to Amazon S3.
     *
     * If you're using the Amazon Web Services CLI, this URL is structured as follows: `s3://BucketName/ImportFileName.CSV`
     */
    public val importUrl: kotlin.String? = builder.importUrl
    /**
     * A descriptive name for this request. You can use this name to filter future requests related to this import task, such as identifying applications and servers that were included in this import task. We recommend that you use a meaningful name for each import task.
     */
    public val name: kotlin.String? = builder.name

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

    override fun toString(): kotlin.String = buildString {
        append("StartImportTaskRequest(")
        append("clientRequestToken=$clientRequestToken,")
        append("importUrl=$importUrl,")
        append("name=$name")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = clientRequestToken?.hashCode() ?: 0
        result = 31 * result + (importUrl?.hashCode() ?: 0)
        result = 31 * result + (name?.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 StartImportTaskRequest

        if (clientRequestToken != other.clientRequestToken) return false
        if (importUrl != other.importUrl) return false
        if (name != other.name) return false

        return true
    }

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

    public class Builder {
        /**
         * Optional. A unique token that you can provide to prevent the same import request from occurring more than once. If you don't provide a token, a token is automatically generated.
         *
         * Sending more than one `StartImportTask` request with the same client request token will return information about the original import task with that client request token.
         */
        public var clientRequestToken: kotlin.String? = null
        /**
         * The URL for your import file that you've uploaded to Amazon S3.
         *
         * If you're using the Amazon Web Services CLI, this URL is structured as follows: `s3://BucketName/ImportFileName.CSV`
         */
        public var importUrl: kotlin.String? = null
        /**
         * A descriptive name for this request. You can use this name to filter future requests related to this import task, such as identifying applications and servers that were included in this import task. We recommend that you use a meaningful name for each import task.
         */
        public var name: kotlin.String? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.applicationdiscoveryservice.model.StartImportTaskRequest) : this() {
            this.clientRequestToken = x.clientRequestToken
            this.importUrl = x.importUrl
            this.name = x.name
        }

        @PublishedApi
        internal fun build(): aws.sdk.kotlin.services.applicationdiscoveryservice.model.StartImportTaskRequest = StartImportTaskRequest(this)
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy