commonMain.aws.sdk.kotlin.services.cloudwatchlogs.model.QueryCompileError.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of cloudwatchlogs Show documentation
Show all versions of cloudwatchlogs Show documentation
The AWS Kotlin client for CloudWatch Logs
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.cloudwatchlogs.model
/**
* Reserved.
*/
public class QueryCompileError private constructor(builder: Builder) {
/**
* Reserved.
*/
public val location: aws.sdk.kotlin.services.cloudwatchlogs.model.QueryCompileErrorLocation? = builder.location
/**
* Reserved.
*/
public val message: kotlin.String? = builder.message
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.cloudwatchlogs.model.QueryCompileError = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("QueryCompileError(")
append("location=$location,")
append("message=$message")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = location?.hashCode() ?: 0
result = 31 * result + (message?.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 QueryCompileError
if (location != other.location) return false
if (message != other.message) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.cloudwatchlogs.model.QueryCompileError = Builder(this).apply(block).build()
public class Builder {
/**
* Reserved.
*/
public var location: aws.sdk.kotlin.services.cloudwatchlogs.model.QueryCompileErrorLocation? = null
/**
* Reserved.
*/
public var message: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.cloudwatchlogs.model.QueryCompileError) : this() {
this.location = x.location
this.message = x.message
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.cloudwatchlogs.model.QueryCompileError = QueryCompileError(this)
/**
* construct an [aws.sdk.kotlin.services.cloudwatchlogs.model.QueryCompileErrorLocation] inside the given [block]
*/
public fun location(block: aws.sdk.kotlin.services.cloudwatchlogs.model.QueryCompileErrorLocation.Builder.() -> kotlin.Unit) {
this.location = aws.sdk.kotlin.services.cloudwatchlogs.model.QueryCompileErrorLocation.invoke(block)
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy