All Downloads are FREE. Search and download functionalities are using the official Maven repository.

commonMain.aws.sdk.kotlin.services.route53resolver.model.AssociateResolverQueryLogConfigRequest.kt Maven / Gradle / Ivy

// Code generated by smithy-kotlin-codegen. DO NOT EDIT!

package aws.sdk.kotlin.services.route53resolver.model



public class AssociateResolverQueryLogConfigRequest private constructor(builder: Builder) {
    /**
     * The ID of the query logging configuration that you want to associate a VPC with.
     */
    public val resolverQueryLogConfigId: kotlin.String? = builder.resolverQueryLogConfigId
    /**
     * The ID of an Amazon VPC that you want this query logging configuration to log queries for.
     *
     * The VPCs and the query logging configuration must be in the same Region.
     */
    public val resourceId: kotlin.String? = builder.resourceId

    public companion object {
        public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.route53resolver.model.AssociateResolverQueryLogConfigRequest = Builder().apply(block).build()
    }

    override fun toString(): kotlin.String = buildString {
        append("AssociateResolverQueryLogConfigRequest(")
        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 AssociateResolverQueryLogConfigRequest

        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.AssociateResolverQueryLogConfigRequest = Builder(this).apply(block).build()

    public class Builder {
        /**
         * The ID of the query logging configuration that you want to associate a VPC with.
         */
        public var resolverQueryLogConfigId: kotlin.String? = null
        /**
         * The ID of an Amazon VPC that you want this query logging configuration to log queries for.
         *
         * The VPCs and the query logging configuration must be in the same Region.
         */
        public var resourceId: kotlin.String? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.route53resolver.model.AssociateResolverQueryLogConfigRequest) : this() {
            this.resolverQueryLogConfigId = x.resolverQueryLogConfigId
            this.resourceId = x.resourceId
        }

        @PublishedApi
        internal fun build(): aws.sdk.kotlin.services.route53resolver.model.AssociateResolverQueryLogConfigRequest = AssociateResolverQueryLogConfigRequest(this)

        internal fun correctErrors(): Builder {
            return this
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy