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

commonMain.aws.sdk.kotlin.services.cloudwatchlogs.model.DescribeExportTasksRequest.kt Maven / Gradle / Ivy

// Code generated by smithy-kotlin-codegen. DO NOT EDIT!

package aws.sdk.kotlin.services.cloudwatchlogs.model

import aws.smithy.kotlin.runtime.SdkDsl

public class DescribeExportTasksRequest private constructor(builder: Builder) {
    /**
     * The maximum number of items returned. If you don't specify a value, the default is up to 50 items.
     */
    public val limit: kotlin.Int? = builder.limit
    /**
     * The token for the next set of items to return. (You received this token from a previous call.)
     */
    public val nextToken: kotlin.String? = builder.nextToken
    /**
     * The status code of the export task. Specifying a status code filters the results to zero or more export tasks.
     */
    public val statusCode: aws.sdk.kotlin.services.cloudwatchlogs.model.ExportTaskStatusCode? = builder.statusCode
    /**
     * The ID of the export task. Specifying a task ID filters the results to one or zero export tasks.
     */
    public val taskId: kotlin.String? = builder.taskId

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

    override fun toString(): kotlin.String = buildString {
        append("DescribeExportTasksRequest(")
        append("limit=$limit,")
        append("nextToken=$nextToken,")
        append("statusCode=$statusCode,")
        append("taskId=$taskId")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = limit ?: 0
        result = 31 * result + (nextToken?.hashCode() ?: 0)
        result = 31 * result + (statusCode?.hashCode() ?: 0)
        result = 31 * result + (taskId?.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 DescribeExportTasksRequest

        if (limit != other.limit) return false
        if (nextToken != other.nextToken) return false
        if (statusCode != other.statusCode) return false
        if (taskId != other.taskId) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * The maximum number of items returned. If you don't specify a value, the default is up to 50 items.
         */
        public var limit: kotlin.Int? = null
        /**
         * The token for the next set of items to return. (You received this token from a previous call.)
         */
        public var nextToken: kotlin.String? = null
        /**
         * The status code of the export task. Specifying a status code filters the results to zero or more export tasks.
         */
        public var statusCode: aws.sdk.kotlin.services.cloudwatchlogs.model.ExportTaskStatusCode? = null
        /**
         * The ID of the export task. Specifying a task ID filters the results to one or zero export tasks.
         */
        public var taskId: kotlin.String? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.cloudwatchlogs.model.DescribeExportTasksRequest) : this() {
            this.limit = x.limit
            this.nextToken = x.nextToken
            this.statusCode = x.statusCode
            this.taskId = x.taskId
        }

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

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy