
commonMain.aws.sdk.kotlin.services.opensearch.model.AuthorizeVpcEndpointAccessResponse.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.opensearch.model
public class AuthorizeVpcEndpointAccessResponse private constructor(builder: Builder) {
/**
* Information about the Amazon Web Services account or service that was provided access to the domain.
*/
public val authorizedPrincipal: aws.sdk.kotlin.services.opensearch.model.AuthorizedPrincipal? = builder.authorizedPrincipal
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.opensearch.model.AuthorizeVpcEndpointAccessResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("AuthorizeVpcEndpointAccessResponse(")
append("authorizedPrincipal=$authorizedPrincipal")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = authorizedPrincipal?.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 AuthorizeVpcEndpointAccessResponse
if (authorizedPrincipal != other.authorizedPrincipal) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.opensearch.model.AuthorizeVpcEndpointAccessResponse = Builder(this).apply(block).build()
public class Builder {
/**
* Information about the Amazon Web Services account or service that was provided access to the domain.
*/
public var authorizedPrincipal: aws.sdk.kotlin.services.opensearch.model.AuthorizedPrincipal? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.opensearch.model.AuthorizeVpcEndpointAccessResponse) : this() {
this.authorizedPrincipal = x.authorizedPrincipal
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.opensearch.model.AuthorizeVpcEndpointAccessResponse = AuthorizeVpcEndpointAccessResponse(this)
/**
* construct an [aws.sdk.kotlin.services.opensearch.model.AuthorizedPrincipal] inside the given [block]
*/
public fun authorizedPrincipal(block: aws.sdk.kotlin.services.opensearch.model.AuthorizedPrincipal.Builder.() -> kotlin.Unit) {
this.authorizedPrincipal = aws.sdk.kotlin.services.opensearch.model.AuthorizedPrincipal.invoke(block)
}
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy