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

commonMain.aws.sdk.kotlin.services.devicefarm.model.UpdateUploadRequest.kt Maven / Gradle / Ivy

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

package aws.sdk.kotlin.services.devicefarm.model

import aws.smithy.kotlin.runtime.SdkDsl

public class UpdateUploadRequest private constructor(builder: Builder) {
    /**
     * The Amazon Resource Name (ARN) of the uploaded test spec.
     */
    public val arn: kotlin.String? = builder.arn
    /**
     * The upload's content type (for example, `application/x-yaml`).
     */
    public val contentType: kotlin.String? = builder.contentType
    /**
     * Set to true if the YAML file has changed and must be updated. Otherwise, set to false.
     */
    public val editContent: kotlin.Boolean? = builder.editContent
    /**
     * The upload's test spec file name. The name must not contain any forward slashes (/). The test spec file name must end with the `.yaml` or `.yml` file extension.
     */
    public val name: kotlin.String? = builder.name

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

    override fun toString(): kotlin.String = buildString {
        append("UpdateUploadRequest(")
        append("arn=$arn,")
        append("contentType=$contentType,")
        append("editContent=$editContent,")
        append("name=$name")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = arn?.hashCode() ?: 0
        result = 31 * result + (contentType?.hashCode() ?: 0)
        result = 31 * result + (editContent?.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 UpdateUploadRequest

        if (arn != other.arn) return false
        if (contentType != other.contentType) return false
        if (editContent != other.editContent) return false
        if (name != other.name) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * The Amazon Resource Name (ARN) of the uploaded test spec.
         */
        public var arn: kotlin.String? = null
        /**
         * The upload's content type (for example, `application/x-yaml`).
         */
        public var contentType: kotlin.String? = null
        /**
         * Set to true if the YAML file has changed and must be updated. Otherwise, set to false.
         */
        public var editContent: kotlin.Boolean? = null
        /**
         * The upload's test spec file name. The name must not contain any forward slashes (/). The test spec file name must end with the `.yaml` or `.yml` file extension.
         */
        public var name: kotlin.String? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.devicefarm.model.UpdateUploadRequest) : this() {
            this.arn = x.arn
            this.contentType = x.contentType
            this.editContent = x.editContent
            this.name = x.name
        }

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

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy