commonMain.aws.sdk.kotlin.services.athena.model.UpdateWorkGroupRequest.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 UpdateWorkGroupRequest private constructor(builder: Builder) {
/**
* Contains configuration updates for an Athena SQL workgroup.
*/
public val configurationUpdates: aws.sdk.kotlin.services.athena.model.WorkGroupConfigurationUpdates? = builder.configurationUpdates
/**
* The workgroup description.
*/
public val description: kotlin.String? = builder.description
/**
* The workgroup state that will be updated for the given workgroup.
*/
public val state: aws.sdk.kotlin.services.athena.model.WorkGroupState? = builder.state
/**
* The specified workgroup that will be updated.
*/
public val workGroup: kotlin.String? = builder.workGroup
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.athena.model.UpdateWorkGroupRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("UpdateWorkGroupRequest(")
append("configurationUpdates=$configurationUpdates,")
append("description=$description,")
append("state=$state,")
append("workGroup=$workGroup")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = configurationUpdates?.hashCode() ?: 0
result = 31 * result + (description?.hashCode() ?: 0)
result = 31 * result + (state?.hashCode() ?: 0)
result = 31 * result + (workGroup?.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 UpdateWorkGroupRequest
if (configurationUpdates != other.configurationUpdates) return false
if (description != other.description) return false
if (state != other.state) return false
if (workGroup != other.workGroup) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.athena.model.UpdateWorkGroupRequest = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* Contains configuration updates for an Athena SQL workgroup.
*/
public var configurationUpdates: aws.sdk.kotlin.services.athena.model.WorkGroupConfigurationUpdates? = null
/**
* The workgroup description.
*/
public var description: kotlin.String? = null
/**
* The workgroup state that will be updated for the given workgroup.
*/
public var state: aws.sdk.kotlin.services.athena.model.WorkGroupState? = null
/**
* The specified workgroup that will be updated.
*/
public var workGroup: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.athena.model.UpdateWorkGroupRequest) : this() {
this.configurationUpdates = x.configurationUpdates
this.description = x.description
this.state = x.state
this.workGroup = x.workGroup
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.athena.model.UpdateWorkGroupRequest = UpdateWorkGroupRequest(this)
/**
* construct an [aws.sdk.kotlin.services.athena.model.WorkGroupConfigurationUpdates] inside the given [block]
*/
public fun configurationUpdates(block: aws.sdk.kotlin.services.athena.model.WorkGroupConfigurationUpdates.Builder.() -> kotlin.Unit) {
this.configurationUpdates = aws.sdk.kotlin.services.athena.model.WorkGroupConfigurationUpdates.invoke(block)
}
internal fun correctErrors(): Builder {
return this
}
}
}