commonMain.aws.sdk.kotlin.services.timestreamquery.model.ExecuteScheduledQueryRequest.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of timestreamquery-jvm Show documentation
Show all versions of timestreamquery-jvm Show documentation
The AWS SDK for Kotlin client for Timestream Query
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.timestreamquery.model
import aws.smithy.kotlin.runtime.SdkDsl
import aws.smithy.kotlin.runtime.time.Instant
public class ExecuteScheduledQueryRequest private constructor(builder: Builder) {
/**
* Not used.
*/
public val clientToken: kotlin.String? = builder.clientToken
/**
* The timestamp in UTC. Query will be run as if it was invoked at this timestamp.
*/
public val invocationTime: aws.smithy.kotlin.runtime.time.Instant? = builder.invocationTime
/**
* ARN of the scheduled query.
*/
public val scheduledQueryArn: kotlin.String? = builder.scheduledQueryArn
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.timestreamquery.model.ExecuteScheduledQueryRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("ExecuteScheduledQueryRequest(")
append("clientToken=*** Sensitive Data Redacted ***,")
append("invocationTime=$invocationTime,")
append("scheduledQueryArn=$scheduledQueryArn")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = clientToken?.hashCode() ?: 0
result = 31 * result + (invocationTime?.hashCode() ?: 0)
result = 31 * result + (scheduledQueryArn?.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 ExecuteScheduledQueryRequest
if (clientToken != other.clientToken) return false
if (invocationTime != other.invocationTime) return false
if (scheduledQueryArn != other.scheduledQueryArn) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.timestreamquery.model.ExecuteScheduledQueryRequest = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* Not used.
*/
public var clientToken: kotlin.String? = null
/**
* The timestamp in UTC. Query will be run as if it was invoked at this timestamp.
*/
public var invocationTime: aws.smithy.kotlin.runtime.time.Instant? = null
/**
* ARN of the scheduled query.
*/
public var scheduledQueryArn: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.timestreamquery.model.ExecuteScheduledQueryRequest) : this() {
this.clientToken = x.clientToken
this.invocationTime = x.invocationTime
this.scheduledQueryArn = x.scheduledQueryArn
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.timestreamquery.model.ExecuteScheduledQueryRequest = ExecuteScheduledQueryRequest(this)
internal fun correctErrors(): Builder {
return this
}
}
}