commonMain.aws.sdk.kotlin.services.route53.model.GetQueryLoggingConfigResponse.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of route53-jvm Show documentation
Show all versions of route53-jvm Show documentation
The AWS SDK for Kotlin client for Route 53
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.route53.model
import aws.smithy.kotlin.runtime.SdkDsl
public class GetQueryLoggingConfigResponse private constructor(builder: Builder) {
/**
* A complex type that contains information about the query logging configuration that you specified in a [GetQueryLoggingConfig](https://docs.aws.amazon.com/Route53/latest/APIReference/API_GetQueryLoggingConfig.html) request.
*/
public val queryLoggingConfig: aws.sdk.kotlin.services.route53.model.QueryLoggingConfig? = builder.queryLoggingConfig
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.route53.model.GetQueryLoggingConfigResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("GetQueryLoggingConfigResponse(")
append("queryLoggingConfig=$queryLoggingConfig")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = queryLoggingConfig?.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 GetQueryLoggingConfigResponse
if (queryLoggingConfig != other.queryLoggingConfig) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.route53.model.GetQueryLoggingConfigResponse = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* A complex type that contains information about the query logging configuration that you specified in a [GetQueryLoggingConfig](https://docs.aws.amazon.com/Route53/latest/APIReference/API_GetQueryLoggingConfig.html) request.
*/
public var queryLoggingConfig: aws.sdk.kotlin.services.route53.model.QueryLoggingConfig? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.route53.model.GetQueryLoggingConfigResponse) : this() {
this.queryLoggingConfig = x.queryLoggingConfig
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.route53.model.GetQueryLoggingConfigResponse = GetQueryLoggingConfigResponse(this)
/**
* construct an [aws.sdk.kotlin.services.route53.model.QueryLoggingConfig] inside the given [block]
*/
public fun queryLoggingConfig(block: aws.sdk.kotlin.services.route53.model.QueryLoggingConfig.Builder.() -> kotlin.Unit) {
this.queryLoggingConfig = aws.sdk.kotlin.services.route53.model.QueryLoggingConfig.invoke(block)
}
internal fun correctErrors(): Builder {
return this
}
}
}