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.77
Show newest version
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!

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

import aws.smithy.kotlin.runtime.SdkDsl

public class DescribeCodeCoveragesRequest private constructor(builder: Builder) {
    /**
     * The maximum line coverage percentage to report.
     */
    public val maxLineCoveragePercentage: kotlin.Double? = builder.maxLineCoveragePercentage
    /**
     * The maximum number of results to return.
     */
    public val maxResults: kotlin.Int? = builder.maxResults
    /**
     * The minimum line coverage percentage to report.
     */
    public 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.
     */
    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
    /**
     * 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.
     */
    public val sortBy: aws.sdk.kotlin.services.codebuild.model.ReportCodeCoverageSortByType? = builder.sortBy
    /**
     * Specifies if the results are sorted in ascending or descending order.
     */
    public val sortOrder: aws.sdk.kotlin.services.codebuild.model.SortOrderType? = builder.sortOrder

    public companion object {
        public 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")
        append(")")
    }

    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?.equals(other.maxLineCoveragePercentage) ?: (other.maxLineCoveragePercentage == null))) return false
        if (maxResults != other.maxResults) return false
        if (!(minLineCoveragePercentage?.equals(other.minLineCoveragePercentage) ?: (other.minLineCoveragePercentage == null))) 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
    }

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

    @SdkDsl
    public class Builder {
        /**
         * The maximum line coverage percentage to report.
         */
        public var maxLineCoveragePercentage: kotlin.Double? = null
        /**
         * The maximum number of results to return.
         */
        public var maxResults: kotlin.Int? = null
        /**
         * The minimum line coverage percentage to report.
         */
        public 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.
         */
        public var nextToken: kotlin.String? = null
        /**
         * The ARN of the report for which test cases are returned.
         */
        public 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.
         */
        public var sortBy: aws.sdk.kotlin.services.codebuild.model.ReportCodeCoverageSortByType? = null
        /**
         * Specifies if the results are sorted in ascending or descending order.
         */
        public var sortOrder: aws.sdk.kotlin.services.codebuild.model.SortOrderType? = null

        @PublishedApi
        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)

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy