commonMain.aws.sdk.kotlin.services.resourcegroups.model.UpdateGroupQueryResponse.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of resourcegroups-jvm Show documentation
Show all versions of resourcegroups-jvm Show documentation
The AWS SDK for Kotlin client for Resource Groups
The newest version!
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.resourcegroups.model
import aws.smithy.kotlin.runtime.SdkDsl
public class UpdateGroupQueryResponse private constructor(builder: Builder) {
/**
* The updated resource query associated with the resource group after the update.
*/
public val groupQuery: aws.sdk.kotlin.services.resourcegroups.model.GroupQuery? = builder.groupQuery
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.resourcegroups.model.UpdateGroupQueryResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("UpdateGroupQueryResponse(")
append("groupQuery=$groupQuery")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = groupQuery?.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 UpdateGroupQueryResponse
if (groupQuery != other.groupQuery) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.resourcegroups.model.UpdateGroupQueryResponse = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The updated resource query associated with the resource group after the update.
*/
public var groupQuery: aws.sdk.kotlin.services.resourcegroups.model.GroupQuery? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.resourcegroups.model.UpdateGroupQueryResponse) : this() {
this.groupQuery = x.groupQuery
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.resourcegroups.model.UpdateGroupQueryResponse = UpdateGroupQueryResponse(this)
/**
* construct an [aws.sdk.kotlin.services.resourcegroups.model.GroupQuery] inside the given [block]
*/
public fun groupQuery(block: aws.sdk.kotlin.services.resourcegroups.model.GroupQuery.Builder.() -> kotlin.Unit) {
this.groupQuery = aws.sdk.kotlin.services.resourcegroups.model.GroupQuery.invoke(block)
}
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy