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

commonMain.aws.sdk.kotlin.services.cloudsearch.model.UpdateServiceAccessPoliciesResponse.kt Maven / Gradle / Ivy

There is a newer version: 1.3.99
Show newest version
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!

package aws.sdk.kotlin.services.cloudsearch.model

import aws.smithy.kotlin.runtime.SdkDsl

/**
 * The result of an `UpdateServiceAccessPolicies` request. Contains the new access policies.
 */
public class UpdateServiceAccessPoliciesResponse private constructor(builder: Builder) {
    /**
     * The access rules configured for the domain.
     */
    public val accessPolicies: aws.sdk.kotlin.services.cloudsearch.model.AccessPoliciesStatus? = builder.accessPolicies

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

    override fun toString(): kotlin.String = buildString {
        append("UpdateServiceAccessPoliciesResponse(")
        append("accessPolicies=$accessPolicies")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = accessPolicies?.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 UpdateServiceAccessPoliciesResponse

        if (accessPolicies != other.accessPolicies) return false

        return true
    }

    public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.cloudsearch.model.UpdateServiceAccessPoliciesResponse = Builder(this).apply(block).build()

    @SdkDsl
    public class Builder {
        /**
         * The access rules configured for the domain.
         */
        public var accessPolicies: aws.sdk.kotlin.services.cloudsearch.model.AccessPoliciesStatus? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.cloudsearch.model.UpdateServiceAccessPoliciesResponse) : this() {
            this.accessPolicies = x.accessPolicies
        }

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

        /**
         * construct an [aws.sdk.kotlin.services.cloudsearch.model.AccessPoliciesStatus] inside the given [block]
         */
        public fun accessPolicies(block: aws.sdk.kotlin.services.cloudsearch.model.AccessPoliciesStatus.Builder.() -> kotlin.Unit) {
            this.accessPolicies = aws.sdk.kotlin.services.cloudsearch.model.AccessPoliciesStatus.invoke(block)
        }

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy