commonMain.aws.sdk.kotlin.services.codebuild.model.DescribeTestCasesResponse.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of codebuild-jvm Show documentation
Show all versions of codebuild-jvm Show documentation
The AWS SDK for Kotlin client for CodeBuild
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.codebuild.model
import aws.smithy.kotlin.runtime.SdkDsl
public class DescribeTestCasesResponse private constructor(builder: Builder) {
/**
* 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.
*/
public val nextToken: kotlin.String? = builder.nextToken
/**
* The returned list of test cases.
*/
public val testCases: List? = builder.testCases
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.codebuild.model.DescribeTestCasesResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("DescribeTestCasesResponse(")
append("nextToken=$nextToken,")
append("testCases=$testCases")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = nextToken?.hashCode() ?: 0
result = 31 * result + (testCases?.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 DescribeTestCasesResponse
if (nextToken != other.nextToken) return false
if (testCases != other.testCases) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.codebuild.model.DescribeTestCasesResponse = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* 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.
*/
public var nextToken: kotlin.String? = null
/**
* The returned list of test cases.
*/
public var testCases: List? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.codebuild.model.DescribeTestCasesResponse) : this() {
this.nextToken = x.nextToken
this.testCases = x.testCases
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.codebuild.model.DescribeTestCasesResponse = DescribeTestCasesResponse(this)
internal fun correctErrors(): Builder {
return this
}
}
}