
commonMain.aws.sdk.kotlin.services.route53resolver.model.DisassociateResolverQueryLogConfigRequest.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.route53resolver.model
public class DisassociateResolverQueryLogConfigRequest private constructor(builder: Builder) {
/**
* The ID of the query logging configuration that you want to disassociate a specified VPC from.
*/
public val resolverQueryLogConfigId: kotlin.String? = builder.resolverQueryLogConfigId
/**
* The ID of the Amazon VPC that you want to disassociate from a specified query logging configuration.
*/
public val resourceId: kotlin.String? = builder.resourceId
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.route53resolver.model.DisassociateResolverQueryLogConfigRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("DisassociateResolverQueryLogConfigRequest(")
append("resolverQueryLogConfigId=$resolverQueryLogConfigId,")
append("resourceId=$resourceId")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = resolverQueryLogConfigId?.hashCode() ?: 0
result = 31 * result + (resourceId?.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 DisassociateResolverQueryLogConfigRequest
if (resolverQueryLogConfigId != other.resolverQueryLogConfigId) return false
if (resourceId != other.resourceId) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.route53resolver.model.DisassociateResolverQueryLogConfigRequest = Builder(this).apply(block).build()
public class Builder {
/**
* The ID of the query logging configuration that you want to disassociate a specified VPC from.
*/
public var resolverQueryLogConfigId: kotlin.String? = null
/**
* The ID of the Amazon VPC that you want to disassociate from a specified query logging configuration.
*/
public var resourceId: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.route53resolver.model.DisassociateResolverQueryLogConfigRequest) : this() {
this.resolverQueryLogConfigId = x.resolverQueryLogConfigId
this.resourceId = x.resourceId
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.route53resolver.model.DisassociateResolverQueryLogConfigRequest = DisassociateResolverQueryLogConfigRequest(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy