commonMain.aws.sdk.kotlin.services.resourcegroups.model.GetGroupQueryResponse.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 GetGroupQueryResponse private constructor(builder: Builder) {
/**
* The resource query associated with the specified group. For more information about resource queries, see [Create a tag-based group in Resource Groups](https://docs.aws.amazon.com/ARG/latest/userguide/gettingstarted-query.html#gettingstarted-query-cli-tag).
*/
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.GetGroupQueryResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("GetGroupQueryResponse(")
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 GetGroupQueryResponse
if (groupQuery != other.groupQuery) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.resourcegroups.model.GetGroupQueryResponse = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The resource query associated with the specified group. For more information about resource queries, see [Create a tag-based group in Resource Groups](https://docs.aws.amazon.com/ARG/latest/userguide/gettingstarted-query.html#gettingstarted-query-cli-tag).
*/
public var groupQuery: aws.sdk.kotlin.services.resourcegroups.model.GroupQuery? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.resourcegroups.model.GetGroupQueryResponse) : this() {
this.groupQuery = x.groupQuery
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.resourcegroups.model.GetGroupQueryResponse = GetGroupQueryResponse(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