commonMain.aws.sdk.kotlin.services.resourcegroups.model.GetGroupConfigurationResponse.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.resourcegroups.model
import aws.smithy.kotlin.runtime.SdkDsl
public class GetGroupConfigurationResponse private constructor(builder: Builder) {
/**
* A structure that describes the service configuration attached with the specified group. For details about the service configuration syntax, see [Service configurations for Resource Groups](https://docs.aws.amazon.com/ARG/latest/APIReference/about-slg.html).
*/
public val groupConfiguration: aws.sdk.kotlin.services.resourcegroups.model.GroupConfiguration? = builder.groupConfiguration
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.resourcegroups.model.GetGroupConfigurationResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("GetGroupConfigurationResponse(")
append("groupConfiguration=$groupConfiguration")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = groupConfiguration?.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 GetGroupConfigurationResponse
if (groupConfiguration != other.groupConfiguration) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.resourcegroups.model.GetGroupConfigurationResponse = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* A structure that describes the service configuration attached with the specified group. For details about the service configuration syntax, see [Service configurations for Resource Groups](https://docs.aws.amazon.com/ARG/latest/APIReference/about-slg.html).
*/
public var groupConfiguration: aws.sdk.kotlin.services.resourcegroups.model.GroupConfiguration? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.resourcegroups.model.GetGroupConfigurationResponse) : this() {
this.groupConfiguration = x.groupConfiguration
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.resourcegroups.model.GetGroupConfigurationResponse = GetGroupConfigurationResponse(this)
/**
* construct an [aws.sdk.kotlin.services.resourcegroups.model.GroupConfiguration] inside the given [block]
*/
public fun groupConfiguration(block: aws.sdk.kotlin.services.resourcegroups.model.GroupConfiguration.Builder.() -> kotlin.Unit) {
this.groupConfiguration = aws.sdk.kotlin.services.resourcegroups.model.GroupConfiguration.invoke(block)
}
internal fun correctErrors(): Builder {
return this
}
}
}