
commonMain.aws.sdk.kotlin.services.opensearch.model.AuthorizeVpcEndpointAccessRequest.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.opensearch.model
public class AuthorizeVpcEndpointAccessRequest private constructor(builder: Builder) {
/**
* The Amazon Web Services account ID to grant access to.
*/
public val account: kotlin.String? = builder.account
/**
* The name of the OpenSearch Service domain to provide access to.
*/
public val domainName: kotlin.String? = builder.domainName
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.opensearch.model.AuthorizeVpcEndpointAccessRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("AuthorizeVpcEndpointAccessRequest(")
append("account=$account,")
append("domainName=$domainName")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = account?.hashCode() ?: 0
result = 31 * result + (domainName?.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 AuthorizeVpcEndpointAccessRequest
if (account != other.account) return false
if (domainName != other.domainName) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.opensearch.model.AuthorizeVpcEndpointAccessRequest = Builder(this).apply(block).build()
public class Builder {
/**
* The Amazon Web Services account ID to grant access to.
*/
public var account: kotlin.String? = null
/**
* The name of the OpenSearch Service domain to provide access to.
*/
public var domainName: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.opensearch.model.AuthorizeVpcEndpointAccessRequest) : this() {
this.account = x.account
this.domainName = x.domainName
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.opensearch.model.AuthorizeVpcEndpointAccessRequest = AuthorizeVpcEndpointAccessRequest(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy