commonMain.aws.sdk.kotlin.services.cloudwatchlogs.model.StopQueryResponse.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 StopQueryResponse private constructor(builder: Builder) {
/**
* This is true if the query was stopped by the `StopQuery` operation.
*/
public val success: kotlin.Boolean = builder.success
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.cloudwatchlogs.model.StopQueryResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("StopQueryResponse(")
append("success=$success")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = success.hashCode()
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 StopQueryResponse
if (success != other.success) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.cloudwatchlogs.model.StopQueryResponse = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* This is true if the query was stopped by the `StopQuery` operation.
*/
public var success: kotlin.Boolean = false
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.cloudwatchlogs.model.StopQueryResponse) : this() {
this.success = x.success
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.cloudwatchlogs.model.StopQueryResponse = StopQueryResponse(this)
internal fun correctErrors(): Builder {
return this
}
}
}