commonMain.aws.sdk.kotlin.services.athena.model.UpdateNamedQueryRequest.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of athena-jvm Show documentation
Show all versions of athena-jvm Show documentation
The AWS SDK for Kotlin client for Athena
The newest version!
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.athena.model
import aws.smithy.kotlin.runtime.SdkDsl
public class UpdateNamedQueryRequest private constructor(builder: Builder) {
/**
* The query description.
*/
public val description: kotlin.String? = builder.description
/**
* The name of the query.
*/
public val name: kotlin.String? = builder.name
/**
* The unique identifier (UUID) of the query.
*/
public val namedQueryId: kotlin.String? = builder.namedQueryId
/**
* The contents of the query with all query statements.
*/
public val queryString: kotlin.String? = builder.queryString
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.athena.model.UpdateNamedQueryRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("UpdateNamedQueryRequest(")
append("description=$description,")
append("name=$name,")
append("namedQueryId=$namedQueryId,")
append("queryString=$queryString")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = description?.hashCode() ?: 0
result = 31 * result + (name?.hashCode() ?: 0)
result = 31 * result + (namedQueryId?.hashCode() ?: 0)
result = 31 * result + (queryString?.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 UpdateNamedQueryRequest
if (description != other.description) return false
if (name != other.name) return false
if (namedQueryId != other.namedQueryId) return false
if (queryString != other.queryString) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.athena.model.UpdateNamedQueryRequest = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The query description.
*/
public var description: kotlin.String? = null
/**
* The name of the query.
*/
public var name: kotlin.String? = null
/**
* The unique identifier (UUID) of the query.
*/
public var namedQueryId: kotlin.String? = null
/**
* The contents of the query with all query statements.
*/
public var queryString: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.athena.model.UpdateNamedQueryRequest) : this() {
this.description = x.description
this.name = x.name
this.namedQueryId = x.namedQueryId
this.queryString = x.queryString
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.athena.model.UpdateNamedQueryRequest = UpdateNamedQueryRequest(this)
internal fun correctErrors(): Builder {
return this
}
}
}