commonMain.aws.sdk.kotlin.services.cloudwatchlogs.model.DescribeQueriesRequest.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of cloudwatchlogs-jvm Show documentation
Show all versions of cloudwatchlogs-jvm Show documentation
The AWS SDK for Kotlin client for CloudWatch Logs
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.cloudwatchlogs.model
import aws.smithy.kotlin.runtime.SdkDsl
public class DescribeQueriesRequest private constructor(builder: Builder) {
/**
* Limits the returned queries to only those for the specified log group.
*/
public val logGroupName: kotlin.String? = builder.logGroupName
/**
* Limits the number of returned queries to the specified number.
*/
public val maxResults: kotlin.Int? = builder.maxResults
/**
* The token for the next set of items to return. The token expires after 24 hours.
*/
public val nextToken: kotlin.String? = builder.nextToken
/**
* Limits the returned queries to only those that have the specified status. Valid values are `Cancelled`, `Complete`, `Failed`, `Running`, and `Scheduled`.
*/
public val status: aws.sdk.kotlin.services.cloudwatchlogs.model.QueryStatus? = builder.status
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.cloudwatchlogs.model.DescribeQueriesRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("DescribeQueriesRequest(")
append("logGroupName=$logGroupName,")
append("maxResults=$maxResults,")
append("nextToken=$nextToken,")
append("status=$status")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = logGroupName?.hashCode() ?: 0
result = 31 * result + (maxResults ?: 0)
result = 31 * result + (nextToken?.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 DescribeQueriesRequest
if (logGroupName != other.logGroupName) return false
if (maxResults != other.maxResults) return false
if (nextToken != other.nextToken) return false
if (status != other.status) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.cloudwatchlogs.model.DescribeQueriesRequest = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* Limits the returned queries to only those for the specified log group.
*/
public var logGroupName: kotlin.String? = null
/**
* Limits the number of returned queries to the specified number.
*/
public var maxResults: kotlin.Int? = null
/**
* The token for the next set of items to return. The token expires after 24 hours.
*/
public var nextToken: kotlin.String? = null
/**
* Limits the returned queries to only those that have the specified status. Valid values are `Cancelled`, `Complete`, `Failed`, `Running`, and `Scheduled`.
*/
public var status: aws.sdk.kotlin.services.cloudwatchlogs.model.QueryStatus? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.cloudwatchlogs.model.DescribeQueriesRequest) : this() {
this.logGroupName = x.logGroupName
this.maxResults = x.maxResults
this.nextToken = x.nextToken
this.status = x.status
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.cloudwatchlogs.model.DescribeQueriesRequest = DescribeQueriesRequest(this)
internal fun correctErrors(): Builder {
return this
}
}
}