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

commonMain.aws.sdk.kotlin.services.devicefarm.model.GetTestGridSessionRequest.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 GetTestGridSessionRequest private constructor(builder: Builder) {
    /**
     * The ARN for the project that this session belongs to. See CreateTestGridProject and ListTestGridProjects.
     */
    public val projectArn: kotlin.String? = builder.projectArn
    /**
     * An ARN that uniquely identifies a TestGridSession.
     */
    public val sessionArn: kotlin.String? = builder.sessionArn
    /**
     * An ID associated with this session.
     */
    public val sessionId: kotlin.String? = builder.sessionId

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

    override fun toString(): kotlin.String = buildString {
        append("GetTestGridSessionRequest(")
        append("projectArn=$projectArn,")
        append("sessionArn=$sessionArn,")
        append("sessionId=$sessionId")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = projectArn?.hashCode() ?: 0
        result = 31 * result + (sessionArn?.hashCode() ?: 0)
        result = 31 * result + (sessionId?.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 GetTestGridSessionRequest

        if (projectArn != other.projectArn) return false
        if (sessionArn != other.sessionArn) return false
        if (sessionId != other.sessionId) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * The ARN for the project that this session belongs to. See CreateTestGridProject and ListTestGridProjects.
         */
        public var projectArn: kotlin.String? = null
        /**
         * An ARN that uniquely identifies a TestGridSession.
         */
        public var sessionArn: kotlin.String? = null
        /**
         * An ID associated with this session.
         */
        public var sessionId: kotlin.String? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.devicefarm.model.GetTestGridSessionRequest) : this() {
            this.projectArn = x.projectArn
            this.sessionArn = x.sessionArn
            this.sessionId = x.sessionId
        }

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

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy