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

commonMain.aws.sdk.kotlin.services.codebuild.model.DescribeTestCasesRequest.kt Maven / Gradle / Ivy

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

package aws.sdk.kotlin.services.codebuild.model



class DescribeTestCasesRequest private constructor(builder: Builder) {
    /**
     * A `TestCaseFilter` object used to filter the returned reports.
     */
    val filter: aws.sdk.kotlin.services.codebuild.model.TestCaseFilter? = builder.filter
    /**
     * The maximum number of paginated test cases returned per response. Use `nextToken` to iterate pages in the list of returned `TestCase` objects. The default value is 100.
     */
    val maxResults: kotlin.Int? = builder.maxResults
    /**
     * During a previous call, the maximum number of items that can be returned is the value specified in `maxResults`. If there more items in the list, then a unique string called a *nextToken* is returned. To get the next batch of items in the list, call this operation again, adding the next token to the call. To get all of the items in the list, keep calling this operation with each subsequent next token that is returned, until no more next tokens are returned.
     */
    val nextToken: kotlin.String? = builder.nextToken
    /**
     * The ARN of the report for which test cases are returned.
     */
    val reportArn: kotlin.String? = builder.reportArn

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

    override fun toString(): kotlin.String = buildString {
        append("DescribeTestCasesRequest(")
        append("filter=$filter,")
        append("maxResults=$maxResults,")
        append("nextToken=$nextToken,")
        append("reportArn=$reportArn)")
    }

    override fun hashCode(): kotlin.Int {
        var result = filter?.hashCode() ?: 0
        result = 31 * result + (maxResults ?: 0)
        result = 31 * result + (nextToken?.hashCode() ?: 0)
        result = 31 * result + (reportArn?.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 DescribeTestCasesRequest

        if (filter != other.filter) return false
        if (maxResults != other.maxResults) return false
        if (nextToken != other.nextToken) return false
        if (reportArn != other.reportArn) return false

        return true
    }

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

    class Builder {
        /**
         * A `TestCaseFilter` object used to filter the returned reports.
         */
        var filter: aws.sdk.kotlin.services.codebuild.model.TestCaseFilter? = null
        /**
         * The maximum number of paginated test cases returned per response. Use `nextToken` to iterate pages in the list of returned `TestCase` objects. The default value is 100.
         */
        var maxResults: kotlin.Int? = null
        /**
         * During a previous call, the maximum number of items that can be returned is the value specified in `maxResults`. If there more items in the list, then a unique string called a *nextToken* is returned. To get the next batch of items in the list, call this operation again, adding the next token to the call. To get all of the items in the list, keep calling this operation with each subsequent next token that is returned, until no more next tokens are returned.
         */
        var nextToken: kotlin.String? = null
        /**
         * The ARN of the report for which test cases are returned.
         */
        var reportArn: kotlin.String? = null

        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.codebuild.model.DescribeTestCasesRequest) : this() {
            this.filter = x.filter
            this.maxResults = x.maxResults
            this.nextToken = x.nextToken
            this.reportArn = x.reportArn
        }

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy