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

commonMain.aws.sdk.kotlin.services.codebuild.model.DescribeCodeCoveragesRequest.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 DescribeCodeCoveragesRequest private constructor(builder: Builder) {
    /**
     * The maximum line coverage percentage to report.
     */
    val maxLineCoveragePercentage: kotlin.Double? = builder.maxLineCoveragePercentage
    /**
     * The maximum number of results to return.
     */
    val maxResults: kotlin.Int? = builder.maxResults
    /**
     * The minimum line coverage percentage to report.
     */
    val minLineCoveragePercentage: kotlin.Double? = builder.minLineCoveragePercentage
    /**
     * The `nextToken` value returned from a previous call to `DescribeCodeCoverages`. This specifies the next item to return. To return the beginning of the list, exclude this parameter.
     */
    val nextToken: kotlin.String? = builder.nextToken
    /**
     * The ARN of the report for which test cases are returned.
     */
    val reportArn: kotlin.String? = builder.reportArn
    /**
     * Specifies how the results are sorted. Possible values are:
     *
     * ## FILE_PATH
     * The results are sorted by file path.
     *
     * ## LINE_COVERAGE_PERCENTAGE
     * The results are sorted by the percentage of lines that are covered.
     */
    val sortBy: aws.sdk.kotlin.services.codebuild.model.ReportCodeCoverageSortByType? = builder.sortBy
    /**
     * Specifies if the results are sorted in ascending or descending order.
     */
    val sortOrder: aws.sdk.kotlin.services.codebuild.model.SortOrderType? = builder.sortOrder

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

    override fun toString(): kotlin.String = buildString {
        append("DescribeCodeCoveragesRequest(")
        append("maxLineCoveragePercentage=$maxLineCoveragePercentage,")
        append("maxResults=$maxResults,")
        append("minLineCoveragePercentage=$minLineCoveragePercentage,")
        append("nextToken=$nextToken,")
        append("reportArn=$reportArn,")
        append("sortBy=$sortBy,")
        append("sortOrder=$sortOrder)")
    }

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

        if (maxLineCoveragePercentage != other.maxLineCoveragePercentage) return false
        if (maxResults != other.maxResults) return false
        if (minLineCoveragePercentage != other.minLineCoveragePercentage) return false
        if (nextToken != other.nextToken) return false
        if (reportArn != other.reportArn) return false
        if (sortBy != other.sortBy) return false
        if (sortOrder != other.sortOrder) return false

        return true
    }

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

    class Builder {
        /**
         * The maximum line coverage percentage to report.
         */
        var maxLineCoveragePercentage: kotlin.Double? = null
        /**
         * The maximum number of results to return.
         */
        var maxResults: kotlin.Int? = null
        /**
         * The minimum line coverage percentage to report.
         */
        var minLineCoveragePercentage: kotlin.Double? = null
        /**
         * The `nextToken` value returned from a previous call to `DescribeCodeCoverages`. This specifies the next item to return. To return the beginning of the list, exclude this parameter.
         */
        var nextToken: kotlin.String? = null
        /**
         * The ARN of the report for which test cases are returned.
         */
        var reportArn: kotlin.String? = null
        /**
         * Specifies how the results are sorted. Possible values are:
         *
         * ## FILE_PATH
         * The results are sorted by file path.
         *
         * ## LINE_COVERAGE_PERCENTAGE
         * The results are sorted by the percentage of lines that are covered.
         */
        var sortBy: aws.sdk.kotlin.services.codebuild.model.ReportCodeCoverageSortByType? = null
        /**
         * Specifies if the results are sorted in ascending or descending order.
         */
        var sortOrder: aws.sdk.kotlin.services.codebuild.model.SortOrderType? = null

        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.codebuild.model.DescribeCodeCoveragesRequest) : this() {
            this.maxLineCoveragePercentage = x.maxLineCoveragePercentage
            this.maxResults = x.maxResults
            this.minLineCoveragePercentage = x.minLineCoveragePercentage
            this.nextToken = x.nextToken
            this.reportArn = x.reportArn
            this.sortBy = x.sortBy
            this.sortOrder = x.sortOrder
        }

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy