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

commonMain.aws.sdk.kotlin.services.codegurusecurity.model.GetFindingsRequest.kt Maven / Gradle / Ivy

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

package aws.sdk.kotlin.services.codegurusecurity.model

import aws.smithy.kotlin.runtime.SdkDsl

public class GetFindingsRequest private constructor(builder: Builder) {
    /**
     * The maximum number of results to return in the response. Use this parameter when paginating results. If additional results exist beyond the number you specify, the `nextToken` element is returned in the response. Use `nextToken` in a subsequent request to retrieve additional results. If not specified, returns 1000 results.
     */
    public val maxResults: kotlin.Int? = builder.maxResults
    /**
     * A token to use for paginating results that are returned in the response. Set the value of this parameter to null for the first request. For subsequent calls, use the `nextToken` value returned from the previous request to continue listing results after the first page.
     */
    public val nextToken: kotlin.String? = builder.nextToken
    /**
     * The name of the scan you want to retrieve findings from.
     */
    public val scanName: kotlin.String? = builder.scanName
    /**
     * The status of the findings you want to get. Pass either `Open`, `Closed`, or `All`.
     */
    public val status: aws.sdk.kotlin.services.codegurusecurity.model.Status? = builder.status

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

    override fun toString(): kotlin.String = buildString {
        append("GetFindingsRequest(")
        append("maxResults=$maxResults,")
        append("nextToken=$nextToken,")
        append("scanName=$scanName,")
        append("status=$status")
        append(")")
    }

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

        if (maxResults != other.maxResults) return false
        if (nextToken != other.nextToken) return false
        if (scanName != other.scanName) return false
        if (status != other.status) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * The maximum number of results to return in the response. Use this parameter when paginating results. If additional results exist beyond the number you specify, the `nextToken` element is returned in the response. Use `nextToken` in a subsequent request to retrieve additional results. If not specified, returns 1000 results.
         */
        public var maxResults: kotlin.Int? = null
        /**
         * A token to use for paginating results that are returned in the response. Set the value of this parameter to null for the first request. For subsequent calls, use the `nextToken` value returned from the previous request to continue listing results after the first page.
         */
        public var nextToken: kotlin.String? = null
        /**
         * The name of the scan you want to retrieve findings from.
         */
        public var scanName: kotlin.String? = null
        /**
         * The status of the findings you want to get. Pass either `Open`, `Closed`, or `All`.
         */
        public var status: aws.sdk.kotlin.services.codegurusecurity.model.Status? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.codegurusecurity.model.GetFindingsRequest) : this() {
            this.maxResults = x.maxResults
            this.nextToken = x.nextToken
            this.scanName = x.scanName
            this.status = x.status
        }

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

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy