commonMain.aws.sdk.kotlin.services.codebuild.model.DescribeTestCasesRequest.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 DescribeTestCasesRequest private constructor(builder: Builder) {
/**
* A `TestCaseFilter` object used to filter the returned reports.
*/
public 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.
*/
public 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.
*/
public val nextToken: kotlin.String? = builder.nextToken
/**
* The ARN of the report for which test cases are returned.
*/
public val reportArn: kotlin.String? = builder.reportArn
public companion object {
public 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")
append(")")
}
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
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.codebuild.model.DescribeTestCasesRequest = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* A `TestCaseFilter` object used to filter the returned reports.
*/
public 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.
*/
public 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.
*/
public var nextToken: kotlin.String? = null
/**
* The ARN of the report for which test cases are returned.
*/
public var reportArn: kotlin.String? = null
@PublishedApi
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]
*/
public fun filter(block: aws.sdk.kotlin.services.codebuild.model.TestCaseFilter.Builder.() -> kotlin.Unit) {
this.filter = aws.sdk.kotlin.services.codebuild.model.TestCaseFilter.invoke(block)
}
internal fun correctErrors(): Builder {
return this
}
}
}