commonMain.aws.sdk.kotlin.services.cloudwatchlogs.model.DeleteQueryDefinitionResponse.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 DeleteQueryDefinitionResponse private constructor(builder: Builder) {
/**
* A value of TRUE indicates that the operation succeeded. FALSE indicates that the operation failed.
*/
public val success: kotlin.Boolean = builder.success
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.cloudwatchlogs.model.DeleteQueryDefinitionResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("DeleteQueryDefinitionResponse(")
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 DeleteQueryDefinitionResponse
if (success != other.success) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.cloudwatchlogs.model.DeleteQueryDefinitionResponse = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* A value of TRUE indicates that the operation succeeded. FALSE indicates that the operation failed.
*/
public var success: kotlin.Boolean = false
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.cloudwatchlogs.model.DeleteQueryDefinitionResponse) : this() {
this.success = x.success
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.cloudwatchlogs.model.DeleteQueryDefinitionResponse = DeleteQueryDefinitionResponse(this)
internal fun correctErrors(): Builder {
return this
}
}
}